24 lines
1.1 KiB
PHP
24 lines
1.1 KiB
PHP
<?= $this->extend('layouts/admin') ?>
|
|
<?= $this->section('content') ?>
|
|
<?= $this->include('templates/admin/header'); ?>
|
|
<?= form_open(current_url(), $forms['attributes'], $forms['hiddens']) ?>
|
|
<table class="table table-bordered table-hover table-striped indexTable ">
|
|
<?php foreach ($fields as $field) : ?>
|
|
<tr>
|
|
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
|
|
<?= getFieldLabel_BoardConfigHelper($field, $fieldRules) ?>
|
|
</td>
|
|
<td style="text-align:left; padding-left:20px;">
|
|
<?= getFieldForm_BoardConfigHelper($field, is_null(old($field)) ? $entity->$field : old($field), $fieldFormOptions) ?>
|
|
<?= validation_show_error($field); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr>
|
|
<td valign="bottom" colspan="2" style="text-align:center;"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
|
|
</tr>
|
|
</table>
|
|
<?= form_close(); ?>
|
|
<?php if (session()->getFlashdata('error')) : ?><?= session()->getFlashdata('error') ?><?php endif ?>
|
|
<?= $this->include('templates/admin/footer'); ?>
|
|
<?= $this->endSection() ?>
|