Blame view

src/Template/Stats/view.ctp 1.97 KB
409758d9   Etienne Pallier   Ajout d'une nouve...
1
2
3
4
5
6
7
8
9
<?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>
d7f74e12   Etienne Pallier   bugfix stats
10
11
        <li><?= $this->Html->link(__('Edit Stat'), ['action' => 'edit', $stat->year,$stat->user_id]) ?> </li>
        <li><?= $this->Form->postLink(__('Delete Stat'), ['action' => 'delete', $stat->year,$stat->user_id], ['confirm' => __('Are you sure you want to delete # {0}?', $stat->year)]) ?> </li>
409758d9   Etienne Pallier   Ajout d'une nouve...
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
        <li><?= $this->Html->link(__('List Stats'), ['action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Stat'), ['action' => 'add']) ?> </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 view large-9 medium-8 columns content">
    <h3><?= h($stat->year) ?></h3>
    <table class="vertical-table">
        <tr>
            <th scope="row"><?= __('Year') ?></th>
            <td><?= h($stat->year) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('User') ?></th>
            <td><?= $stat->has('user') ? $this->Html->link($stat->user->nom, ['controller' => 'Users', 'action' => 'view', $stat->user->id]) : '' ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Connex Nb') ?></th>
            <td><?= $this->Number->format($stat->connex_nb) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Connex Dur') ?></th>
            <td><?= $this->Number->format($stat->connex_dur) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Last Login Time') ?></th>
            <td><?= h($stat->last_login_time) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Last Logout Time') ?></th>
            <td><?= h($stat->last_logout_time) ?></td>
        </tr>
    </table>
</div>