PostText/templates/moderator/create.html.ep

31 lines
1.1 KiB
Plaintext

% layout 'default';
% title 'Create Moderator';
<h2 class="page-title"><%= title %></h2>
<form method="post" class="form-body">
<div class="form-field">
<% if (my $error = validation->error('name')) { =%>
<p class="field-with-error">Must be between <%= $error->[2] %>
and <%= $error->[3] %> characters.</p>
<% } =%>
<%= label_for name => 'Name' %>
<%= text_field name => (id => 'name') %>
</div>
<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>
<% } =%>
<%= label_for email => 'Email' %>
<%= email_field email => (id => 'email') %>
</div>
<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>
<% } =%>
<%= label_for password => 'Password' %>
<%= password_field password => (id => 'password') %>
</div>
<button type="submit" class="form-button">Create</button>
</form>