administration_view.tpl 11.9 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">
Penom Nom's avatar
Penom Nom committed
31
		Monitor running workflows and disk space usage, manage users with administation rights.
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
		<li class="active"><a href="#statistics" data-toggle="tab">Statistics</a></li>
Penom Nom's avatar
Penom Nom committed
40
		<li><a href="#admin_management" data-toggle="tab">Admin management</a></li>
Penom Nom's avatar
Penom Nom committed
41
		<li><a href="#wf_monitoring" data-toggle="tab">Workflows monitoring</a></li>
Jerome Mariette's avatar
Jerome Mariette committed
42
43
44
45
	</ul>

	<div id="myTabContent" class="tab-content">
	
46
		<div class="tab-pane fade in active" id="statistics">
Penom Nom's avatar
Penom Nom committed
47
48
49
50
51
52
53
54
		    <div id="stat_menu" class="clearfix">
		        <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>
		        
Penom Nom's avatar
Penom Nom committed
55
56
57
58
59
60
61
62
63
64
65
66
67
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
		        
		        <div class="col-sm-6">
		            <fieldset class="col-sm-12">
                        <h4>1. Which users should be considered ?</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-12">
                        <h4>2. How should they be grouped ?</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>
		        </div>
		        
		        <div class="col-sm-6">
		            <fieldset class="col-sm-12">
                        <h4>3. How should the data be displayed ?</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>3.1. Misc</h5>
				
				        <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>
                
Penom Nom's avatar
Penom Nom committed
147
148
149
150
151
152
                
                
		    </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>
Jerome Mariette's avatar
Jerome Mariette committed
153
				
Penom Nom's avatar
Penom Nom committed
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
				<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>
Penom Nom's avatar
Penom Nom committed
175
			    </div>
Penom Nom's avatar
Penom Nom committed
176
177
178
179
180
181
182
183
184
185
			    
			    <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>
Penom Nom's avatar
Penom Nom committed
186
			    </div>
Penom Nom's avatar
Penom Nom committed
187
188
189
190
191
192
193
194
195
196
			    
			    <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>
Penom Nom's avatar
Penom Nom committed
197
			    </div>
Penom Nom's avatar
Penom Nom committed
198
199
			    
				<br />
Jerome Mariette's avatar
all ok    
Jerome Mariette committed
200
				
Jerome Mariette's avatar
Jerome Mariette committed
201
				<div class="row">
Penom Nom's avatar
Penom Nom committed
202
					<div class="col-sm-offset-10 col-sm-2">
Penom Nom's avatar
Penom Nom committed
203
						<button type="button" id="refresh_graph_btn" class="multiple-selection-btn btn btn-primary" disabled> <i class="glyphicon glyphicon-refresh"></i> refresh graph</button>
Jerome Mariette's avatar
Jerome Mariette committed
204
205
206
					</div>
			    </div>
				
Jerome Mariette's avatar
Jerome Mariette committed
207
			</div>
Jerome Mariette's avatar
Jerome Mariette committed
208
209
210
			
			<br />
			
Penom Nom's avatar
Penom Nom committed
211
			<div id="highcharts_graph"> </div>
Jerome Mariette's avatar
Jerome Mariette committed
212
		</div>
213
		
Penom Nom's avatar
Penom Nom committed
214
215
216
217
218
219
220
221
		<div class="tab-pane fade" id="admin_management">
		
		    <div id="admin_users">
	            <p>This table allows you to add a user to the list of ng6 administrator</p>
	            <table class="table table-striped table-bordered dataTable" id="users_data_table">
		            <thead>
			            <tr>
				            <th><center><input type="checkbox" id="chk_all_user"></center></th>
Penom Nom's avatar
Penom Nom committed
222
				            <th>Login</th>
Penom Nom's avatar
Penom Nom committed
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
				            <th>Last name</th>
				            <th>First name</th>
				            <th>Email</th>
			            </tr>
		            </thead>
		            <tbody> 
			            {foreach from=$ng6_admin_users key=c_user_id item=user_values}
				            {* highlight user personnal line *}
				            {assign var="emphasis" value=""}
				            {if $user_values.id==$user_id}
					            {assign var="emphasis" value="tx-nG6-pi1-line-emphasis"}
				            {/if}
			
				            <tr id="tr_user_{$user_values.id}" class="{$emphasis}">
					
					            {if $user_values.id == $user_id }
						            <td></td>
					            {else}
						            <td><center><input type="checkbox" id="chk_user_{$user_values.id}" value="user_{$user_values.id}" /></center></td>
					            {/if}
					
					            <td>{$user_values.username}</td>
					            <td>{$user_values.last_name}</td>
					            <td>{$user_values.first_name}</td>
					            <td>{$user_values.email}</td>
					
				            </tr>
			            {/foreach}
		            </tbody>
		            <tfoot>
			            <tr>
				            <th align="left" colspan="8">
					            With selection :
					            <div  class="btn-group">
Penom Nom's avatar
Penom Nom committed
257
258
						            <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>
Penom Nom's avatar
Penom Nom committed
259
260
261
262
263
264
265
					            </div>
				            </th>
			            </tr>
		            </tfoot>
	            </table>
            </div>
		</div>
Penom Nom's avatar
Penom Nom committed
266
267
		
		<div class="tab-pane fade" id="wf_monitoring"></div>
Penom Nom's avatar
Penom Nom committed
268
269
270
	</div>
</div>

271

Penom Nom's avatar
Penom Nom committed
272
273
{* Modal initialization *}
{* Global tmpl *}
Penom Nom's avatar
Penom Nom committed
274
275
276
277
278
279
280
281
282
283
284
<div id="ng6modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="modal-label-tmpl" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
	        <div class="modal-header">
		        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
		        <h3 id="modal-label-tmpl">Modal header</h3>
	        </div>
	        <div id="modal-body-tmpl" class="modal-body"></div>
	        <div id="modal-foot-tmpl" class="modal-footer"></div>
        </div>
    </div>
285
286
287
</div>

<!-- statusModal -->
Penom Nom's avatar
Penom Nom committed
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<div id="statusModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="statusModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
	        <div class="modal-header">
		        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
		        <h3 id="statusModalLabel"></h3>
	        </div>
	        <div id="statusModalBody" class="modal-body"></div>
	        <div class="modal-footer">
		        <button id="refresh_workflow" class="btn btn-default"><i class="glyphicon glyphicon-refresh"></i> Refresh</button>
		        <button id="rerun_workflow" class="btn btn-primary"><i class="glyphicon glyphicon-cog"></i> ReRun</button>
	        </div>
        </div>
    </div>
Penom Nom's avatar
Penom Nom committed
302
</div>