1 {% extends "layout.html" %}
6 <h1><img src="{{ STATIC_URL }}icons/user-xs.png" alt="User Registration" />User sign-up</h1>
10 <p><strong>Questions? <a href="/portal/contact" >Contact us.</a></strong></p>
14 {% for error in errors %}
19 <div class="row"><div class="col-sm-12">
20 <form class="cmxform form-horizontal" id="registrationForm" method="post" enctype="multipart/form-data" role="form">
22 <div class="form-group">
23 <label for="authority_hrn" class="control-label">Authority</label>
25 <input id="authority_hrn" name="authority_hrn" class="form-control" style="width:530px" value="{{ authority_hrn }}" placeholder="fed4fire" required>
26 <p class="help-block">If your organization does not deploy a Fed4FIRE authority itself,<br> you can use the default one called "fed4fire".</p>
30 <div class="col-md-4">
32 <div class="form-group">
33 <label for="firstname" class="control-label">Personal information</label>
35 <input type="text" name="firstname" class="form-control" style="width:200px" minlength="2" value="{{ first_name }}" placeholder="First name" required />
37 <div class="form-group">
38 <input type="text" name="lastname" size="25" class="form-control" style="width:200px" minlength="2" value="{{ last_name }}" placeholder="Last name" required />
40 <div class="form-group">
41 <input type="email" name="email" size="25" class="form-control" style="width:200px" value="{{ email }}"
42 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."
43 placeholder="Email" required/>
48 TODO: Login should be suggested from user email or first/last name, and
49 checked for existence. In addition, the full HRN should be shown to the
51 <div class="form-group">
52 <label for="login" class="col-xs-2 control-label">Login</label>
53 <div class="col-xs-4">
54 <input type="text" name="login" size="25" class="form-control" minlength="2" value="{{ login }}" placeholder="Login" required />
56 <div class="col-xs-6"><p class="form-hint">Enter your login</p></div>
59 <div class="col-md-4">
60 <div class="form-group">
61 <label for="password" class="control-label">Authentication</label>
63 <input type="password" id="password" name="password" class="form-control" style="width:200px" minlength="4" value="{{ password }}"
64 title="Your password allows you to log in to this portal."
65 placeholder="Password" required/>
67 <div class="form-group">
68 <input type="password" id="confirmpassword" name="confirmpassword" style="width:200px" minlength="4" class="form-control" value=""
69 placeholder="Confirm password" required/>
71 <div class="form-group">
72 <!--<label for="question" class="control-label">Keys</label> -->
73 <select name="question" class="form-control" style="width:200px" id="key-policy"
74 title="Your public/private key pair allows you to access the testbeds." required>
75 <option value="generate">Generate my keys for me (recommended)</option>
76 <option value="upload">Upload my public key (advanced users only)</option>
79 <div class="form-group" style="display:none;" id="upload_key">
80 <label for="file" class="control-label">Upload public key</label>
81 <input type="file" name="user_public_key" class="form-control" style="width:200px" id="user_public_key" required/>
83 <div class="alert alert-danger" id="pkey_del_msg">
84 In order for the portal to contact testbeds on your behalf, so as to list and reserve resources, you will need to
85 <a href="http://trac.myslice.info/wiki/InstallSfa" target="_blank">delegate your public key to the portal.</a>
91 <div class="form-group">
93 <input type="checkbox" name="agreement" value="agreement" required/> I agree to the
94 <button class="btn btn-default btn-xs" data-toggle="modal" data-target="#myModal">terms and conditions.</button>
96 <!-- Modal - columns selector -->
97 <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
98 <div class="modal-dialog">
99 <div class="modal-content">
100 <div class="modal-header">
101 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
102 <h4 class="modal-title" id="myModalLabel">Terms & Conditions</h4>
104 <div class="modal-body">
105 <p>The exact terms and conditions for Fed4FIRE are currently under development.</p>
107 <div class="modal-footer">
108 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
114 <div class="form-group" id="register">
116 <button class="submit btn btn-primary" type="submit">Sign up</button>
121 jQuery(document).ready(function(){
122 var availableTags = [
124 {% for authority in authorities %}
125 {% if authority.name %}
126 {value:"{{ authority.authority_hrn }}",label:"{{authority.name}}"},
128 {value:"{{ authority.authority_hrn }}",label:"{{authority.authority_hrn}}"},
132 {value:"",label:"No authority found !!!"}
135 jQuery( "#authority_hrn" ).autocomplete({
136 source: availableTags,
138 change: function (event, ui) {
140 //http://api.jqueryui.com/autocomplete/#event-change -
141 // The item selected from the menu, if any. Otherwise the property is null
142 //so clear the item for force selection
143 jQuery("#authority_hrn").val("");
146 //select: function( event, ui ) {console.log(jQuery(this))}