edit.ctp
1.29 KB
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\Stat $stat
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Form->postLink(
__('Delete'),
['action' => 'delete', $stat->year],
['confirm' => __('Are you sure you want to delete # {0}?', $stat->year)]
)
?></li>
<li><?= $this->Html->link(__('List Stats'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Users'), ['controller' => 'Users', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New User'), ['controller' => 'Users', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="stats form large-9 medium-8 columns content">
<?= $this->Form->create($stat) ?>
<fieldset>
<legend><?= __('Edit Stat') ?></legend>
<?php
echo $this->Form->control('last_login_time', ['empty' => true]);
echo $this->Form->control('last_logout_time', ['empty' => true]);
echo $this->Form->control('connex_nb');
echo $this->Form->control('connex_dur');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>