From 518b8271eda7c974443f4a8203ab6db8ae8e74e5 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 18 Apr 2015 17:43:27 +0200 Subject: playing with a login form --- templates/intro.tmpl | 4 ++++ templates/login.tmpl | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 templates/login.tmpl (limited to 'templates') diff --git a/templates/intro.tmpl b/templates/intro.tmpl index eb7fa49..99f5e92 100644 --- a/templates/intro.tmpl +++ b/templates/intro.tmpl @@ -10,6 +10,10 @@
Welcome to StrusCms.
+
+ If you want to edit pages, please log in + here. +
<% end template %> <% end view %> diff --git a/templates/login.tmpl b/templates/login.tmpl new file mode 100644 index 0000000..0082e49 --- /dev/null +++ b/templates/login.tmpl @@ -0,0 +1,18 @@ +<% c++ #include "user_content.hpp" %> +<% skin view %> +<% view login uses content::user extends master %> + +<% template title() %> + <% include master::title() %> :: Login +<% end %> + +<% template page_content() %> +
+
<% csrf %> + <% form as_p login %> +
+
+<% end template %> + +<% end view %> +<% end skin %> -- cgit v1.2.3-54-g00ecf