administration_view.tpl 5.35 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
		<li class="active"><a href="#wf_monitoring" data-toggle="tab">Workflows monitoring</a></li>
Jerome Mariette's avatar
Jerome Mariette committed
40
		<li><a href="#statistics" data-toggle="tab">Statistics</a></li>
Jerome Mariette's avatar
Jerome Mariette committed
41
42
43
44
	</ul>

	<div id="myTabContent" class="tab-content">
	
45
46
		<div class="tab-pane fade in active" id="wf_monitoring"></div>
		
Jerome Mariette's avatar
Jerome Mariette committed
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
		<div class="tab-pane fade" id="statistics">
			<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
65
				</label>
Jerome Mariette's avatar
Jerome Mariette committed
66
67
68
				<label class="radio">
					<input type="radio" name="group_by" id="by_organizations" value="organism">
						by organization
philippe's avatar
philippe committed
69
				</label>
Jerome Mariette's avatar
Jerome Mariette committed
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
				<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 />
				
				<div class="row">
					<div class="span2 offset9">
						<div class="btn-group" data-toggle="buttons-radio">
						    <button type="button" id="distribution" class="btn btn-primary"> <i class="icon-certificate icon-white"></i> distribution</button>
						    <button type="button" id="evolution" class="btn"><i class="icon-random"></i> evolution</button>
					    </div>
					</div>
			    </div>
				
Jerome Mariette's avatar
Jerome Mariette committed
124
			</div>
Jerome Mariette's avatar
Jerome Mariette committed
125
			<div id="project_graph"> </div>
Jerome Mariette's avatar
Jerome Mariette committed
126
		</div>
Jerome Mariette's avatar
Jerome Mariette committed
127
				
Jerome Mariette's avatar
Jerome Mariette committed
128
	</div>
129
130
131
132
133
</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
134
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
135
136
137
138
139
140
141
		<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
142
</div>