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