1 {% extends "layout-unfold1.html" %}
3 {% block unfold_main %}
5 <div class="onelab-title well-lg">
6 <h2>OneLab Experimenter Registration</h2>
7 <h4>For First Line Support please <a href="/portal/contact" >Contact Support</a></h3>
12 {% for error in errors %}
19 <form class="cmxform form-horizontal" id="registrationForm" method="post" action="" enctype="multipart/form-data" role="form">
22 <div class="form-group">
23 <label for="firstname" class="col-xs-2 control-label">First Name</label>
24 <div class="col-xs-4">
25 <input type="text" name="firstname" class="form-control" minlength="2" value="{{ firstname }}" placeholder="First Name" required />
27 <div class="col-xs-6"> <p class="form-hint">Enter your first name</p> </div>
29 <div class="form-group">
30 <label for="lastname" class="col-xs-2 control-label">Last Name</label>
31 <div class="col-xs-4">
32 <input type="text" name="lastname" size="25" class="form-control" minlength="2" value="{{ lastname }}" placeholder="Last Name" required />
34 <div class="col-xs-6"><p class="form-hint">Enter your last name</p></div>
36 <div class="form-group">
37 <label for="auth_list" class="col-xs-2 control-label">Authority</label>
38 <div class="col-xs-4">
39 <select id="auth_list" name="authority_hrn" size="1" class="form-control" required>
41 {% for authority in authorities %}
42 <option value="{{ authority.authority_hrn }}"/>{{authority.authority_hrn}}</option>
43 <!-- <option value="{{ authority.authority_hrn }}">{{authority.name}} ({{authority.authority_hrn}})</option> -->
45 {% else %} <!-- should not happen -->
46 <option value="test">No authority found !!! </option>
50 <div class="col-xs-6"><p class="form-hint">An authority responsible for vetting your account</p></div>
54 TODO: Login should be suggested from user email or first/last name, and
55 checked for existence. In addition, the full HRN should be shown to the
58 <div class="form-group">
59 <label for="login" class="col-xs-2 control-label">Login</label>
60 <div class="col-xs-4">
61 <input type="text" name="login" size="25" class="form-control" minlength="2" value="{{ login }}" placeholder="Login" required />
63 <div class="col-xs-6"><p class="form-hint">Enter your login</p></div>
66 <div class="form-group">
67 <label for="email" class="col-xs-2 control-label">Email</label>
68 <div class="col-xs-4">
69 <input type="email" name="email" size="25" class="form-control" value="{{ email }}" required/>
71 <div class="col-xs-6"><p class="form-hint">Enter a valid email address</p></div>
73 <div class="form-group">
74 <label for="password" class="col-xs-2 control-label">Password</label>
75 <div class="col-xs-4">
76 <input type="password" id="password" name="password" class="form-control" minlength="4" value="{{ password }}" required/>
78 <div class="col-xs-6"><p class="form-hint">Enter password</p></div>
80 <div class="form-group">
81 <label for="password" class="col-xs-2 control-label">Confirm Password</label>
82 <div class="col-xs-4">
83 <input type="password" id="confirmpassword" name="confirmpassword" minlength="4" class="form-control"
84 value="" placeholder="Confirm Password" required/>
86 <div class="col-xs-6"><p class="form-hint">Retype the password</p></div>
88 <div class="form-group">
89 <label for="question" class="col-xs-2 control-label">My Keys</label>
90 <div class="col-xs-4">
91 <select name="question" class="form-control" id="key-policy" required>
92 <option value="generate">Generate key pairs for me </option>
93 <option value="upload">Upload my public key </option>
96 <div class="col-xs-6"><p class="form-hint">Genkey: Account Delegation Automatic (Recommended)</p> </div>
98 <div class="form-group" style="display:none;" id="upload_key">
99 <label for="file" class="col-xs-2 control-label">Upload public key</label>
100 <div class="col-xs-4">
101 <input type="file" name="user_public_key" class="form-control" id="user_public_key" required/>
102 <p class="warning" id="pkey_del_msg">Once your account is validated, you will have to delegate your credentials manually using SFA [Advanced users only]</p>
104 <div class="col-xs-6"><p class="form-hint">Account Delegation: Manual (Advanced Users)</p></div>
106 <div class="form-group" id="register">
107 <button class="submit btn btn-default col-xs-12" type="submit">Register</button>