1 {% extends "layout-unfold1.html" %}
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>
9 {% block unfold1_main %}
18 <form class="cmxform" id="commentForm" method="post" action="reg_process" enctype="multipart/form-data" >
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>
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;?>
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;?>
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;?>
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; ?>
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;?>
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>
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>
67 <?php echo $errFile; ?>
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" class="required" id="user_public_key"/>
72 <p class="hint">Upload a valid public key</p>
75 <input class="submit" type="submit" name="submit" value="Register"/>