- <!-- LOGIN
- TODO: Login should be suggested from user email or first/last name, and
- checked for existence. In addition, the full HRN should be shown to the
- user.
- -->
- <div class="form-group">
- <label for="login" class="col-xs-2 control-label">Login</label>
- <div class="col-xs-4">
- <input type="text" name="login" size="25" class="form-control" minlength="2" value="{{ login }}" placeholder="Login" required />
- </div>
- <div class="col-xs-6"><p class="form-hint">Enter your login</p></div>
- </div>
-
- <div class="form-group">
- <label for="email" class="col-xs-2 control-label">Email</label>
- <div class="col-xs-4">
- <input type="email" name="email" size="25" class="form-control" value="{{ email }}" required/>
- </div>
- <div class="col-xs-6"><p class="form-hint">Enter a valid email address</p></div>
- </div>
- <div class="form-group">
- <label for="password" class="col-xs-2 control-label">Password</label>
- <div class="col-xs-4">
- <input type="password" id="password" name="password" class="form-control" minlength="4" value="{{ password }}" required/>
- </div>
- <div class="col-xs-6"><p class="form-hint">Enter password</p></div>
- </div>
- <div class="form-group">
- <label for="password" class="col-xs-2 control-label">Confirm Password</label>
- <div class="col-xs-4">
- <input type="password" id="confirmpassword" name="confirmpassword" minlength="4" class="form-control"
- value="" placeholder="Confirm Password" required/>
- </div>
- <div class="col-xs-6"><p class="form-hint">Retype the password</p></div>
- </div>
- <div class="form-group">
- <label for="question" class="col-xs-2 control-label">My Keys</label>
- <div class="col-xs-4">
- <select name="question" class="form-control" id="key-policy" required>
- <option value="generate">Generate key pairs for me </option>
- <option value="upload">Upload my public key </option>
- </select>
- </div>
- <div class="col-xs-6"><p class="form-hint">Genkey: Account Delegation Automatic (Recommended)</p> </div>
- </div>
- <div class="form-group" style="display:none;" id="upload_key">
- <label for="file" class="col-xs-2 control-label">Upload public key</label>
- <div class="col-xs-4">
- <input type="file" name="user_public_key" class="form-control" id="user_public_key" required/>
- <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>
- </div>
- <div class="col-xs-6"><p class="form-hint">Account Delegation: Manual (Advanced Users)</p></div>
- </div>
- <div class="form-group" id="register">
- <button class="submit btn btn-default col-xs-12" type="submit">Register</button>
- </div>
- </div>
- </fieldset>
- </form>
+<div class="row">
+ <div class="col-md-6">
+ <p>
+ <label for="firstname" class="control-label">Personal information</label>
+ </p>
+ <p>
+ <input type="text" name="firstname" class="form-control" style="width:350px" minlength="2" value="{{ first_name }}" placeholder="First name" required />
+ </p>
+ <p>
+ <input type="text" name="lastname" size="25" class="form-control" style="width:350px" minlength="2" value="{{ last_name }}" placeholder="Last name" required />
+ </p>
+ <p>
+ <input type="email" name="email" size="25" class="form-control" style="width:350px" value="{{ email }}" title="Your e-mail address will be your identifier for logging in. We contact you to verify your account and then, occasionally, for important issues." placeholder="Email" required />
+ </p>
+ </div>
+
+ <div class="col-md-6">
+ <p>
+ <label for="password" class="control-label">Authentication</label>
+ </p>
+ <p>
+ <input type="password" id="password" name="password" class="form-control" style="width:250px" minlength="8" value="{{ password }}"
+ title="Your password allows you to log in to this portal."
+ placeholder="Password" required />
+ </p>
+ <p>
+ <input type="password" id="confirmpassword" name="confirmpassword" style="width:250px" minlength="8" class="form-control" value=""
+ placeholder="Confirm password" required />
+ </p>
+ <p>
+ <select name="question" class="form-control" style="width:350px" id="key-policy"
+ title="Your public/private key pair allows you to access the testbeds." required >
+ <option value="generate">Generate my keys for me (recommended)</option>
+ <option value="upload">Upload my public key (advanced users only)</option>
+ </select>
+ </p>
+ <div style="display:none;" id="upload_key">
+ <label for="file" class="control-label">Upload public key</label>
+ <input type="file" name="user_public_key" class="form-control" style="width:200px" id="user_public_key" />
+ <br />
+ <div class="alert alert-danger" id="pkey_del_msg">
+ In order for the portal to contact testbeds on your behalf, so as to list and reserve resources, you will need to
+ <a href="/portal/manual_delegation" target="_blank">delegate your credentials to the portal.</a>
+ </div>
+ </div>
+ </div>
+</div>
+<div class="row">
+ <div class="col-md-12">
+ <p>
+ <input type="checkbox" name="agreement" value="agreement" required /> I agree to the
+ <a href="#" data-toggle="modal" data-target="#myModal">terms and conditions.</a>
+ </p>
+ </div>
+</div>
+{% include theme|add:"_register_info.html" %}
+<div class="row">
+ <div class="col-md-12">
+ <div id="register">
+ <p>
+ <input class="submit btn btn-onelab" type="submit" value="Sign up" />
+ </p>
+ </form>
+ </div>
+ </div>