cfmgrv4/app/Views/admin/cloudflare/zone/create.php
2024-10-15 17:53:21 +09:00

33 lines
1.3 KiB
PHP

<?= $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">
<tr>
<?php foreach ($viewDatas['fields'] as $field): ?>
<th nowrap class="text-center"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th>
<?php endforeach ?>
</tr>
<?php foreach ($viewDatas['entitys'] as $entity): ?>
<?php $viewDatas['entity'] = $entity ?>
<tr>
<?php foreach ($viewDatas['fields'] as $field): ?>
<td nowrap class="text-center"><?= $viewDatas['helper']->getFieldView($field, $viewDatas) ?></td>
<?php endforeach ?>
</tr>
<?php if ($viewDatas['entity']->records): ?>
<tr>
<td colspan="<?= count($viewDatas['fields']) ?>">
<?php foreach ($viewDatas['entity']->records as $record): ?>
<div><?= $record->getTitle() ?></div>
<?php endforeach ?>
</td>
</tr>
<?php endif ?>
<?php endforeach ?>
</table>
<?= isset($viewDatas['message']) ? "<div>{$viewDatas['message']}</div>" : '' ?>
</div>
</div>
<?= $this->endSection() ?>