Fed4Fire: templates specific to Fed4fire theme added
authorYasin <mohammed-yasin.rahman@lip6.fr>
Tue, 29 Apr 2014 13:59:12 +0000 (15:59 +0200)
committerYasin <mohammed-yasin.rahman@lip6.fr>
Tue, 29 Apr 2014 13:59:12 +0000 (15:59 +0200)
portal/templates/fed4fire/fed4fire_home-view.html [new file with mode: 0644]
portal/templates/fed4fire/fed4fire_slice-tab-testbeds.html [new file with mode: 0644]
portal/templates/fed4fire/fed4fire_supportview.html [deleted file]

diff --git a/portal/templates/fed4fire/fed4fire_home-view.html b/portal/templates/fed4fire/fed4fire_home-view.html
new file mode 100644 (file)
index 0000000..0414be9
--- /dev/null
@@ -0,0 +1,116 @@
+{% extends "layout.html" %}
+{% load portal_filters %}
+
+{% block content %}
+<div class="row">
+{% widget '_widget_news.html' %}
+</div>
+<div class="row" id="home-dashboard">
+       <ul class="nav nav-tabs">
+         <li class="active"><a class="home-tab" data-panel="user" href="#">USER</a></li>
+         <li><a class="home-tab" data-panel="manager" href="#">MANAGER</a></li>
+       </ul>
+       <div class="home-panel" id="user">
+               <table>
+                       <tr>
+                               <td>ACCOUNT</td>
+                               <td>SLICES</td>
+                               <td>SUPPORT</td>
+                       </tr>
+                       <tr>
+                               <td><a href="/portal/account/"><img src="{{ STATIC_URL }}img/icon_user_color.png" alt="" /></a></td>
+                               <td><a href="#"><img src="{{ STATIC_URL }}img/icon_slices.png" alt="" /></a></td>
+                               <td><a href="http://doc.fed4fire.eu/support.html" target="_blank"><img src="{{ STATIC_URL }}img/icon_support.png" alt="" /></a></td>
+                       </tr>
+                       <tr>
+                               {% if person %}
+                               <td class="logged-in">
+                                       <button id="logoutbtn" type="button" class="btn btn-default" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</button>
+                                       <div>
+                                       {% if person.last_name %}
+                                               {{person.first_name}} {{person.last_name}}<br />
+                                       {% endif %}
+                                       <span class="label">Email:</span> <a href='/portal/account/'>{{person.email}}</a>
+                               </div>
+                               {% else %}
+                               <td>
+                                       {% widget '_widget-login-user.html' %}
+                               {% endif %}
+                               </td>
+                               <td>
+                               {% if person %}
+                                       <button id="slicerequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Request Slice</button>
+                                       <div id="home-slice-list"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
+                               {% else %}
+                                       <button id="signupbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-user"></span> Sign Up</button>
+                               {% endif %}
+                               </td>
+                               <td class="support">
+                                       <button id="ticketbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-envelope"></span> Contact</button>
+                               </td>
+                       </tr>
+               </table>
+       </div>
+       <div class="home-panel" id="manager">
+               <table>
+                       <tr>
+                               <td>INSTITUTION</td>
+                               <td>SLICES</td>
+                               <td>REQUESTS</td>
+                       </tr>
+                       <tr>
+                               <td><a href="/portal/institution"><img src="{{ STATIC_URL }}img/icon_authority_color.png" alt="" /></a></td>
+                               <td><a href="/portal/institution#slices"><img src="{{ STATIC_URL }}img/icon_slices.png" alt="" /></a></td>
+                               <td><a href="/portal/validate"><img src="{{ STATIC_URL }}img/icon_testbed_color.png" alt="" /></a></td>
+                       </tr>
+                       <tr>
+                               {% if person %}
+                               <td class="logged-in">
+                                       <button id="logoutbtn" type="button" class="btn btn-default" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</button>
+                               {% else %}
+                               <td>
+                                       {% widget '_widget-login-manager.html' %}
+                               {% endif %}
+                               </td>
+                               <td>
+                                       {% if person %}
+                                   <button id="slicerequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Create Slice</button>
+                                       {% endif %}
+                               </td>
+                               <td class="support">
+                                       {% if person %}
+                                   <button id="validaterequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Validate Requests</button>
+                                       {% endif %}
+                               </td>
+                       </tr>
+               </table>
+       </div>
+</div>
+<script type="text/javascript">
+       $(document).ready(function() {
+               $('a.home-tab').click(function() {
+                       $('ul.nav-tabs li').removeClass('active');
+                       $(this).parent().addClass('active');
+                       $('div.home-panel').hide();
+                       $('div#'+$(this).data('panel')).show();
+               });
+               $('button#validaterequestbtn').click(function() {
+                       window.location="/portal/validate/";
+               });
+               $('button#ticketbtn').click(function() {
+                       window.location="/portal/contact/";
+               });
+               $('button#signupbtn').click(function() {
+                       window.location="/portal/register/";
+               });
+               $('button#slicerequestbtn').click(function() {
+                       window.location="/portal/slice_request/";
+               });
+/*-------
+List of slices has been moved in 
+portal/templates/base.html
+This should go into session
+--------*/
+});
+</script>
+{% endblock %}
diff --git a/portal/templates/fed4fire/fed4fire_slice-tab-testbeds.html b/portal/templates/fed4fire/fed4fire_slice-tab-testbeds.html
new file mode 100644 (file)
index 0000000..80b32ba
--- /dev/null
@@ -0,0 +1,2 @@
+<iframe src="http://doc.fed4fire.eu/testbeds.html" style="position: absolute; width:100%; height:100%">
+
diff --git a/portal/templates/fed4fire/fed4fire_supportview.html b/portal/templates/fed4fire/fed4fire_supportview.html
deleted file mode 100644 (file)
index 2f6e183..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-{% extends "layout.html" %}
-
-{% block content %}
-       <div class="row">
-               <h1><img src="{{ STATIC_URL }}icons/support-xs.png" alt="Support" /> Fed4Fire Portal Support</h1>
-       </div>
-
-       
-       <div class="row">
-               <h2>Report a Bug</h2>
-               <p>If you have found a bug or having difficulties accesing some features or found some anomalies, please report it using our ticketing system.</p>
-               <button id="ticketbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Create Ticket</button>
-       </div>
-       
-       <div class="row">
-       
-               <h2><a href="/portal/support/documentation">FAQ</a></h2>
-               <h2>Contact Us</h2>
-               
-               <h3>Mailing List</h3>
-               <p>You can subscribe to our mailing list by sending a request to: <b>support</b> AT <b>myslice</b> DOT <b>info</b></p>
-               <p>Also you can adress any issues in the same email address.</p>
-               
-               <h3>Mailing Address</h3>
-               <p>
-               UPMC - LIP6<br> 
-               BoĆ®te courrier 16 <br>
-               Couloir 26-00, Etage 01, Bureau 102<br>
-               4 place Jussieu<br>
-               75252 PARIS CEDEX 05<br>
-               France<br> 
-               </p>
-       </div>
-
-<script>
-    $(document).ready(function() {
-               $('li#nav-support').addClass("active");
-        $('button#ticketbtn').click(function() {
-            window.location="/portal/contact/";
-        });
-    });
-</script>
-
-
-{% endblock %}
-