2014-12-22 19:15:38 +01:00
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('Cumulative flow diagram') ?></h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if (! $display_graph): ?>
|
2015-08-16 17:04:56 +02:00
|
|
|
<p class="alert"><?= t('You need at least 2 days of data to show the chart.') ?></p>
|
2014-12-22 19:15:38 +01:00
|
|
|
<?php else: ?>
|
|
|
|
<section id="analytic-cfd">
|
2015-08-16 17:04:56 +02:00
|
|
|
<div id="chart" data-metrics='<?= json_encode($metrics) ?>' data-date-format="<?= e('%%Y-%%m-%%d') ?>"></div>
|
2014-12-22 19:15:38 +01:00
|
|
|
</section>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<hr/>
|
|
|
|
|
2015-08-16 17:04:56 +02:00
|
|
|
<form method="post" class="form-inline" action="<?= $this->url->href('analytic', 'cfd', array('project_id' => $project['id'])) ?>" autocomplete="off">
|
2014-12-22 19:15:38 +01:00
|
|
|
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->form->csrf() ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
|
|
|
|
<div class="form-inline-group">
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->form->label(t('Start Date'), 'from') ?>
|
|
|
|
<?= $this->form->text('from', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-inline-group">
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->form->label(t('End Date'), 'to') ?>
|
|
|
|
<?= $this->form->text('to', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-inline-group">
|
|
|
|
<input type="submit" value="<?= t('Execute') ?>" class="btn btn-blue"/>
|
|
|
|
</div>
|
|
|
|
</form>
|