diff options
Diffstat (limited to 'app/Template/analytic')
-rw-r--r-- | app/Template/analytic/layout.php | 18 | ||||
-rw-r--r-- | app/Template/analytic/repartition.php | 29 | ||||
-rw-r--r-- | app/Template/analytic/sidebar.php | 8 |
3 files changed, 55 insertions, 0 deletions
diff --git a/app/Template/analytic/layout.php b/app/Template/analytic/layout.php new file mode 100644 index 00000000..2dd7a4f5 --- /dev/null +++ b/app/Template/analytic/layout.php @@ -0,0 +1,18 @@ +<?= Helper\js('assets/js/d3.v3.4.8.min.js') ?> +<?= Helper\js('assets/js/dimple.v2.1.0.min.js') ?> + +<section id="main"> + <div class="page-header"> + <ul> + <li><i class="fa fa-table fa-fw"></i><?= Helper\a(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?></li> + </ul> + </div> + <section class="sidebar-container" id="analytic-section"> + + <?= Helper\template('analytic/sidebar', array('project' => $project)) ?> + + <div class="sidebar-content"> + <?= $analytic_content_for_layout ?> + </div> + </section> +</section>
\ No newline at end of file diff --git a/app/Template/analytic/repartition.php b/app/Template/analytic/repartition.php new file mode 100644 index 00000000..f20b6a0c --- /dev/null +++ b/app/Template/analytic/repartition.php @@ -0,0 +1,29 @@ +<div class="page-header"> + <h2><?= t('Task distribution') ?></h2> +</div> +<section id="analytic-repartition"> + +<div id="chart" data-url="<?= Helper\u('analytic', 'repartition', array('project_id' => $project['id'])) ?>"></div> + +<table> + <tr> + <th><?= t('Column') ?></th> + <th><?= t('Number of tasks') ?></th> + <th><?= t('Percentage') ?></th> + </tr> + <?php foreach ($metrics as $metric): ?> + <tr> + <td> + <?= Helper\escape($metric['column_title']) ?> + </td> + <td> + <?= $metric['nb_tasks'] ?> + </td> + <td> + <?= n($metric['percentage']) ?>% + </td> + </tr> + <?php endforeach ?> +</table> + +</section> diff --git a/app/Template/analytic/sidebar.php b/app/Template/analytic/sidebar.php new file mode 100644 index 00000000..df6835ee --- /dev/null +++ b/app/Template/analytic/sidebar.php @@ -0,0 +1,8 @@ +<div class="sidebar"> + <h2><?= t('Reportings') ?></h2> + <ul> + <li> + <?= Helper\a(t('Task distribution'), 'analytic', 'repartition', array('project_id' => $project['id'])) ?> + </li> + </ul> +</div>
\ No newline at end of file |