fed4fire: changes for the review
[unfold.git] / portal / templates / fed4fire / fed4fire_home-view.html
1 {% extends "layout_base.html" %}
2 {% load portal_filters %}
3
4 {% block content %}
5 <!-- <div class="row">
6 {% widget '_widget-news.html' %}
7 </div> -->
8 {% if username %}
9 <div class="container dashboard">
10         <div class="row">
11                 <div class="col-md-3">
12                         <h3>
13                                 EXPERIMENT
14                         </h3>
15                         <div>
16                                 <a href="#"><img src="{{ STATIC_URL }}img/icon_slices.png" alt="" /></a>
17                         </div>
18                         <div>
19                                 <button id="slicerequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Request slice</button>
20                         </div>
21                         <div>   
22                                 <div id="home-slice-list"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
23                         </div>
24                          <div>
25                         <button id="jfed" type="button" class="btn btn-default" title="Some tools do their own slice creation and management.">
26                                 <span class="glyphicon glyphicon-globe"></span>Experiment now</button>
27                          </div>
28                         <div>
29                                 <ul><li>
30                                         <a class="button2" href='http://jfed.iminds.be/releases/r1306/webstart/experimenter/jfed-experimenter.jnlp'
31                                         title="Click here to start your experiment with jFed" 
32                                         onclick="return  launchApplication('http://jfed.iminds.be/releases/r1306/webstart/experimenter/jfed-experimenter.jnlp');">jFed</a>
33                                 </li></ul>
34                         </div>
35                 </div>
36                 <div class="col-md-3">
37                         <h3>MANAGEMENT</h3>
38                         <div>
39                                 <a href="/portal/institution"><img src="{{ STATIC_URL }}img/icon_authority_color.png" alt="" /></a>
40                         </div>
41                         <div>
42                                 <button id="validaterequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Validate Requests</button>
43                         </div>
44                 </div>
45                 <div class="col-md-3">
46                         <h3>
47                                 SUPPORT
48                         </h3>
49                         <div>
50                                 <a href="http://doc.fed4fire.eu/support.html" target="_blank"><img src="{{ STATIC_URL }}img/icon_support.png" alt="" /></a>
51                         </div>
52                         <div>
53                                 <button id="ticketbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-envelope"></span> Contact</button>
54                         </div>
55                 </div>
56                 
57                 <div class="col-md-3">
58                         <h3>
59                                 ACCOUNT
60                         </h3>
61                         <div>
62                                 <a href="/portal/account/"><img src="{{ STATIC_URL }}img/icon_user_color.png" alt="" /></a>
63                         </div>
64                         <div>
65                                 <button id="logoutbtn" type="button" class="btn btn-default" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</button>
66                         </div>
67                         <div>
68                                 {% if person.last_name %}
69                                         {{person.first_name}} {{person.last_name}}<br />
70                                 {% endif %}
71                         <span class="label">Email:</span> <a href='/portal/account/'>{{person.email}}</a>
72                 </div>
73                 </div>
74         </div>
75 </div>
76 {% else %}
77 <div class="container-fluid home">
78         <div class="">
79                 <div class="col-sm-2"></div>
80                 <div class="col-sm-4 slogan">
81                         <h2>
82                                 Your Easy Access to Computer Networking Testbeds.
83                         </h2>
84                         <h3>
85                                 A wide variety of world class testbeds available through your one account.
86                         </h3>
87                         <h3>
88                                  <a href='http://doc.fed4fire.eu' target="_blank">Want to learn more?</a>
89                         </h3>
90                 </div>
91                 <div class="col-sm-4 col-sm-offset-1" style="width:400px; top:16px; float:left;">
92                         <div class="row">
93                                 {% widget '_widget-login-user.html' %}
94                         </div>
95                 </div>
96                 <div class="col-sm-1"></div>
97         </div>
98 </div>
99 {% endif %}
100
101
102 <script type="text/javascript">
103         $(document).ready(function() {
104                 $('a.home-tab').click(function() {
105                         $('ul.nav-tabs li').removeClass('active');
106                         $(this).parent().addClass('active');
107                         $('div.home-panel').hide();
108                         $('div#'+$(this).data('panel')).show();
109                 });
110                 $('button#validaterequestbtn').click(function() {
111                         window.location="/portal/validate/";
112                 });
113                 $('button#ticketbtn').click(function() {
114                         window.location="/portal/contact/";
115                 });
116                 $('button#signupbtn').click(function() {
117                         window.location="/portal/register/";
118                 });
119                 $('button#slicerequestbtn').click(function() {
120                         window.location="/portal/slice_request/";
121                 });
122 /*-------
123 List of slices has been moved in 
124 portal/templates/base.html
125 This should go into session
126 --------*/
127 });
128 </script>
129 <SCRIPT src="http://jfed.iminds.be/dtjava_orig.js"></SCRIPT>
130 <script>
131         function launchApplication(jnlpfile) {
132         dtjava.launch(
133                 { url : jnlpfile },
134             {
135                 javafx : '2.2+',
136                 toolkit: 'swing'
137                 },
138                 {}
139         );
140         return false;
141      }
142 </script>
143 {% endblock %}