This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/views/layouts/admin.php
2016-09-12 18:27:12 -04:00

31 lines
1.2 KiB
PHP
Executable File

<?php $this->contentFor('content', function() { ?>
<div id="header">
<div id="title">
<h2 id="site-title">
<?= $this->linkTo($this->imageTag('/images/logo_small.png', ['alt' => CONFIG()->app_name, 'size' => '521x75', 'id' => 'logo']), $this->rootPath()) ?>
</h2>
</div>
<?= $this->partial('layouts/menu') ?>
</div>
<?php $this->partial('layouts/notice') ?>
<div class="blocked" id="block-reason" style="display: none;">
</div>
<div id="main">
<div id="menu" class="settings">
<h5><?= $this->t('layouts.admin.menu.title') ?></h5>
<ul>
<li><?= $this->linkTo($this->t('layouts.admin.menu.edit_user'), ['admin#edit_user']) ?></li>
<li><?= $this->linkTo($this->t('layouts.admin.menu.reset_password'), ['admin#reset_password']) ?></li>
<li><?= $this->linkTo($this->t('layouts.admin.menu.fix_tag_count'), ['admin#recalculate_tag_count'], ['method' => 'post']) ?></li>
<li><?= $this->linkTo($this->t('layouts.admin.menu.purge_tags'), ['admin#purge_tags'], ['confirm' => 'Confirm purge tags?', 'method' => 'post']) ?></li>
</ul>
</div>
<div id="content">
<?= $this->content() ?>
</div>
</div>
<?php }) ?>
<?= $this->render(['template' => 'layouts/application']) ?>