131fdd4f35434d4d6923228ab8cd9716daf1ed07
[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
14
15
16
17
18 <form class="cmxform" id="commentForm" method="post" action="" enctype="multipart/form-data" >
19 {% csrf_token %}
20  <fieldset>
21     <div class="fed4fireTitle">
22         <h2>OneLab Experimenter Registration</h2>
23         <h3>For First Line Support please <a href="/portal/contact" >Contact Support</a></h3>
24     </div>
25    
26    <div class="field">
27      <label for="cname">First Name</label>
28      <input type="text" id="firstname" name="firstname" size="25" class="required" minlength="2" value="{{ form.field.value|default_if_none:"" }}" /> 
29      <p class="hint">Enter your first name</p>
30      <?php echo $errfName;?>
31    </div>
32    <div class="field">
33      <label for="lname">Last Name</label>
34      <input type="text" id="lastname" name="lastname" size="25" class="required" minlength="2" value="{{ form.field.value|default_if_none:"" }}"/> 
35      <p class="hint">Enter your last name</p>
36      <?php echo $errlName;?>
37    </div>
38    <div class="field">
39      <label for="aff_list">Affiliation</label>
40      <input type="text" id="aff_list" name="affiliation" size="25" class="required"  value="{{ form.field.value|default_if_none:"" }}"/> 
41      <p class="hint">Enter your Institution name</p>
42      <?php echo $erraffiliation;?>
43    </div>
44    <div class="field">
45      <label for="cemail">Email</label>
46      <input type="text" id="email" name="email" size="25"  class="required email" value="{{ form.field.value|default_if_none:"" }}"/> 
47      <p class="hint">Enter a valid email address</p>
48      <?php echo $errEmail; ?>
49    </div>
50    <div class="field">
51      <label for="password">Password</label>
52      <input type="password"  id="password" name="password"   class="required" minlength="4" value="{{ form.field.value|default_if_none:"" }}"/> 
53      <p class="hint">Enter password</p>
54      <?php //echo $errPass;?>
55    </div>
56    <div class="field">
57      <label for="password">Confirm Password</label>
58      <input type="password"  id="confirmpassword" name="confirmpassword"   minlength="4" class="required" value="{{ form.field.value|default_if_none:"" }}"/>
59      <p class="hint">Retype the password</p>
60    </div>
61    <div class="field">
62       <label for="question">My Public Key</label>
63       <select name="question" class="required" id="question">        
64         <option value="generate">Generate key pairs for me </option>
65         <option value="upload">Upload my public key </option>
66       </select> 
67       <?php echo $errFile; ?>
68    </div>
69    <div class="field" style="display:none;" id="upload_key">
70       <label for="file">Upload public key</label>
71       <input type="file" name="user_public_key" id="user_public_key"/>
72       <p class="hint">Upload a valid public key</p>
73    </div>
74    <div class="field">
75      <input class="submit" type="submit" name="submit" value="Register"/>
76    </div>
77  </fieldset>
78 </form>
79
80 {% endblock %}
81