parent
0f296e5e26
commit
0a5efaeefc
27 changed files with 143 additions and 559 deletions
@ -1,35 +1,19 @@ |
||||
% layout 'standard', title => 'Forgot Password', sb_active => 'forgot'; |
||||
|
||||
|
||||
<h2 class="mt-5 display-6 mb-4">Reset Password</h2> |
||||
|
||||
<p>If you have forgotten the password for your account, please enter the email address below and you will get a link to reset your password.</p> |
||||
|
||||
% if ( $c->stash->{success} ) { |
||||
<div style="margin-top: 2em" class="alert alert-success" role="alert"> |
||||
<%= $c->stash->{success_message} %> |
||||
</div> |
||||
% } |
||||
|
||||
% if ( $c->stash->{errors} ) { |
||||
<div style="margin-top: 2em" class="alert alert-danger" role="alert"> |
||||
There were errors with your request that could not be resolved: |
||||
<ul> |
||||
% for my $error ( @{$c->stash->{errors}} ) { |
||||
<li><%= $error %></li> |
||||
% } |
||||
</ul> |
||||
</div> |
||||
% } |
||||
%= include '_base/status_window'; |
||||
|
||||
<form autocomplete="off" style="margin-top: 1.5em" method="POST" action="<%= $c->url_for( 'do_forgot' ) %>"> |
||||
<form autocomplete="off" style="margin-top: 1.5em" method="POST" action="<%= $c->url_for( 'do_forgot' ) %>"> |
||||
|
||||
<%= include '_base/form/input', type => 'email', name => 'email', |
||||
title => 'Email Address', |
||||
help => '', |
||||
value => $c->stash->{form_email} |
||||
%> |
||||
<%= include '_base/form/input', type => 'email', name => 'email', |
||||
title => 'Email Address', |
||||
help => '', |
||||
value => $c->stash->{form_email} |
||||
%> |
||||
|
||||
<button type="submit" class="btn btn-primary float-end">Reset Password</button> |
||||
</form> |
||||
<button type="submit" class="btn btn-primary float-end">Reset Password</button> |
||||
</form> |
||||
|
||||
|
||||
@ -1,45 +1,35 @@ |
||||
% layout 'standard', title => 'Register', sb_active => 'register'; |
||||
|
||||
|
||||
<h2 class="mt-5 display-6 mb-4">Create an account</h2> |
||||
|
||||
% if ( $c->stash->{errors} ) { |
||||
<div style="margin-top: 2em" class="alert alert-danger" role="alert"> |
||||
There were errors with your request that could not be resolved: |
||||
<ul> |
||||
% for my $error ( @{$c->stash->{errors}} ) { |
||||
<li><%= $error %></li> |
||||
% } |
||||
</ul> |
||||
</div> |
||||
% } |
||||
|
||||
<form autocomplete="off" style="margin-top: 1.5em" method="POST" action="<%= $c->url_for( 'do_register' ) %>"> |
||||
|
||||
<%= include '_base/form/input', type => 'text', name => 'name', |
||||
title => 'Your name', |
||||
help => '', |
||||
value => $c->stash->{form_name} |
||||
%> |
||||
|
||||
<%= include '_base/form/input', type => 'email', name => 'email', |
||||
title => 'Email Address', |
||||
help => '', |
||||
value => $c->stash->{form_email} |
||||
%> |
||||
|
||||
<%= include '_base/form/input', type => 'password', name => 'password', |
||||
title => 'Password', |
||||
help => '', |
||||
value => $c->stash->{form_password} |
||||
%> |
||||
|
||||
<%= include '_base/form/input', type => 'password', name => 'password_confirm', |
||||
title => 'Confirm Password', |
||||
help => '', |
||||
value => $c->stash->{form_password_confirm} |
||||
%> |
||||
|
||||
<button type="submit" class="btn btn-primary float-end">Create Account</button> |
||||
</form> |
||||
%= include '_base/status_window'; |
||||
|
||||
<form autocomplete="off" style="margin-top: 1.5em" method="POST" action="<%= $c->url_for( 'do_register' ) %>"> |
||||
|
||||
<%= include '_base/form/input', type => 'text', name => 'name', |
||||
title => 'Your name', |
||||
help => '', |
||||
value => $c->stash->{form_name} |
||||
%> |
||||
|
||||
<%= include '_base/form/input', type => 'email', name => 'email', |
||||
title => 'Email Address', |
||||
help => '', |
||||
value => $c->stash->{form_email} |
||||
%> |
||||
|
||||
<%= include '_base/form/input', type => 'password', name => 'password', |
||||
title => 'Password', |
||||
help => '', |
||||
value => $c->stash->{form_password} |
||||
%> |
||||
|
||||
<%= include '_base/form/input', type => 'password', name => 'password_confirm', |
||||
title => 'Confirm Password', |
||||
help => '', |
||||
value => $c->stash->{form_password_confirm} |
||||
%> |
||||
|
||||
<button type="submit" class="btn btn-primary float-end">Create Account</button> |
||||
</form> |
||||
|
||||
|
||||
Loading…
Reference in new issue