mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 03:23:19 +00:00
Minor report updates
This commit is contained in:
@@ -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
|
||||
@@ -168,7 +168,7 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
|
||||
{
|
||||
return $this->dashboard;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @desc construct the legend for charts
|
||||
* if dmax === false dmax = now();
|
||||
@@ -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)
|
||||
|
@@ -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">
|
||||
<em id="em_all" class="selected_em" >Toutes les bases</em>
|
||||
{% 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 %}
|
||||
<em id="em_{{ key }}" >{{ key|sbas_labels(app) }}</em>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div id="dashboard-table" >
|
||||
|
Reference in New Issue
Block a user