started with template fixes

This commit is contained in:
Dennis Eichhorn 2024-03-29 15:26:00 +00:00
parent ca750b7e45
commit 10c17ac177
3 changed files with 11 additions and 7 deletions

View File

@ -12,6 +12,8 @@
*/
declare(strict_types=1);
use Modules\Navigation\Models\LinkStatus;
/**
* @var \phpOMS\Views\View $this
*/
@ -96,7 +98,7 @@ echo $this->data['nav']->render();
foreach ($navs as $nav) : ++$c; ?>
<tr>
<td><label class="checkbox" for="iActive-<?= $c; ?>">
<input id="iActive-<?= $c; ?>" type="checkbox" name="active_route" value="<?= $this->printHtml($nav->uri); ?>"<?= true ? ' checked' : ''; ?>>
<input id="iActive-<?= $c; ?>" type="checkbox" name="active_route" value="<?= $this->printHtml($nav->uri); ?>"<?= $nav->status === LinkStatus::ACTIVE ? ' checked' : ''; ?>>
<span class="checkmark"></span>
</label>
<td><?= $this->printHtml($apps[$nav->app]?->name); ?>

View File

@ -29,7 +29,7 @@ echo $this->data['nav']->render(); ?>
<div class="portlet-body">
<div class="form-group">
<label for="iId"><?= $this->getHtml('Id'); ?></label>
<input id="iId" name="id" type="text" value="<?= $this->printHtml((string) $nav->id); ?>">
<input id="iId" name="id" type="text" value="<?= $nav->id; ?>">
</div>
<div class="form-group">
@ -186,11 +186,11 @@ echo $this->data['nav']->render(); ?>
<?php $count = 0;
foreach ($routes as $route => $data) : ++$count; ?>
<tr tabindex="0">
<td><<?= $this->printHtml($data['app'] ?? ''); ?>
<td><<?= $this->printHtml($data['module'] ?? ''); ?>
<td><<?= $this->printHtml($route); ?>
<td><<?= $this->printHtml($data['dest'] ?? ''); ?>
<td><<?= $this->printHtml($data['verb'] ?? ''); ?>
<td><?= $this->printHtml($data['app'] ?? ''); ?>
<td><?= $this->printHtml($data['module'] ?? ''); ?>
<td><?= $this->printHtml($route); ?>
<td><?= $this->printHtml($data['dest'] ?? ''); ?>
<td><?= $this->printHtml($data['verb'] ?? ''); ?>
<?php endforeach; ?>
<?php if ($count === 0) : ?>
<tr><td colspan="8" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>

View File

@ -148,10 +148,12 @@ echo $this->data['nav']->render(); ?>
<?php endif; ?>
</table>
</div>
<!--
<div class="portlet-foot">
<a tabindex="0" class="button" href="<?= UriFactory::build($previous); ?>"><?= $this->getHtml('Previous', '0', '0'); ?></a>
<a tabindex="0" class="button" href="<?= UriFactory::build($next); ?>"><?= $this->getHtml('Next', '0', '0'); ?></a>
</div>
-->
</div>
</div>
</div>