dbmsv3/app/Views/admin/service/modify_form.php
2025-10-16 17:51:37 +09:00

47 lines
2.4 KiB
PHP

<?= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
<?= $this->section('content') ?>
<?php if ($error = session('error')): echo $viewDatas['service']->getHelper()->alert($error) ?><?php endif ?>
<div id="container" class="content">
<div class="form_top"><?= $this->include("templates/{$viewDatas['layout']}/form_content_top"); ?></div>
<table class="table table-bordered">
<tr>
<th>서비스정보</th>
<th>추가정보</th>
</tr>
<tr>
<td nowrap>
<div class="action_form">
<?= form_open(current_url(), ['id' => 'action_form', ...$viewDatas['forms']['attributes']], $viewDatas['forms']['hiddens']) ?>
<table class="table table-bordered">
<?php foreach ($viewDatas['control']['actionFields'] as $field): ?>
<tr>
<th nowrap class="text-end"><?= $viewDatas['service']->getHelper()->getFieldLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
<td nowrap class="text-start">
<?= $viewDatas['service']->getHelper()->getFieldForm($field, old($field) ?? $viewDatas['entity']->$field ?? null, $viewDatas) ?>
<div><?= validation_show_error($field); ?></div>
</td>
</tr>
<?php endforeach; ?>
</table>
<div class="text-center"><?= form_submit("", '수정', ["class" => "btn btn-outline btn-primary"]) ?></div>
<?= form_close(); ?>
</div>
</td>
<td>
<div style="margin-top:10px">서버정보[<?= $viewDatas['entity']->getServerEntity()->getCode() ?>]</div>
<div>Model : <?= $viewDatas['entity']->getServerEntity()->getTitle() ?></div>
<div>IP : <?= $viewDatas['entity']->getServerEntity()->getIP() ?></div>
<div>OS : <?= $viewDatas['entity']->getServerEntity()->getOS() ?></div>
<div style="margin-top:10px">서버파트정보</div>
<?= view_cell("\App\Cells\Equipment\ServerPartCell::parttable", [
'serverinfo_uid' => $viewDatas['entity']->getServerEntity()->getPK(),
'types' => SERVERPART['ALL_PARTTYPES']
]) ?>
</div>
</tr>
</table>
<div class=" form_bottom"><?= $this->include("templates/{$viewDatas['layout']}/form_content_bottom"); ?></div>
</div>
<script src="/js/admin/service.js"></script>
<?= $this->include("templates/common/" . (isset($viewDatas['modal_type']) ? $viewDatas['modal_type'] : 'modal_iframe')); ?>
<?= $this->endSection() ?>