f40b831a92e9e9280a506f52e01cadfa9c360c52
[myslice.git] / portal / templates / registration_view.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    <!-- DEPRECATED
43         <div class="field">
44      <label for="aff_list">Affiliation</label>
45      <input type="text" id="aff_list" name="affiliation" size="25" class="required"  value="{{ affiliation }}"/> 
46      <p class="hint">Enter your Institution name</p>
47      <?php echo $erraffiliation;?>
48    </div>
49         -->
50     <div class="field">
51       <label for="auth_list">Authority</label>
52       <select id="auth_list" name="authority_hrn" size="1" class="required">
53         {% for authority in authorities %}
54         <option value="{{ authority.authority_hrn }}"/>{{authority.name}} ({{authority.authority_hrn}})</option>
55         {% endfor %}
56      </select>
57      <p class="hint">Please select an authority responsible for vetting your account</p>
58    </div>
59
60    <div class="field">
61      <label for="cemail">Email</label>
62      <input type="text" id="email" name="email" size="25"  class="required email" value="{{ email }}"/> 
63      <p class="hint">Enter a valid email address</p>
64      <?php echo $errEmail; ?>
65    </div>
66    <div class="field">
67      <label for="password">Password</label>
68      <input type="password"  id="password" name="password"   class="required" minlength="4" value="{{ password }}"/> 
69      <p class="hint">Enter password</p>
70      <?php //echo $errPass;?>
71    </div>
72    <div class="field">
73      <label for="password">Confirm Password</label>
74      <input type="password"  id="confirmpassword" name="confirmpassword"   minlength="4" class="required" value=""/>
75      <p class="hint">Retype the password</p>
76    </div>
77    <div class="field">
78       <label for="question">My Public Key</label>
79       <select name="question" class="required" id="question">        
80         <option value="generate">Generate key pairs for me </option>
81         <option value="upload">Upload my public key </option>
82       </select> 
83       <?php echo $errFile; ?>
84    </div>
85    <div class="field" style="display:none;" id="upload_key">
86       <label for="file">Upload public key</label>
87       <input type="file" name="user_public_key" class="required" id="user_public_key"/>
88       <p class="hint">Upload a valid public key</p>
89    </div>
90    <div class="field">
91      <input class="submit" type="submit" name="submit" value="Register"/>
92    </div>
93  </fieldset>
94 </form>
95
96 {% endblock %}
97