Commit e8b52ecd authored by Penom Nom's avatar Penom Nom
Browse files

fix stats on admin view

parent eae6c90d
......@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<h2>Administration <small> center </small> </h2>
</div>
<div class="ng6-content-header-right">
Monitor running workflows and disk space usage. Select a tab to display what you want.
Monitor running workflows and disk space usage, manage users with administation rights.
</div>
<div style="clear:both"></div>
</div>
......@@ -37,152 +37,173 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<ul id="myTab" class="nav nav-tabs">
<li class="active"><a href="#statistics" data-toggle="tab">Statistics</a></li>
<li><a href="#wf_monitoring" data-toggle="tab">Workflows monitoring</a></li>
<li><a href="#admin_management" data-toggle="tab">Admin management</a></li>
<li><a href="#wf_monitoring" data-toggle="tab">Workflows monitoring</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="statistics">
<div id="stat_menu">
<legend>1. Which users should be considered ?</legend>
<div class="radio">
<label class="radio">
<input type="radio" name="users_to_consider" id="select_cruser" value="create_user" checked>
users who have added data
</label>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="users_to_consider" id="select_owner" value="manager">
users for whom data were made ​​available
</label>
</div>
<br />
<legend>2. How should they be grouped ?</legend>
<div class="radio">
<label class="radio">
<input type="radio" name="group_by" id="by_laboratories" value="title" checked>
by laboratories
</label>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="group_by" id="by_organizations" value="organism">
by organization
</label>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="group_by" id="by_locations" value="location">
by location
</label>
</div>
<br />
<div id="stat_menu" class="clearfix">
<legend>Chart configuration</legend>
<div>
<p>
Please use the following options to configure the statistics to display, select an element in the
following table and use the button to generate the chart.
</p>
</div>
<fieldset class="col-sm-4">
<h4><strong>Which users should be considered ?</strong></h4>
<div class="radio">
<label class="radio">
<input type="radio" name="users_to_consider" id="select_cruser" value="create_user" checked>
users who have added data
</label>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="users_to_consider" id="select_owner" value="manager">
users for whom data were made ​​available
</label>
</div>
</fieldset>
<fieldset class="col-sm-3">
<h4><strong>How should they be grouped ?</strong></h4>
<div class="radio">
<label class="radio">
<input type="radio" name="group_by" id="by_laboratories" value="title" checked>
by laboratories
</label>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="group_by" id="by_organizations" value="organism">
by organization
</label>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="group_by" id="by_locations" value="location">
by location
</label>
</div>
</fieldset>
<fieldset class="col-sm-5">
<h4><strong>How should the data be displayed ?</strong></h4>
<div class="radio">
<label class="radio">
<input type="radio" name="display_by" id="project_distribution" value="project_distribution" checked>
display the projects as a pie chart
</label>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="display_by" id="project_evolution" value="project_evolution">
display the projects creation evolution
</label>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="display_by" id="data_distribution" value="data_distribution">
display the stored data as a pie chart
</label>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="display_by" id="data_evolution" value="data_evolution">
display the stored data evolution
</label>
</div>
<h5><strong>Misc</strong></h5>
<legend>3. Which <span id="by_span">laboratories</span> should be displayed ? <small> non selected ones will be gathered in the "others" group </small></legend>
<table class="table table-striped table-bordered dataTable" id="data_table_laboratories">
<thead>
<th><center><input type="checkbox" id="chk_all_laboratories"></center></th>
<th>Laboratories</th>
<th>Organizations</th>
<th>Locations</th>
<th>Number of project</th>
</thead>
<tbody>
{foreach $distribution key=group_name item=group_values}
<tr>
<td><center><input type="checkbox" value="{$group_name}"></center></td>
<td>{$group_name}</td>
<td>{$group_values.organism}</td>
<td>{$group_values.location}</td>
<td>{$group_values.count}</td>
</tr>
{/foreach}
</tbody>
</table>
<table class="table table-striped table-bordered dataTable" id="data_table_organizations">
<thead>
<th><center><input type="checkbox" id="chk_all_organizations"></center></th>
<th>Organizations</th>
<th>Number of project</th>
</thead>
<tbody></tbody>
</table>
<table class="table table-striped table-bordered dataTable" id="data_table_locations">
<thead>
<th><center><input type="checkbox" id="chk_all_locations"></center></th>
<th>Locations</th>
<th>Number of project</th>
</thead>
<tbody></tbody>
</table>
<br />
<div class="checkbox">
<label class="checkbox" style="font-size:12px">
<input id="chk_includes_analyses" type="checkbox" disabled>
Includes analyses
</label>
</div>
<div class="checkbox">
<label class="checkbox" style="font-size:12px">
<input id="chk_display_bases" type="checkbox" disabled>
Should the size be in number of bases (default is in bytes)
</label>
</div>
<div class="checkbox">
<label class="checkbox" style="font-size:12px">
<input id="chk_cumulate" type="checkbox" disabled>
Cumulate values
</label>
</div>
</fieldset>
</div>
<div id="selection_tables" class="clearfix">
<h4><strong>Which <span id="by_span">laboratories</span> should be displayed ? <small> non selected ones will be gathered in the "others" group </small></strong></h4>
<legend>4. How should the data be displayed ?</legend>
<div class="radio">
<label class="radio">
<input type="radio" name="display_b" id="project_distribution" value="project_distribution" checked>
display the projects as a pie chart
</label>
<div id="wrapper_datatable_laboratories">
<table class="table table-striped table-bordered dataTable" id="data_table_laboratories">
<thead>
<th><center><input type="checkbox" id="chk_all_laboratories"></center></th>
<th>Laboratories</th>
<th>Organizations</th>
<th>Locations</th>
<th>Number of project</th>
</thead>
<tbody>
{foreach $distribution key=group_name item=group_values}
<tr>
<td><center><input type="checkbox" class="chk_stat_element" value="{$group_name}"></center></td>
<td>{$group_name}</td>
<td>{$group_values.organism}</td>
<td>{$group_values.location}</td>
<td>{$group_values.count}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="display_b" id="project_evolution" value="project_evolution">
display the projects creation evolution
</label>
<div id="wrapper_datatable_organizations" style="display:none">
<table class="table table-striped table-bordered dataTable" id="data_table_organizations">
<thead>
<th><center><input type="checkbox" id="chk_all_organizations"></center></th>
<th>Organizations</th>
<th>Number of project</th>
</thead>
<tbody></tbody>
</table>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="display_b" id="data_distribution" value="data_distribution">
display the stored data as a pie chart
</label>
<div id="wrapper_datatable_locations" style="display:none">
<table class="table table-striped table-bordered dataTable" id="data_table_locations">
<thead>
<th><center><input type="checkbox" id="chk_all_locations"></center></th>
<th>Locations</th>
<th>Number of project</th>
</thead>
<tbody></tbody>
</table>
</div>
<div class="radio">
<label class="radio">
<input type="radio" name="display_b" id="data_evolution" value="data_evolution">
display the stored data evolution
</label>
</div>
<br />
<br />
<div class="checkbox">
<label class="checkbox" style="font-size:12px">
<input id="chk_includes_analyses" type="checkbox">
Includes analyses
</label>
</div>
<div class="checkbox">
<label class="checkbox" style="font-size:12px">
<input id="chk_display_bases" type="checkbox">
Should the size be in number of bases (default is in bytes)
</label>
</div>
<div class="checkbox">
<label class="checkbox" style="font-size:12px">
<input id="chk_cumulate" type="checkbox">
Cumulate values
</label>
</div>
<div class="row">
<div class="col-sm-offset-10 col-sm-2">
<button type="button" id="refresh_graph_btn" class="multiple-selection-btn btn btn-primary"> <i class="glyphicon glyphicon-refresh"></i> refresh graph</button>
<button type="button" id="refresh_graph_btn" class="multiple-selection-btn btn btn-primary" disabled> <i class="glyphicon glyphicon-refresh"></i> refresh graph</button>
</div>
</div>
</div>
<br />
<div id="highcharts_graph"> </div>
<div id="highcharts_graph"> </div>
</div>
<div class="tab-pane fade" id="wf_monitoring"></div>
<div class="tab-pane fade" id="admin_management">
<div id="admin_users">
......@@ -226,8 +247,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<th align="left" colspan="8">
With selection :
<div class="btn-group">
<button id="add_admin" type="button" class="btn btn-sm btn-default" ><i class="glyphicon glyphicon-plus"></i> add administrator</button>
<button id="del_admin" type="button" class="btn multipleu-selection-btn btn-sm btn-default"><i class="glyphicon glyphicon-minus"></i> delete administrator</button>
<button id="add_admin" type="button" class="btn btn-sm btn-default" ><i class="glyphicon glyphicon-plus"></i> add user</button>
<button id="del_admin" type="button" class="btn multipleu-selection-btn btn-sm btn-default"><i class="glyphicon glyphicon-minus"></i> delete user</button>
</div>
</th>
</tr>
......@@ -235,6 +256,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</table>
</div>
</div>
<div class="tab-pane fade" id="wf_monitoring"></div>
</div>
</div>
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment