1 {% extends "layout-unfold1.html" %}
4 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/onelab.css" />
5 <!-- xxx ideally only onelab.css but ... xxx -->
6 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/registration.css" />
7 <script type="text/javascript" src="{{STATIC_URL}}/jquery.validate.js"></script>
8 <script type="text/javascript" src="{{STATIC_URL}}/my_account.register.js"></script>
11 {% block unfold1_main %}
16 {% for error in errors %}
23 <div class="onelab-title well well-lg">
24 <h2>OneLab Experimenter Registration</h2>
25 <h4>For First Line Support please <a href="/portal/contact" >Contact Support</a></h3>
29 <form class="cmxform" id="commentForm" method="post" action="" enctype="multipart/form-data" >
33 <label for="cname">First Name</label>
34 <input type="text" id="firstname" name="firstname" size="25" class="required" minlength="2" value="{{ firstname}}" />
35 <p class="hint">Enter your first name</p>
36 <?php echo $errfName;?>
39 <label for="lname">Last Name</label>
40 <input type="text" id="lastname" name="lastname" size="25" class="required" minlength="2" value="{{ lastname }}"/>
41 <p class="hint">Enter your last name</p>
42 <?php echo $errlName;?>
46 <label for="aff_list">Affiliation</label>
47 <input type="text" id="aff_list" name="affiliation" size="25" class="required" value="{{ affiliation }}"/>
48 <p class="hint">Enter your Institution name</p>
49 <?php echo $erraffiliation;?>
53 <label for="auth_list">Authority</label>
54 <select id="auth_list" name="authority_hrn" size="1" class="required">
55 {% for authority in authorities %}
56 <option value="{{ authority.authority_hrn }}"/>{{authority.name}} ({{authority.authority_hrn}})</option>
59 <p class="hint">Please select an authority responsible for vetting your account</p>
63 <label for="cemail">Email</label>
64 <input type="text" id="email" name="email" size="25" class="required email" value="{{ email }}"/>
65 <p class="hint">Enter a valid email address</p>
66 <?php echo $errEmail; ?>
69 <label for="password">Password</label>
70 <input type="password" id="password" name="password" class="required" minlength="4" value="{{ password }}"/>
71 <p class="hint">Enter password</p>
72 <?php //echo $errPass;?>
75 <label for="password">Confirm Password</label>
76 <input type="password" id="confirmpassword" name="confirmpassword" minlength="4" class="required" value=""/>
77 <p class="hint">Retype the password</p>
80 <label for="question">My Keys</label>
81 <select name="question" class="required" id="question">
82 <option value="generate">Generate key pairs for me </option>
83 <option value="upload">Upload my public key </option>
85 <p class="hint">Genkey: Account Delegation Automatic (Recommended)</p>
86 <?php echo $errFile; ?>
88 <div class="field" style="display:none;" id="upload_key">
89 <label for="file">Upload public key</label>
90 <input type="file" name="user_public_key" class="required" id="user_public_key"/>
91 <p class="hint">Account Delegation: Manual (Advanced Users)</p>
92 <p class="warning" id="pkey_del_msg">Once your account is validated, you have to delegate your credentials manually using SFA [Advanced users only]</p>
95 <div class="field" id="register">
96 <input class="submit btn" type="submit" name="submit" value="Register"/>