summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-04-26 17:10:50 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-04-26 17:10:50 +0200
commit8ba2c0def848f72c6c817fdeb0cc220d3da0d8ee (patch)
tree8830253f0d1969ae3f4a268b8b295220e2943f3a /templates
parentef2fed182ff854786381be71c603ee2fea290e08 (diff)
downloadaCms-8ba2c0def848f72c6c817fdeb0cc220d3da0d8ee.tar.gz
aCms-8ba2c0def848f72c6c817fdeb0cc220d3da0d8ee.tar.bz2
working on register user
Diffstat (limited to 'templates')
-rw-r--r--templates/intro.tmpl3
-rw-r--r--templates/login.tmpl2
-rw-r--r--templates/register.tmpl22
3 files changed, 25 insertions, 2 deletions
diff --git a/templates/intro.tmpl b/templates/intro.tmpl
index 205f952..3e524c2 100644
--- a/templates/intro.tmpl
+++ b/templates/intro.tmpl
@@ -17,6 +17,9 @@
<% else %>
If you want to edit pages, please log in
<a href="<%= login_link %>">here</a>.
+ <br/>
+ If you don't have an account yet, you can register for
+ a new one <a href="<%= register_link %>">here</a>.
<% end %>
</div>
<% end template %>
diff --git a/templates/login.tmpl b/templates/login.tmpl
index 2e58888..f89cf93 100644
--- a/templates/login.tmpl
+++ b/templates/login.tmpl
@@ -13,8 +13,6 @@
<% form as_table login %>
</table>
</form>
- <br/>
- <img src="data:image/gif;base64,<%= captcha_base64 %>"/>
</div>
<% end template %>
diff --git a/templates/register.tmpl b/templates/register.tmpl
new file mode 100644
index 0000000..e95fc69
--- /dev/null
+++ b/templates/register.tmpl
@@ -0,0 +1,22 @@
+<% c++ #include "user_content.hpp" %>
+<% skin view %>
+<% view register_user uses content::user extends master %>
+
+<% template title() %>
+ <% include master::title() %> :: Register new user
+<% end %>
+
+<% template page_content() %>
+ <div>
+ <form method="post" action=""><% csrf %>
+ <table>
+ <% form as_table register_user %>
+ </table>
+ </form>
+ <br/>
+ <img src="data:image/gif;base64,<%= captcha_base64 %>"/>
+ </div>
+<% end template %>
+
+<% end view %>
+<% end skin %>