administration_view.tpl 6.41 KB
Newer Older
Jerome Mariette's avatar
Jerome Mariette committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{*
Copyright (C) 2009 INRA
 
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*}

Jerome Mariette's avatar
Jerome Mariette committed
18
19
20
21
22
23
<div id="user_information_dialog" title=""></div>

<input type="hidden" id="user_is_login" value="{$login_user}" />
<input type="hidden" id="user_id" value="{$user_id}" />
<input type="hidden" id="data_folder" value="{$data_folder}" />
<input type="hidden" id="usergroup" value="{$group_info.uid}" />
24
<input type="hidden" id="server_url" value="{$server_url}" />
Jerome Mariette's avatar
Jerome Mariette committed
25

Jerome Mariette's avatar
Jerome Mariette committed
26
27
28
29
30
<div class="sub-content sc-top">	
	<div class="ng6-content-header-left administration">
		<h2>Administration <small> center </small> </h2>
	</div>
	<div class="ng6-content-header-right">
31
		Monitor running workflows and disk space usage. Select a tab to display what you want.
Jerome Mariette's avatar
Jerome Mariette committed
32
33
	</div>
	<div style="clear:both"></div>
Jerome Mariette's avatar
Jerome Mariette committed
34
</div>
Jerome Mariette's avatar
Jerome Mariette committed
35
36
37
38

<div class="sub-content sc-bottom">

	<ul id="myTab" class="nav nav-tabs">
39
40
		<li class="active"><a href="#statistics" data-toggle="tab">Statistics</a></li>
		<li><a href="#wf_monitoring" data-toggle="tab">Workflows monitoring</a></li>
Jerome Mariette's avatar
Jerome Mariette committed
41
42
43
44
	</ul>

	<div id="myTabContent" class="tab-content">
	
45
		<div class="tab-pane fade in active" id="statistics">
Jerome Mariette's avatar
Jerome Mariette committed
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
			<div id="stat_menu">
			
			 	<legend>1. Which users should be considered ?</legend>
				<label class="radio">
					<input type="radio" name="users_to_consider" id="select_cruser" value="create_user" checked>
						users who have added data 
				</label>
				<label class="radio">
					<input type="radio" name="users_to_consider" id="select_owner" value="manager">
						users for whom data were made ​​available
				</label>
				<br />
				
				<legend>2. How should they be grouped ?</legend>
				<label class="radio">
					<input type="radio" name="group_by" id="by_laboratories" value="title" checked>
						by laboratories
philippe's avatar
philippe committed
63
				</label>
Jerome Mariette's avatar
Jerome Mariette committed
64
65
66
				<label class="radio">
					<input type="radio" name="group_by" id="by_organizations" value="organism">
						by organization
philippe's avatar
philippe committed
67
				</label>
Jerome Mariette's avatar
Jerome Mariette committed
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
				<label class="radio">
					<input type="radio" name="group_by" id="by_locations" value="location">
						by location
				</label>
				<br />
				
				<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 />
				
Jerome Mariette's avatar
Jerome Mariette committed
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
				<legend>4. How should the data be displayed ?</legend>
				<label class="radio">
					<input type="radio" name="display_b" id="project_distribution" value="project_distribution" checked>
						display the projects as a pie chart
				</label>
				<label class="radio">
					<input type="radio" name="display_b" id="project_evolution" value="project_evolution">
						display the projects creation evolution
				</label>
				<label class="radio">
					<input type="radio" name="display_b" id="data_distribution" value="data_distribution">
						display the stored data as a pie chart 
				</label>
				<label class="radio">
					<input type="radio" name="display_b" id="data_evolution" value="data_evolution">
						display the stored data evolution
				</label>

Jerome Mariette's avatar
Jerome Mariette committed
131
132
				<div class="row">
					<div class="span2 offset9">
Jerome Mariette's avatar
Jerome Mariette committed
133
						<button type="button" id="refresh_graph_btn" class="multiple-selection-btn btn btn-primary"> <i class="icon-refresh icon-white"></i> refresh graph</button>
Jerome Mariette's avatar
Jerome Mariette committed
134
135
136
					</div>
			    </div>
				
Jerome Mariette's avatar
Jerome Mariette committed
137
			</div>
Jerome Mariette's avatar
Jerome Mariette committed
138
139
			
			<br />
140
			<div id="highcharts_graph"> </div>
Jerome Mariette's avatar
Jerome Mariette committed
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
			<br />
			
			<!--
			<div id="chart_options" class="form-inline">
				<label class="control-label" style="font-size:12px" for="group_list">Select a user group</label>
				<label class="checkbox" style="font-size:12px">
					<input id="chk_get_analyzes" type="checkbox">
					Includes analyses
				</label>
				<label class="checkbox" style="font-size:12px">
					<input id="chk_get_cumulative" type="checkbox">
 					Cumulate values
				</label>
			</div>
			-->
			
Jerome Mariette's avatar
Jerome Mariette committed
157
		</div>
158
159
160
		
		<div class="tab-pane fade" id="wf_monitoring"></div>

Jerome Mariette's avatar
Jerome Mariette committed
161
	</div>
162
163
164
165
166
</div>

<!-- statusModal -->
<div id="statusModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="statusModalLabel" aria-hidden="true">
	<div class="modal-header">
Penom Nom's avatar
Penom Nom committed
167
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
168
169
170
171
172
173
174
		<h3 id="statusModalLabel"></h3>
	</div>
	<div id="statusModalBody" class="modal-body"></div>
	<div class="modal-footer">
		<button id="refresh_workflow" class="btn"><i class="icon-refresh"></i> Refresh</button>
		<button id="rerun_workflow" class="btn btn-primary"><i class="icon-cog icon-white"></i> ReRun</button>
	</div>
Jerome Mariette's avatar
Jerome Mariette committed
175
</div>