added theme
[myslice.git] / portal / templates / onelab / home-view.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="user" href="#">USER</a></li>
7           <li><a class="home-tab" data-panel="manager" href="#">MANAGER</a></li>
8         </ul>
9         <div class="home-panel" id="user">
10                 <table>
11                         <tr>
12                                 <td>ACCOUNT</td>
13                                 <td>SLICES</td>
14                                 <td>SUPPORT</td>
15                         </tr>
16                         <tr>
17                                 <td><img src="{{ STATIC_URL }}img/icon_user_color.png" alt="" /></td>
18                                 <td><img src="{{ STATIC_URL }}img/icon_slices.png" alt="" /></td>
19                                 <td><img src="{{ STATIC_URL }}img/icon_support.png" alt="" /></td>
20                         </tr>
21                         <tr>
22                                 <td>
23                                 {% if person %}
24                                         <button id="logoutbtn" type="button" class="btn btn-default" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</button>
25                                         <div>
26                                         {% if person.last_name %}
27                                                 {{person.first_name}} {{person.last_name}}<br />
28                                         {% endif %}
29                                         <span class="label">Email:</span> <a href='mailto:{{person.email}}'>{{person.email}}</a>
30                                 </div>
31                                 {% else %}
32                                         {% include 'onelab/_widget-login-user.html' %}
33                                 {% endif %}
34                                 </td>
35                                 <td>
36                                         <button id="slicerequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Request a Slice</button>
37                                 </td>
38                                 <td class="support">
39                                         <button id="ticketbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Create Ticket</button>
40                                         <div>
41                                                 <a href="/portal/contact">Contact</a> <br />
42                                                 <a href="">Documentation</a>
43                                         </div>
44                                 </td>
45                         </tr>
46                 </table>
47         </div>
48         <div class="home-panel" id="manager">
49                 <table>
50                         <tr>
51                                 <td>INSTITUTION</td>
52                                 <td>SLICES</td>
53                                 <td>REQUESTS</td>
54                         </tr>
55                         <tr>
56                                 <td><img src="{{ STATIC_URL }}img/icon_user_color.png" alt="" /></td>
57                                 <td><img src="{{ STATIC_URL }}img/icon_slices.png" alt="" /></td>
58                                 <td><img src="{{ STATIC_URL }}img/icon_testbed_color.png" alt="" /></td>
59                         </tr>
60                         <tr>
61                                 <td>
62                                 {% if person %}
63                                         {% if person.last_name %}
64                                         <div><span id='username'>{{person.first_name}} {{person.last_name}}</span></div> {% endif %}
65                                 <div><b>Email: </b><a href='mailto:{{person.email}}'>{{person.email}}</a></div>
66                                 {% else %}
67                                         {% include 'onelab/_widget-login-manager.html' %}
68                                 {% endif %}
69                                 </td>
70                                 <td>
71                                         
72                                 </td>
73                                 <td class="support">
74                                         <div><a href=""></a></div>
75                                         <div><a href=""></a></div>
76                                 </td>
77                         </tr>
78                 </table>
79         </div>
80 </div>
81 <script>
82         $(document).ready(function() {
83                 $('a.home-tab').click(function() {
84                         $('ul.nav-tabs li').removeClass('active');
85                         $(this).parent().addClass('active');
86                         $('div.home-panel').hide();
87                         $('div#'+$(this).data('panel')).show();
88                 });
89                 $('button#ticketbtn').click(function() {
90                         window.location="/portal/contact/";
91                 })
92                 ;$('button#slicerequestbtn').click(function() {
93                         window.location="/portal/slice_request/";
94                 });
95         });
96 </script>
97 {% endblock unfold_main %}