f4f-css
[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" style="width: 150px;" 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                 <h3 title="Some tools do their own slice creation and management.">Experiment now</h3>
26                          </div>
27                         <div>
28                                         <a class="btn btn-primary" style="width: 150px;" 
29                     href='http://jfed.iminds.be/releases/r1389/webstart/experimenter/jfed-experimenter.jnlp'
30                                         title="Click here to start your experiment with jFed" 
31                                         onclick="return  launchApplication('http://jfed.iminds.be/releases/r1389/webstart/experimenter/jfed-experimenter.jnlp');">
32                     <span class="glyphicon glyphicon-cloud"></span> jFed</a>
33                         </div>
34                 </div>
35                 <div class="col-md-3">
36                         <h3>MANAGEMENT</h3>
37                         <div>
38                                 <a href="/portal/institution"><img src="{{ STATIC_URL }}img/icon_authority_color.png" alt="" /></a>
39                         </div>
40                         <div>
41                                 <button id="validaterequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Validate Requests</button>
42                         </div>
43                 </div>
44                 <div class="col-md-3">
45                         <h3>
46                                 SUPPORT
47                         </h3>
48                         <div>
49                                 <a href="http://doc.fed4fire.eu/support.html"><img src="{{ STATIC_URL }}img/icon_support.png" alt="" /></a>
50                         </div>
51                         <div>
52                                 <button id="ticketbtn" type="button" style="width: 150px;" class="btn btn-default"><span class="glyphicon glyphicon-envelope"></span> Contact</button>
53                         </div>
54                         <p></p>
55                         <div>
56                         <button id="statbtn" type="button" style="width: 150px;" class="btn btn-default"><span class="glyphicon glyphicon-stats"></span>Testbeds' status</button>
57                         </div>
58                 </div>
59                 
60                 <div class="col-md-3">
61                         <h3>
62                                 ACCOUNT
63                         </h3>
64                         <div>
65                                 <a href="/portal/account/"><img src="{{ STATIC_URL }}img/icon_user_color.png" alt="" /></a>
66                         </div>
67                         <div>
68                                 <button id="logoutbtn" type="button" style="width: 150px;" class="btn btn-default" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</button>
69                         </div>
70                         <div>
71                                 {% if person.last_name %}
72                                         {{person.first_name}} {{person.last_name}}<br />
73                                 {% endif %}
74                         <span class="label">Email:</span> <a href='/portal/account/'>{{person.email}}</a>
75                 </div>
76                 </div>
77         </div>
78 </div>
79 {% else %}
80 <div class="container-fluid home">
81         <div class="">
82                 <div class="col-sm-2"></div>
83                 <div class="col-sm-4 slogan">
84                         <h2>
85                                 Fed4FIRE Portal
86                         </h2>
87                         <h3>
88                                 Your easy access to Future Internet Research and Experimentation testbeds belonging to the Fed4FIRE federation.
89                         </h3>
90                         <h3>
91                                  <a href='http://doc.fed4fire.eu'>Want to learn more?</a>
92                         </h3>
93                 </div>
94                 <div class="col-sm-4 col-sm-offset-1" style="width:400px; top:16px; float:left;">
95                         <div class="row">
96                                 {% widget '_widget-login-user.html' %}
97                         </div>
98                 </div>
99                 <div class="col-sm-1"></div>
100         </div>
101 </div>
102 {% endif %}
103
104
105 <script type="text/javascript">
106         $(document).ready(function() {
107                 $('a.home-tab').click(function() {
108                         $('ul.nav-tabs li').removeClass('active');
109                         $(this).parent().addClass('active');
110                         $('div.home-panel').hide();
111                         $('div#'+$(this).data('panel')).show();
112                 });
113                 $('button#validaterequestbtn').click(function() {
114                         window.location="/portal/validate/";
115                 });
116                 $('button#ticketbtn').click(function() {
117                         window.location="/portal/contact/";
118                 });
119                 $('button#statbtn').click(function() {
120                 window.location="https://flsmonitor.fed4fire.eu";
121                 });
122                 $('button#signupbtn').click(function() {
123                         window.location="/portal/register/";
124                 });
125                 $('button#slicerequestbtn').click(function() {
126                         window.location="/portal/slice_request/";
127                 });
128 /*-------
129 List of slices has been moved in 
130 portal/templates/base.html
131 This should go into session
132 --------*/
133 });
134 </script>
135 <script type="text/javascript" src="{{STATIC_URL}}js/fed4fire_dtjava_orig.js"></script>
136 <script>
137         function launchApplication(jnlpfile) {
138         dtjava.launch(
139                 { url : jnlpfile },
140             {
141                 javafx : '2.2+',
142                 toolkit: 'swing'
143                 },
144                 {}
145         );
146         return false;
147      }
148 </script>
149 {% endblock %}