32 lines
1.7 KiB
PHP
32 lines
1.7 KiB
PHP
<?= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
|
|
<?= $this->section('content') ?>
|
|
<?php if ($error = session('error')): echo $viewDatas['helper']->alert($error) ?><?php endif ?>
|
|
<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 $loop = false ?>
|
|
<?php $rowspan = count($viewDatas['control']['view_fields']) ?>
|
|
<?php foreach ($viewDatas['control']['view_fields'] as $field): ?>
|
|
<tr>
|
|
<th nowrap class="text-end" width="15%"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th>
|
|
<td nowrap class="text-start" width="15%"><?= $viewDatas['helper']->getFieldView($field, $viewDatas['entity']->$field, $viewDatas) ?></td>
|
|
<?php if (!$loop): ?>
|
|
<td rowspan="<?= $rowspan ?>">
|
|
<table class="table table-bordered table-hover table-striped">
|
|
<?php foreach (SERVICE_ITEM_TYPES as $item_type => $label): ?>
|
|
<tr>
|
|
<th nowrap class="text-end" width="15%" data-rtc-resizable="<?= $item_type ?>" nowrap><?= $viewDatas['helper']->getFieldLabel($item_type, $viewDatas) ?></th>
|
|
<td nowrap class="text-start"><?= $viewDatas['helper']->getFieldView($item_type, $viewDatas['entity']->$item_type, $viewDatas) ?></td>
|
|
</tr>
|
|
<?php endforeach ?>
|
|
</table>
|
|
</td>
|
|
<?php $loop = true ?>
|
|
<?php endif ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<?= $this->endSection() ?>
|