portal.register: added authority_hrn (TODO: deprecate Institution)
[myslice.git] / portal / templates / register_4m_f4f.html
1 {% extends "layout-unfold1.html" %}
2
3 {% block head %}                
4 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/register.css" />
5 <script type="text/javascript" src="{{STATIC_URL}}/jquery.validate.js"></script> 
6 <script type="text/javascript" src="{{STATIC_URL}}/my_account.register.js"></script>
7 {% endblock %}                              
8                                     
9 {% block unfold1_main %}        
10
11
12
13 {% if errors %}
14         <ul>
15             {% for error in errors %}
16             <li>{{ error }}</li>
17             {% endfor %}
18         </ul>
19     {% endif %}
20
21
22 <form class="cmxform" id="commentForm" method="post" action="" enctype="multipart/form-data" >
23 {% csrf_token %}
24  <fieldset>
25     <div class="OneLabTitle">
26         <h2>OneLab Experimenter Registration</h2>
27         <h3>For First Line Support please <a href="/portal/contact" >Contact Support</a></h3>
28     </div>
29    
30    <div class="field">
31      <label for="cname">First Name</label>
32      <input type="text" id="firstname" name="firstname" size="25" class="required" minlength="2" value="{{ firstname}}" /> 
33      <p class="hint">Enter your first name</p>
34      <?php echo $errfName;?>
35    </div>
36    <div class="field">
37      <label for="lname">Last Name</label>
38      <input type="text" id="lastname" name="lastname" size="25" class="required" minlength="2" value="{{ lastname }}"/> 
39      <p class="hint">Enter your last name</p>
40      <?php echo $errlName;?>
41    </div>
42    <div class="field">
43      <label for="aff_list">Affiliation</label>
44      <input type="text" id="aff_list" name="affiliation" size="25" class="required"  value="{{ affiliation }}"/> 
45      <p class="hint">Enter your Institution name</p>
46      <?php echo $erraffiliation;?>
47    </div>
48
49     <div class="field">
50       <label for="auth_list">Authority</label>
51       <select id="auth_list" name="authority_hrn" size="1" class="required">
52         {% for authority in authorities %}
53         <option value="{{ authority.authority_hrn }}"/>{{authority.name}} ({{authority.authority_hrn}})</option>
54         {% endfor %}
55      </select>
56      <p class="hint">Please select an authority responsible for vetting your account</p>
57    </div>
58
59    <div class="field">
60      <label for="cemail">Email</label>
61      <input type="text" id="email" name="email" size="25"  class="required email" value="{{ email }}"/> 
62      <p class="hint">Enter a valid email address</p>
63      <?php echo $errEmail; ?>
64    </div>
65    <div class="field">
66      <label for="password">Password</label>
67      <input type="password"  id="password" name="password"   class="required" minlength="4" value="{{ password }}"/> 
68      <p class="hint">Enter password</p>
69      <?php //echo $errPass;?>
70    </div>
71    <div class="field">
72      <label for="password">Confirm Password</label>
73      <input type="password"  id="confirmpassword" name="confirmpassword"   minlength="4" class="required" value=""/>
74      <p class="hint">Retype the password</p>
75    </div>
76    <div class="field">
77       <label for="question">My Public Key</label>
78       <select name="question" class="required" id="question">        
79         <option value="generate">Generate key pairs for me </option>
80         <option value="upload">Upload my public key </option>
81       </select> 
82       <?php echo $errFile; ?>
83    </div>
84    <div class="field" style="display:none;" id="upload_key">
85       <label for="file">Upload public key</label>
86       <input type="file" name="user_public_key" class="required" id="user_public_key"/>
87       <p class="hint">Upload a valid public key</p>
88    </div>
89    <div class="field">
90      <input class="submit" type="submit" name="submit" value="Register"/>
91    </div>
92  </fieldset>
93 </form>
94
95 {% endblock %}
96