-
-<div class="well">
- <form class="cmxform form-horizontal" id="registrationForm" method="post" action="" enctype="multipart/form-data" role="form">
- <fieldset>
- {% csrf_token %}
- <div class="form-group">
- <label for="firstname" class="col-md-4 control-label">First Name</label>
- <div class="col-md-4">
- <input type="text" name="firstname" class="form-control" minlength="2" value="{{ firstname }}" placeholder="First Name" required />
- </div>
- <div class="col-md-4"> <p class="form-hint">Enter your first name</p> </div>
- </div>
- <div class="form-group">
- <label for="lastname" class="col-md-4 control-label">Last Name</label>
- <div class="col-md-4">
- <input type="text" name="lastname" size="25" class="form-control" minlength="2" value="{{ lastname }}" placeholder="Last Name" required />
- </div>
- <div class="col-md-4"><p class="form-hint">Enter your last name</p></div>
- </div>
- <div class="form-group">
- <label for="auth_list" class="col-md-4 control-label">Authority</label>
- <div class="col-md-4">
- <select id="auth_list" name="authority_hrn" size="1" class="form-control" required>
- {% if authorities %}
- {% for authority in authorities %}
- <option value="{{ authority.authority_hrn }}">{{authority.name}} ({{authority.authority_hrn}})</option>
- {% endfor %}
- {% else %} <!-- should not happen -->
- <option value="test">No authority found !!! </option>
- {% endif %}
- </select>
- </div>
- <div class="col-md-4"><p class="form-hint">Please select an authority responsible for vetting your account</p></div>
- </div>
-
- <div class="form-group">
- <label for="email" class="col-md-4 control-label">Email</label>
- <div class="col-md-4">
- <input type="email" name="email" size="25" class="form-control" value="{{ email }}" required/>
- </div>
- <div class="col-md-4"><p class="form-hint">Enter a valid email address</p></div>
- </div>
- <div class="form-group">
- <label for="password" class="col-md-4 control-label">Password</label>
- <div class="col-md-4">
- <input type="password" id="password" name="password" class="form-control" minlength="4" value="{{ password }}" required/>
- </div>
- <div class="col-md-4"><p class="form-hint">Enter password</p></div>
- </div>
- <div class="form-group">
- <label for="password" class="col-md-4 control-label">Confirm Password</label>
- <div class="col-md-4">
- <input type="password" id="confirmpassword" name="confirmpassword" minlength="4" class="form-control"
- value="" placeholder="Confirm Password" required/>
- </div>
- <div class="col-md-4"><p class="form-hint">Retype the password</p></div>
- </div>
- <div class="form-group">
- <label for="question" class="col-md-4 control-label">My Keys</label>
- <div class="col-md-4">
- <select name="question" class="form-control" id="key-policy" required>
- <option value="generate">Generate key pairs for me </option>
- <option value="upload">Upload my public key </option>
- </select>
- </div>
- <div class="col-md-4"><p class="form-hint">Genkey: Account Delegation Automatic (Recommended)</p> </div>
- </div>
- <div class="form-group" style="display:none;" id="upload_key">
- <label for="file" class="col-md-4 control-label">Upload public key</label>
- <div class="col-md-4">
- <input type="file" name="user_public_key" class="form-control" id="user_public_key" required/>
- <p class="warning" id="pkey_del_msg">Once your account is validated, you will have to delegate your credentials manually using SFA [Advanced users only]</p>
- </div>
- <div class="col-md-4"><p class="form-hint">Account Delegation: Manual (Advanced Users)</p></div>
- </div>
- <div class="form-group" id="register">
- <div class="col-md-offset-4 col-md-4">
- <button class="submit btn btn-default" type="submit">Register</button>
- </div>
- </div>
- </fieldset>
- </form>
+<form action="/register" class="cmxform form-horizontal" method="post" enctype="multipart/form-data">
+<div class="row">
+ <div class="col-md-6">
+ <div>
+ {% csrf_token %}
+ <label for="authority_hrn" class="control-label">Organization</label>
+ <p></p>
+ <div class="ui-widget">
+ <select id="org_name" 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. 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>
+ <option value="">select an organization</option>
+ {% if authorities %}
+ {% for authority in authorities %}
+ {% if authority.name %}
+ <option value="{{ authority.authority_hrn }}">{{authority.shortname}} - {{authority.name}}</option>
+ {% else %}
+ <option value="{{ authority.authority_hrn }}">{{authority.authority_hrn}}</option>
+ {% endif %}
+ {% endfor %}
+ {% else %}
+ <option value:"">No authority found !!!</option>
+ {% endif %}
+ </select>
+ </div>
+ <p></p>
+ {% include theme|add:"_authority_notListed.html" %}
+ </div>
+ </div>