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