mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-01-11 16:18:42 +00:00
started with template fixes
This commit is contained in:
parent
ca750b7e45
commit
10c17ac177
|
|
@ -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); ?>
|
||||
|
|
|
|||
|
|
@ -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'); ?>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user