<?= $this->extend('layouts/front') ?>
<?= $this->section('content') ?>
<link href="/css/front/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
  <div><?= html_entity_decode($viewDatas['currentCategory']->head) ?></div>
  <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
  <table class="form table table-bordered table-hover table-striped">
    <?php foreach ($viewDatas['fields'] as $field) : ?>
      <tr>
        <td class="label"><?= getFieldLabel_UserHelper($field, $viewDatas) ?></td>
        <td class="column">
          <?= getFieldForm_UserHelper($field, old($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY']), $viewDatas) ?>
          <?= 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(); ?>
  <div><?= html_entity_decode($viewDatas['currentCategory']->tail) ?></div>
</div>
<?= $this->endSection() ?>