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