website/templates/register/registerPage.html.ep

60 lines
1.9 KiB
Plaintext

% layout 'default';
% title 'UNIX.dog Registration';
<h1>Register</h1>
<% if (my $err = stash 'err') { %>
<p class="error">
<%= $err %>
</p>
<% if (my $failed = stash 'failed' and my $v = stash 'v') { %>
<ul class="error">
<% foreach my $fn (@{$failed}) { %>
<% my ($check, $result, @args) = @{$v->error($fn)}; %>
<li><%= $fn %>: <%= $check %> <%= join "-", @args %></li>
<% } %>
</ul>
<% } %>
<% } %>
<p>
Before registering for UNIX.dog, please be sure you agree
with <a href="/rules">our rules.</a> Once you've read them,
you can register! Please keep in mind that accounts will be
verified by hand. An email will be sent to you from one of the
admins when your account has been verified. Please make sure
that you check your spam folder.
</p>
<p>
If you have more concerns about your registration, feel free
to contact alpha at this domain.
</p>
<p>
Self-service password management and SSH key management will
be coming soon, but if you know how, you can update all your
information over LDAP under cn=username,ou=Dogs,dc=unix,dc=dog.
</p>
%= form_for register => (method => 'POST') => begin
<p>
%= label_for username => 'Username:'
%= text_field 'username', id=>'username'
</p>
<p>
%= label_for password => 'Password:'
%= password_field 'password', id=>'password'
</p>
<p>
%= label_for email => 'EMail:'
%= email_field 'email', id=>'email'
</p>
<p>
%= label_for pubkey => 'Put your SSH keys here. Separate them by a newline if you have multiple.'
<br>
%= text_area 'pubkey', id=>'pubkey'
</p>
<p>
%= label_for bio => 'Tell us a bit about yourself here. Feel free to put some links, too :)'
<br>
%= text_area 'bio', id=>'bio'
</p>
%= submit_button
% end