PostText/templates/moderator/login.html.ep

23 lines
840 B
Plaintext
Raw Normal View History

% layout 'default';
2022-11-19 23:55:03 -05:00
% title 'Moderator Login';
2023-05-20 13:22:29 -04:00
<h2 class="page-title"><%= title %></h2>
<form method="post" class="form-body">
<div class="form-field">
<% if (my $error = validation->error('email')) { =%>
<p class="field-with-error">Must be between <%= $error->[2] %>
and <%= $error->[3] %> characters.</p>
<% } =%>
2022-11-19 23:55:03 -05:00
<%= label_for email => 'Email' %>
2023-10-15 22:30:01 -04:00
<%= email_field email => (id => 'email', autofocus => undef) %>
2022-11-19 23:55:03 -05:00
</div>
2023-05-20 13:22:29 -04:00
<div class="form-field">
<% if (my $error = validation->error('password')) { =%>
<p class="field-with-error">Must be between <%= $error->[2] %>
and <%= $error->[3] %> characters.</p>
<% } =%>
2022-11-19 23:55:03 -05:00
<%= label_for password => 'Password' %>
<%= password_field password => (id => 'password') %>
2022-11-19 23:55:03 -05:00
</div>
2023-05-20 23:43:32 -04:00
<button type="submit" class="form-button">Login</button>
2022-11-19 23:55:03 -05:00
</form>