page.add_css_files ( [ "https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" ] )
if method == 'POST':
+ reg_form = {}
# The form has been submitted
# get the domain url
else:
user_request = {}
+ ## this is coming from onelab website onelab.eu
+ reg_form = {
+ 'first_name': wsgi_request.GET.get('first_name', ''),
+ 'last_name': wsgi_request.GET.get('last_name', ''),
+ 'email': wsgi_request.GET.get('email', ''),
+ }
template_env = {
'topmenu_items': topmenu_items_live('Register', page),
'theme': self.theme
}
template_env.update(user_request)
+ template_env.update(reg_form)
template_env.update(page.prelude_env ())
return render(wsgi_request, self.template,template_env)
{% include 'messages-transient-header.html' %}
<script type="text/javascript"> {# raw js code - use {% insert prelude_js %} ... {% endinsert %} #} {% container prelude_js %}</script>
<script src="{{ STATIC_URL }}js/jquery.dataTables.min.js"></script>
+<script src="{{ STATIC_URL }}js/jquery.qtip.min.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap.datatables.js"></script>
<!-- <script src="{{ STATIC_URL }}js/stash.min.js"></script> -->
<script src="{{ STATIC_URL }}js/myslice.js"></script>
{% insert_str prelude "css/topmenu.css" %}
{% insert_str prelude "js/logout.js" %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/{{ theme }}.css">
+<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/jquery.qtip.min.css">
+
<script type="text/javascript">
/*
if(data.length > 0){
drawSlices(data[0].slices);
}else{
- $("div#home-slice-list").html("<div>no slice</div>");
+ $("div#home-slice-list").html(
+ "<div>You do not yet have a slice</div>");
$("ul#dropdown-slice-list").append("<li>no slice</li>");
slices.push("no slice");
}
}
function drawSlices(slices){
var items = [];
+
$.each( slices, function(i, val) {
items.push( "<li><a href=\"/slice/"+val+"\">" + val + "</a></li>" );
});
$("ul#dropdown-slice-list").append(items.join( "" ));
}
{% endif %}
+ jQuery('[title!=""]').qtip();
});
</script>
</head>
<div>
<button id="slicerequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Request Slice</button>
</div>
+ <div>
+ <p title="A slice is a set of testbed resources on which you can conduct an experiment.
+ Either ask your colleagues to give you access to an existing slice or request a new slice now.">
+ <strong>Your slices</strong></p>
+ </div>
<div>
<div id="home-slice-list"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
</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>
+ <span class="label">Username:</span> <a href='/portal/account/' title="Click here to see and edit your account details.">{{person.email}}</a>
</div>
</div>
</div>
</li>
{%if 'is_pi' in pi %}
<li id="nav-institution" class=""><a href="/portal/institution">MANAGEMENT</a></li>
- {%endif%}
<li id="nav-request"><a href="/portal/validate">REQUESTS</a></li>
+ {%endif%}
<li><a href="/portal/support/">SUPPORT</a></li>