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 %}
15 {% for error in errors %}
22 <form class="cmxform" id="commentForm" method="post" action="" enctype="multipart/form-data" >
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>
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;?>
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;?>
43 <label for="aff_list">Affiliation</label>
44 <input type="text" id="aff_list" name="affiliation" size="25" class="required" value="{{ affiliation }}"/>
45 <p class="hint">Enter your Institution name</p>
46 <?php echo $erraffiliation;?>
49 <label for="cemail">Email</label>
50 <input type="text" id="email" name="email" size="25" class="required email" value="{{ email }}"/>
51 <p class="hint">Enter a valid email address</p>
52 <?php echo $errEmail; ?>
55 <label for="password">Password</label>
56 <input type="password" id="password" name="password" class="required" minlength="4" value="{{ password }}"/>
57 <p class="hint">Enter password</p>
58 <?php //echo $errPass;?>
61 <label for="password">Confirm Password</label>
62 <input type="password" id="confirmpassword" name="confirmpassword" minlength="4" class="required" value=""/>
63 <p class="hint">Retype the password</p>
66 <label for="question">My Public Key</label>
67 <select name="question" class="required" id="question">
68 <option value="generate">Generate key pairs for me </option>
69 <option value="upload">Upload my public key </option>
71 <?php echo $errFile; ?>
73 <div class="field" style="display:none;" id="upload_key">
74 <label for="file">Upload public key</label>
75 <input type="file" name="user_public_key" class="required" id="user_public_key"/>
76 <p class="hint">Upload a valid public key</p>
79 <input class="submit" type="submit" name="submit" value="Register"/>