</div>
<div class="row">
<div class="col-md-12">
- <p><strong>Questions? <a href="/portal/contact" >Contact us.</a></strong></p>
+ <p><strong>Questions? <a href="/contact" >Contact us.</a></strong></p>
</div>
</div>
{% if errors %}
-<ul>
- {% for error in errors %}
- <li>{{ error }}</li>
- {% endfor %}
-</ul>
+<div class="row">
+ <div class="col-md-12">
+ <ul class="error">
+ {% for error in errors %}
+ <li>{{ error | safe }}</li>
+ {% endfor %}
+ </ul>
+ </div>
+</div>
{% endif %}
-
-
-<form action="/register" class="cmxform form-horizontal" method="post" enctype="multipart/form-data">
<div class="row">
-
<div class="col-md-12">
-
<div class="form-group">
+ <form action="/register" class="cmxform form-horizontal" method="post" enctype="multipart/form-data">
+
{% csrf_token %}
<label for="authority_hrn" class="control-label">Organization</label>
<p></p>
<input id="authority_hrn" name="org_name" class="form-control" style="width:590px" value="{{ organization }}"
title="Choose your organization (company/university) from the list that apears when you click in the field and start to type.
- Use the arrow keys to scroll through the list; type part of the name to narrow down the list. If it is not in the list,
- please request its addition by clicking the link below. We will send an email to the managers that we have on record for
- your organization, asking them to validate your sign-up request." required />
+ Use the arrow keys to scroll through the list; type part of the name to narrow down the list. We will send an email to
+ the managers that we have on record for your organization, asking them to validate your sign-up request." required />
<p></p>
<p>Organization not listed? <a href="/portal/join">Request its addition now.</a></p>
</div>
<div class="col-md-10">
<div class="form-group" id="register">
<span class="glyphicon glyphicon-info-sign"></span>
- If you are a <b>PlanetLab Europe</b> fill in this form using the same email address that you currently use for your PlanetLab Europe account,
- your existing credentials will be used to validate your OneLab account.
+ If you are a <b>PlanetLab Europe</b> user, please fill in this form using the same email address that you
+ currently use for your PlanetLab Europe account.
+ Your existing credentials will be used to validate your OneLab account.
Please be sure to specify a different password for your new OneLab account.
</div>
</div>
<div class="form-group" id="register">
<p></p>
<input class="submit btn btn-onelab" type="submit" value="Sign up" />
-
+ </form>
</div>
</div>
</div>
-</form>
<!-- Modal - columns selector -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
{% for authority in authorities %}
{% if authority.name %}
{value:"{{ authority.name }}",label:"{{authority.name}}"},
- // to show only full name
- // {% else %}
- // {value:"{{ authority.authority_hrn }}",label:"{{authority.authority_hrn}}"},
+ // show hrn if we don't have the name
+ {% else %}
+ {value:"{{ authority.authority_hrn }}",label:"{{authority.authority_hrn}}"},
{% endif %}
{% endfor %}
{% else %}
minLength: 0,
change: function (event, ui) {
if(!ui.item){
- //http://api.jqueryui.com/autocomplete/#event-change -
- // The item selected from the menu, if any. Otherwise the property is null
- //so clear the item for force selection
jQuery("#authority_hrn").val("");
}
}
- //select: function( event, ui ) {console.log(jQuery(this))}
});
- // for hover texts
$('[title!=""]').qtip();
$("form").validate();
$("form").submit(function() {