Replacing SimpleLogin with Controller::Auth (requires patch to ::Auth)
[scpubgit/stemmatology.git] / stemmaweb / root / src / auth / register.tt
diff --git a/stemmaweb/root/src/auth/register.tt b/stemmaweb/root/src/auth/register.tt
new file mode 100644 (file)
index 0000000..da497e6
--- /dev/null
@@ -0,0 +1,26 @@
+[% IF status_msg %]
+                       <p>[% status_msg | html %]</p>
+[% END %]
+[% IF error_msg %]
+                       <p class="error">[% error_msg | html %]</p>
+[% END %]
+
+[% IF form.has_errors %]
+                       <p class="error">Some fields had errors:</p>
+                                       
+                       <ul class="errors">
+       [% FOREACH msg IN form.errors %]
+                               <li>[% msg | html %]</li>
+       [% END %]
+                       </ul>
+[% END %]
+
+       <form method="post" action="[% c.uri_for_action('/users/register').hostless | html %]" autocomplete="off">
+
+       [% form.field('username').render %]
+       [% form.field('password').render %]
+       [% form.field('confirm_password').render %]
+
+       [% form.field('submit').render %]
+
+       </form>
\ No newline at end of file