template list of users
[unfold.git] / portal / templates / institution.html
1 {% extends "layout-unfold1.html" %}
2
3 {% block unfold_main %}
4 <div class="wrapper" id="home-dashboard">
5     <ul class="nav nav-tabs">
6       <li class="active"><a class="home-tab" data-panel="institution" href="#">INSTITUTION</a></li>
7       <li><a class="home-tab" data-panel="users" href="#">USERS</a></li>
8       <li><a class="home-tab" data-panel="slices" href="#">SLICES</a></li>
9     </ul>
10     <div class="home-panel" id="institution">
11         <br>
12         <h1>Affiliation to an Institution</h1>
13         <br>
14         <div style="float:left; width:30%;">
15             <img src="{{ STATIC_URL }}img/icon_authority_color.png" alt="" /><br>
16             <br>
17             <img src="{{ STATIC_URL }}img/onelab-logo.png" alt="" /><br>
18             <b>Membership:</b> Governor
19         </div>
20         <div style="float:right; width:70%;">
21             <img src="http://www.upmc.fr/skins/UPMC/templates/index/resources/img/upmc-logotype.gif" alt="" /><br>
22             <br>
23             <b>authority:</b> onelab.upmc<br>
24             <br>
25             <b>Université Pierre et Marie Curie</b><br>
26             <br>
27             <b>Address:</b> 4 Place Jussieu, 75005 Paris<br>
28             <br>
29             <b>Country:</b> France<br>
30             <br>
31             <br>
32             <h2>Contacts</h2>
33             <b>Legal:</b> Président Jean Chambaz<br>
34             <br>
35             <b>Scientific:</b> Dr Timur Friedman, Prof Serge Fdida
36         </div>
37     </div>
38     <div class="home-panel" id="users" style="display:none;">
39         <br>
40         <h1>Users: onelab.upmc</h1>
41         <table>
42             <tr>
43                 <th>+/-</th>
44                 <th>email</th>
45                 <th>user_hrn</th>
46                 <th>number of slices</th>
47                 <th>role</th>
48                 <th>status</th>
49             </tr>
50             <tr>
51                 <td><input type="checkbox"></td>
52                 <td><a href="/portal/user/loic.baron@lip6.fr">loic.baron@lip6.fr</a></td>
53                 <td>onelab.upmc.loic_baron</td>
54                 <td>3</td>
55                 <td>user</td>
56                 <td>enabled</td>
57             </tr>
58             <tr>
59                 <td><input type="checkbox"></td>
60                 <td><a href="/portal/user/loic.baron@lip6.fr">loic.baron@lip6.fr</a></td>
61                 <td>onelab.upmc.loic_baron</td>
62                 <td>3</td>
63                 <td>pi</td>
64                 <td>enabled</td>
65             </tr>
66         </table>
67         <div>
68             <button id="deleteusers" type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> Delete Users</button>
69         </div>
70     </div>
71     <div class="home-panel" id="slices" style="display:none;">
72         <br>
73         <h1>Slices: onelab.upmc <button id="createslice" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Create a Slice</button></h1>
74         <table>
75             <tr>
76                 <th>+/-</th>
77                 <th>slice_hrn</th>
78                 <th>number of users</th>
79                 <th>expiration date</th>
80             </tr>
81             <tr>
82                 <td><input type="checkbox"></td>
83                 <td><a href="/portal/slice/ple.upmc.myslicedemo">onelab.upmc.myslicedemo</a></td>
84                 <td>3</td>
85                 <td>2014-02-11 17:20:37</td>
86             </tr>
87             <tr>
88                 <td><input type="checkbox"></td>
89                 <td><a href="/portal/slice/ple.upmc.zzzz">onelab.upmc.zzzz</a></td>
90                 <td>3</td>
91                 <td>2014-02-11 17:20:37</td>
92             </tr>
93         </table>
94         <div>
95             <button id="renewslices" type="button" class="btn btn-default"><span class="glyphicon glyphicon-refresh"></span> Renew Slices</button>
96             <button id="deleteslices" type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> Delete Slices</button>
97         </div>
98     </div>
99 </div>
100 <script>
101     $(document).ready(function() {
102         $('a.home-tab').click(function() {
103             $('ul.nav-tabs li').removeClass('active');
104             $(this).parent().addClass('active');
105             $('div.home-panel').hide();
106             $('div#'+$(this).data('panel')).show();
107         });
108         $('button#createslice').click(function() {
109             window.location="/portal/slice_request/";
110         })
111         ;$('button#slicerequestbtn').click(function() {
112             /*
113             window.location="/portal/slice_request/";
114             */
115         });
116     });
117 </script>
118 {% endblock unfold_main %}