diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-18 17:43:27 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-18 17:43:27 +0200 |
commit | 518b8271eda7c974443f4a8203ab6db8ae8e74e5 (patch) | |
tree | c36baead930924d400b3486e6e0527b0c91ddb5b /templates | |
parent | 84a3e2f6bcb4da4ab156e39d79f0f8a36c2a0e90 (diff) | |
download | aCms-518b8271eda7c974443f4a8203ab6db8ae8e74e5.tar.gz aCms-518b8271eda7c974443f4a8203ab6db8ae8e74e5.tar.bz2 |
playing with a login form
Diffstat (limited to 'templates')
-rw-r--r-- | templates/intro.tmpl | 4 | ||||
-rw-r--r-- | templates/login.tmpl | 18 |
2 files changed, 22 insertions, 0 deletions
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 @@ <div> Welcome to <b>StrusCms</b>. </div> + <div> + If you want to edit pages, please log in + <a href="<%= login_link %>">here</a>. + </div> <% 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() %> + <div> + <form method="post" action=""><% csrf %> + <% form as_p login %> + </form> + </div> +<% end template %> + +<% end view %> +<% end skin %> |