-<form class="cmxform" id="commentForm" method="post" action="" enctype="multipart/form-data" >
-{% csrf_token %}
- <fieldset>
- <div class="OneLabTitle">
- <h2>OneLab Experimenter Registration</h2>
- <h3>For First Line Support please <a href="/portal/contact" >Contact Support</a></h3>
- </div>
-
- <div class="field">
- <label for="cname">First Name</label>
- <input type="text" id="firstname" name="firstname" size="25" class="required" minlength="2" value="{{ firstname}}" />
- <p class="hint">Enter your first name</p>
- <?php echo $errfName;?>
- </div>
- <div class="field">
- <label for="lname">Last Name</label>
- <input type="text" id="lastname" name="lastname" size="25" class="required" minlength="2" value="{{ lastname }}"/>
- <p class="hint">Enter your last name</p>
- <?php echo $errlName;?>
- </div>
- <!-- DEPRECATED
- <div class="field">
- <label for="aff_list">Affiliation</label>
- <input type="text" id="aff_list" name="affiliation" size="25" class="required" value="{{ affiliation }}"/>
- <p class="hint">Enter your Institution name</p>
- <?php echo $erraffiliation;?>
- </div>
- -->
- <div class="field">
- <label for="auth_list">Authority</label>
- <select id="auth_list" name="authority_hrn" size="1" class="required">
- {% for authority in authorities %}
- <option value="{{ authority.authority_hrn }}"/>{{authority.name}} ({{authority.authority_hrn}})</option>
- {% endfor %}
- </select>
- <p class="hint">Please select an authority responsible for vetting your account</p>
- </div>
+ <div class="col-md-6">
+ <div class="form-group">
+ <label for="password" class="control-label">Authentication</label>
+ <p></p>
+ <input type="password" id="password" name="password" class="form-control" style="width:250px" minlength="4" value="{{ password }}"
+ title="Your password allows you to log in to this portal."
+ placeholder="Password" required />
+ </div>
+ <div class="form-group">
+ <input type="password" id="confirmpassword" name="confirmpassword" style="width:250px" minlength="4" class="form-control" value=""
+ placeholder="Confirm password" required />
+ </div>
+ <div class="form-group">
+ <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>
+ </div>
+ <div class="form-group" 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">
+ <div class="form-group">
+ <p></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>
+ </div>
+ </div>
+</div>
+<div class="row">
+ <div class="col-md-12">
+ <div class="form-group" id="register">
+ <p></p>
+ <input class="submit btn btn-onelab" type="submit" value="Sign up" />
+ </form>
+ </div>
+ </div>
+</div>