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;?>
44 <label for="aff_list">Affiliation</label>
45 <input type="text" id="aff_list" name="affiliation" size="25" class="required" value="{{ affiliation }}"/>
46 <p class="hint">Enter your Institution name</p>
47 <?php echo $erraffiliation;?>
51 <label for="auth_list">Authority</label>
52 <select id="auth_list" name="authority_hrn" size="1" class="required">
53 {% for authority in authorities %}
54 <option value="{{ authority.authority_hrn }}"/>{{authority.name}} ({{authority.authority_hrn}})</option>
57 <p class="hint">Please select an authority responsible for vetting your account</p>
61 <label for="cemail">Email</label>
62 <input type="text" id="email" name="email" size="25" class="required email" value="{{ email }}"/>
63 <p class="hint">Enter a valid email address</p>
64 <?php echo $errEmail; ?>
67 <label for="password">Password</label>
68 <input type="password" id="password" name="password" class="required" minlength="4" value="{{ password }}"/>
69 <p class="hint">Enter password</p>
70 <?php //echo $errPass;?>
73 <label for="password">Confirm Password</label>
74 <input type="password" id="confirmpassword" name="confirmpassword" minlength="4" class="required" value=""/>
75 <p class="hint">Retype the password</p>
78 <label for="question">My Public Key</label>
79 <select name="question" class="required" id="question">
80 <option value="generate">Generate key pairs for me </option>
81 <option value="upload">Upload my public key </option>
83 <?php echo $errFile; ?>
85 <div class="field" style="display:none;" id="upload_key">
86 <label for="file">Upload public key</label>
87 <input type="file" name="user_public_key" class="required" id="user_public_key"/>
88 <p class="hint">Upload a valid public key</p>
91 <input class="submit" type="submit" name="submit" value="Register"/>