diff options
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 %> |