24 lines
1.0 KiB
PHP
24 lines
1.0 KiB
PHP
<?= $this->extend("layouts/{$viewDatas['layout']}/{$viewDatas['action_form']}") ?>
|
|
<?= $this->section('content') ?>
|
|
<link href="/css/<?= $viewDatas['layout'] ?>/content.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<?= form_open(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
|
|
<table class="action_form table table-bordered">
|
|
<?php $cnt = 1 ?>
|
|
<?php foreach ($viewDatas['fields'] as $field): ?>
|
|
<tr>
|
|
<th nowrap class="text-end"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th>
|
|
<td nowrap class="text-start">
|
|
<?= $viewDatas['helper']->getFieldForm($field, old($field) ?? $viewDatas['entity']->$field, $viewDatas) ?>
|
|
<div><?= validation_show_error($field); ?></div>
|
|
</td>
|
|
<?php $cnt++ ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr>
|
|
<td valign=" bottom" colspan="<?= $cnt * 2 ?>">
|
|
<?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?= form_close(); ?>
|
|
<?= $this->endSection() ?>
|