<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
  <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
  <table class="form table table-bordered table-striped">
    <tbody>
      <?php foreach ($viewDatas['fields'] as $field) : ?>
        <tr>
          <td class="label"><?= getFieldLabel_CategoryHelper($field, $viewDatas) ?></td>
          <td class="column">
            <?= getFieldForm_CategoryHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
            <?= validation_show_error($field); ?>
          </td>
        </tr>
      <?php endforeach; ?>
      <tr>
        <td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
      </tr>
    </tbody>
    <?= form_close(); ?>
  </table>
</div>
<?= $this->endSection() ?>