<?= $this->extend('layouts/front') ?>
<?= $this->section('content') ?>
<div class="content">
  <?= 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"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
    </tr>
  </table>
  <?= form_close(); ?>
</div>
<?= $this->endSection() ?>