create slice link
[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="#">MANAGERS & 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
36         </div>
37     </div>
38     <div class="home-panel" id="users" style="display:none;">
39         <br>
40         <h1>Managers: onelab.upmc</h1>
41         <table>
42             <tr>
43                 <th>email</th>
44                 <th>user_hrn</th>
45                 <th>number of slices</th>
46                 <th>status</th>
47             </tr>
48             <tr>
49                 <td><a href="/portal/user/loic.baron@lip6.fr">loic.baron@lip6.fr</a></td>
50                 <td>onelab.upmc.loic_baron</td>
51                 <td>3</td>
52                 <td>enabled</td>
53             </tr>
54             <tr>
55                 <td><a href="/portal/user/loic.baron@lip6.fr">loic.baron@lip6.fr</a></td>
56                 <td>onelab.upmc.loic_baron</td>
57                 <td>3</td>
58                 <td>enabled</td>
59             </tr>
60         </table>
61         <br>
62         <h1>Users: onelab.upmc</h1>
63         <table>
64             <tr>
65                 <th>email</th>
66                 <th>user_hrn</th>
67                 <th>number of slices</th>
68                 <th>status</th>
69             </tr>
70             <tr>
71                 <td><a href="/portal/user/loic.baron@lip6.fr">loic.baron@lip6.fr</a></td>
72                 <td>onelab.upmc.loic_baron</td>
73                 <td>3</td>
74                 <td>enabled</td>
75              </tr>
76   
77              <tr>
78                 <td><a href="/portal/user/loic.baron@lip6.fr">loic.baron@lip6.fr</a></td>
79                 <td>onelab.upmc.loic_baron</td>
80                 <td>3</td>
81                 <td>enabled</td>
82               </tr>
83         </table>
84     </div>
85     <div class="home-panel" id="slices" style="display:none;">
86         <br>
87         <h1>Slices: onelab.upmc <button id="createslice" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Create a Slice</button></h1>
88         <table>
89             <tr>
90                 <th>+/-</th>
91                 <th>slice_hrn</th>
92                 <th>number of users</th>
93                 <th>expiration date</th>
94             </tr>
95             <tr>
96                 <td><input type="checkbox"></td>
97                 <td><a href="/portal/slice/ple.upmc.myslicedemo">onelab.upmc.myslicedemo</a></td>
98                 <td>3</td>
99                 <td>2014-02-11 17:20:37</td>
100             </tr>
101             <tr>
102                 <td><input type="checkbox"></td>
103                 <td><a href="/portal/slice/ple.upmc.zzzz">onelab.upmc.zzzz</a></td>
104                 <td>3</td>
105                 <td>2014-02-11 17:20:37</td>
106             </tr>
107         </table>
108         <div>
109             <button id="renewslices" type="button" class="btn btn-default"><span class="glyphicon glyphicon-refresh"></span> Renew Slices</button>
110             <button id="deleteslices" type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> Delete Slices</button>
111         </div>
112     </div>
113 </div>
114 <script>
115     $(document).ready(function() {
116         $('a.home-tab').click(function() {
117             $('ul.nav-tabs li').removeClass('active');
118             $(this).parent().addClass('active');
119             $('div.home-panel').hide();
120             $('div#'+$(this).data('panel')).show();
121         });
122         $('button#createslice').click(function() {
123             window.location="/portal/slice_request/";
124         })
125         ;$('button#slicerequestbtn').click(function() {
126             /*
127             window.location="/portal/slice_request/";
128             */
129         });
130     });
131 </script>
132 {% endblock unfold_main %}