<?= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
<?= $this->section('content') ?>
<div id="container" class="content">
  <link href="/css/<?= $viewDatas['layout'] ?>/form.css" media="screen" rel="stylesheet" type="text/css" />
  <div class="action_form">
    <table class="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']->getFieldView($field, $viewDatas, $viewDatas) ?>
          </td>
          <?php $cnt++ ?>
        </tr>
      <?php endforeach; ?>
      <tr>
        <td colspan="<?= $cnt * 2 ?>" class="text-center">
          <div><?= $viewDatas['message'] ?></div>
          <p>작업 완료 후 아래 버튼을 클릭하면 모달이 닫힙니다.</p>
          <button onclick="parent.closeBootstrapModal()">작업 완료</button>
        </td>
      </tr>
    </table>
  </div>
</div>
<?= $this->endSection() ?>