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 form-horizontal" id="registrationForm" method="post" action="" enctype="multipart/form-data" role="form">
31 <div class="form-group">
32 <label for="firstname" class="col-md-4 control-label">First Name</label>
33 <div class="col-md-4">
34 <input type="text" name="firstname" class="required form-control" minlength="2" value="{{ firstname }}" placeholder="First Name" />
35 <p class="hint">Enter your first name</p>
38 <div class="form-group">
39 <label for="lastname" class="col-md-4 control-label">Last Name</label>
40 <div class="col-md-4">
41 <input type="text" name="lastname" size="25" class="required form-control" minlength="2" value="{{ lastname }}" placeholder="Last Name" />
42 <p class="hint">Enter your last name</p>
45 <div class="form-group">
46 <label for="auth_list" class="col-md-4 control-label">Authority</label>
47 <div class="col-md-4">
48 <select id="auth_list" name="authority_hrn" size="1" class="required form-control">
49 {% for authority in authorities %}
50 <option value="{{ authority.authority_hrn }}"/>{{authority.name}} ({{authority.authority_hrn}})</option>
53 <p class="hint">Please select an authority responsible for vetting your account</p>
57 <div class="form-group">
58 <label for="email" class="col-md-4 control-label">Email</label>
59 <div class="col-md-4">
60 <input type="email" name="email" size="25" class="required form-control" value="{{ email }}"/>
61 <p class="hint">Enter a valid email address</p>
64 <div class="form-group">
65 <label for="password" class="col-md-4 control-label">Password</label>
66 <div class="col-md-4">
67 <input type="password" id="password" name="password" class="required form-control" minlength="4" value="{{ password }}"/>
68 <p class="hint">Enter password</p>
71 <div class="form-group">
72 <label for="password" class="col-md-4 control-label">Confirm Password</label>
73 <div class="col-md-4">
74 <input type="password" id="confirmpassword" name="confirmpassword" minlength="4" class="required form-control"
75 value="" placeholder="Confirm Password"/>
76 <p class="hint">Retype the password</p>
79 <div class="form-group">
80 <label for="question" class="col-md-4 control-label">My Keys</label>
81 <div class="col-md-4">
82 <select name="question" class="required form-control" id="question">
83 <option value="generate">Generate key pairs for me </option>
84 <option value="upload">Upload my public key </option>
86 <p class="hint">Genkey: Account Delegation Automatic (Recommended)</p>
89 <div class="form-group" style="display:none;" id="upload_key">
90 <label for="file" class="col-md-4 control-label">Upload public key</label>
91 <div class="col-md-4">
92 <input type="file" name="user_public_key" class="required" id="user_public_key"/>
93 <p class="hint">Account Delegation: Manual (Advanced Users)</p>
94 <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>
97 <div class="form-group" id="register">
98 <div class="col-md-offset-4 col-md-4">
99 <button class="submit btn btn-default" type="submit">Register</button>