2017-04-08 17:25:34 +00:00
|
|
|
% layout 'default';
|
|
|
|
% title 'Register';
|
|
|
|
% content_for css => begin
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background: whitesmoke;
|
|
|
|
padding-top: 70px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel {
|
|
|
|
background: white;
|
|
|
|
padding: 16px;
|
|
|
|
-webkit-box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.2);
|
|
|
|
-moz-box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.2);
|
|
|
|
box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.2);
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
% end
|
|
|
|
% content_for javascript => begin
|
|
|
|
% end
|
|
|
|
<div class="container">
|
2017-04-09 13:17:12 +00:00
|
|
|
% if ( defined $error ) {
|
2017-04-08 17:25:34 +00:00
|
|
|
<div class="alert alert-danger" role="alert">
|
2017-04-09 13:17:12 +00:00
|
|
|
<strong>Error!</strong><br>
|
|
|
|
% for my $error_single ( @$error ) {
|
|
|
|
<%= $error_single %><br>
|
|
|
|
% }
|
2017-04-08 17:25:34 +00:00
|
|
|
</div>
|
|
|
|
% }
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-8">
|
|
|
|
|
|
|
|
<div class="register-form panel">
|
|
|
|
<form action="<%= url_for %>" method="post">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="register-token">Invitation Token</label>
|
2017-04-09 13:17:12 +00:00
|
|
|
<input type="text"
|
|
|
|
id="register-token"
|
|
|
|
class="form-control"
|
|
|
|
name="token"
|
|
|
|
value="<%= $form_data->{token} %>"
|
|
|
|
required>
|
2017-04-08 17:25:34 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="register-name">Full Name</label>
|
2017-04-09 13:17:12 +00:00
|
|
|
<input type="text"
|
|
|
|
id="register-name"
|
|
|
|
class="form-control"
|
|
|
|
name="name"
|
|
|
|
value="<%= $form_data->{name} %>"
|
|
|
|
required>
|
2017-04-08 17:25:34 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="register-email">Email Address</label>
|
2017-04-09 13:17:12 +00:00
|
|
|
<input type="email"
|
|
|
|
id="register-email"
|
|
|
|
class="form-control"
|
|
|
|
name="email"
|
|
|
|
value="<%= $form_data->{email} %>"
|
|
|
|
required>
|
2017-04-08 17:25:34 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="register-postcode">Postcode</label>
|
2017-04-09 13:17:12 +00:00
|
|
|
<input type="text"
|
|
|
|
id="register-postcode"
|
|
|
|
class="form-control"
|
|
|
|
name="postcode"
|
|
|
|
value="<%= $form_data->{postcode} %>"
|
|
|
|
required>
|
2017-04-08 17:25:34 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="register-age">Age Range</label>
|
2017-04-09 13:17:12 +00:00
|
|
|
<select id="register-age" class="form-control" name="agerange" required>
|
2017-04-08 17:25:34 +00:00
|
|
|
% for my $agerange ( @$ageranges ) {
|
2017-04-09 13:17:12 +00:00
|
|
|
<option value="<%= $agerange->{agerangeid} %>"<%= defined $form_data->{agerange} && $form_data->{agerange} eq $agerange->{agerangeid} ? ' selected' : '' %>>
|
|
|
|
<%= $agerange->{agerangestring} %>
|
|
|
|
</option>
|
2017-04-08 17:25:34 +00:00
|
|
|
% }
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="login-password">Password</label>
|
|
|
|
<input type="password" id="login-password" class="form-control" name="password" required>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="login-password">Confirm Password</label>
|
|
|
|
<input type="password" id="login-password" class="form-control" name="password2" required>
|
|
|
|
</div>
|
|
|
|
<input type="submit" class="btn btn-block btn-primary" value="Register">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- Container fluid-->
|
|
|
|
|