Merge branch 'authentication' of github.com:tla/stemmatology
[scpubgit/stemmatology.git] / stemmaweb / root / src / auth / register.tt
index ebd6771..97384be 100644 (file)
@@ -1,3 +1,7 @@
+[% PROCESS header.tt
+       pagetitle = "Stemmaweb - Register"
+       applicationstyle = c.uri_for('/css/auth.css')
+%]
 [% IF status_msg %]
                        <p>[% status_msg | html %]</p>
 [% END %]
                        </ul>
 [% END %]
 
-       <form method="post" action="[% c.uri_for_action('/users/register').hostless | html %]" autocomplete="off">
+       <form method="post" action="[% c.uri_for_action('/users/register') | html %]" autocomplete="off">
 
-       [% form.field('username').render %] (email)
+       [% userlabel = form.field('username').label('Email address') %]
+       [% form.field('username').render %]
        [% form.field('password').render %]
        [% form.field('confirm_password').render %]
 
+    [% IF recaptcha_error %]
+          <p class="error">[% recaptcha_error | html %]</p>
+    [% END %]
+    [% recaptcha %]
+
        [% form.field('submit').render %]
 
-       </form>
\ No newline at end of file
+       </form>
+[% PROCESS footer.tt %]
\ No newline at end of file