Minor report updates

This commit is contained in:
Romain Neutron
2013-09-18 12:07:07 +02:00
parent ff1da1d734
commit 756f6095a7
2 changed files with 5 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
* @desc la periode par defaut d'affichage du dashboard
* @var <string>
*/
public $periode = '-1 month';
public $periode = '-5 days';
/**
* @desc le sbasid de la base ou on effectue le report
@@ -276,7 +276,7 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
$listeColl[] = (int) $value['coll_id'];
}
$this->authorizedCollection[] = array(
$this->authorizedCollection[(int) $sbas] = array(
'sbas_id' => (int) $sbas,
'coll' => implode(',', $listeColl),
'name' => phrasea::sbas_labels($sbas, $this->app)

View File

@@ -2,12 +2,9 @@
<div id="title_dash" class="center" style="clear:left;">{% trans "report:: Dashboard" %}</div>
<div id="periode_dash" class="center" >{{ dashboard.getTitleDate('dmin') }} - {{ dashboard.getTitleDate('dmax') }}</div>
<div id="liste_dash" class="center">
{% for key in dashboard.authorizedCollection|keys %}
{% if not loop.first %}
<em id="em_{{ key }}" >{{ key|sbas_labels(app) }}</em>
{% else %}
<em id="em_all" class="selected_em" >Toutes les bases</em>
{% endif %}
{% for key in dashboard.authorizedCollection|keys %}
<em id="em_{{ key }}" >{{ key|sbas_labels(app) }}</em>
{% endfor %}
</div>
<div id="dashboard-table" >