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'; |
% layout 'standard', title => 'Forgot Password', sb_active => 'forgot'; |
||||||
|
|
||||||
|
|
||||||
<h2 class="mt-5 display-6 mb-4">Reset Password</h2> |
<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> |
<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} ) { |
%= include '_base/status_window'; |
||||||
<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> |
|
||||||
% } |
|
||||||
|
|
||||||
<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', |
<%= include '_base/form/input', type => 'email', name => 'email', |
||||||
title => 'Email Address', |
title => 'Email Address', |
||||||
help => '', |
help => '', |
||||||
value => $c->stash->{form_email} |
value => $c->stash->{form_email} |
||||||
%> |
%> |
||||||
|
|
||||||
<button type="submit" class="btn btn-primary float-end">Reset Password</button> |
<button type="submit" class="btn btn-primary float-end">Reset Password</button> |
||||||
</form> |
</form> |
||||||
|
|
||||||
|
|||||||
@ -1,45 +1,35 @@ |
|||||||
% layout 'standard', title => 'Register', sb_active => 'register'; |
% layout 'standard', title => 'Register', sb_active => 'register'; |
||||||
|
|
||||||
|
|
||||||
<h2 class="mt-5 display-6 mb-4">Create an account</h2> |
<h2 class="mt-5 display-6 mb-4">Create an account</h2> |
||||||
|
|
||||||
% if ( $c->stash->{errors} ) { |
%= include '_base/status_window'; |
||||||
<div style="margin-top: 2em" class="alert alert-danger" role="alert"> |
|
||||||
There were errors with your request that could not be resolved: |
<form autocomplete="off" style="margin-top: 1.5em" method="POST" action="<%= $c->url_for( 'do_register' ) %>"> |
||||||
<ul> |
|
||||||
% for my $error ( @{$c->stash->{errors}} ) { |
<%= include '_base/form/input', type => 'text', name => 'name', |
||||||
<li><%= $error %></li> |
title => 'Your name', |
||||||
% } |
help => '', |
||||||
</ul> |
value => $c->stash->{form_name} |
||||||
</div> |
%> |
||||||
% } |
|
||||||
|
<%= include '_base/form/input', type => 'email', name => 'email', |
||||||
<form autocomplete="off" style="margin-top: 1.5em" method="POST" action="<%= $c->url_for( 'do_register' ) %>"> |
title => 'Email Address', |
||||||
|
help => '', |
||||||
<%= include '_base/form/input', type => 'text', name => 'name', |
value => $c->stash->{form_email} |
||||||
title => 'Your name', |
%> |
||||||
help => '', |
|
||||||
value => $c->stash->{form_name} |
<%= include '_base/form/input', type => 'password', name => 'password', |
||||||
%> |
title => 'Password', |
||||||
|
help => '', |
||||||
<%= include '_base/form/input', type => 'email', name => 'email', |
value => $c->stash->{form_password} |
||||||
title => 'Email Address', |
%> |
||||||
help => '', |
|
||||||
value => $c->stash->{form_email} |
<%= include '_base/form/input', type => 'password', name => 'password_confirm', |
||||||
%> |
title => 'Confirm Password', |
||||||
|
help => '', |
||||||
<%= include '_base/form/input', type => 'password', name => 'password', |
value => $c->stash->{form_password_confirm} |
||||||
title => 'Password', |
%> |
||||||
help => '', |
|
||||||
value => $c->stash->{form_password} |
<button type="submit" class="btn btn-primary float-end">Create Account</button> |
||||||
%> |
</form> |
||||||
|
|
||||||
<%= 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