add category views

This commit is contained in:
Lance Edgar 2012-05-02 09:47:37 -07:00
parent 6bf3fd5886
commit 69247133f7
5 changed files with 207 additions and 0 deletions

View file

@ -0,0 +1,2 @@
<%inherit file="/base.mako" />
${parent.body()}

View file

@ -0,0 +1,10 @@
<%inherit file="/categories/base.mako" />
<%inherit file="/crud.mako" />
<%def name="crud_name()">Category</%def>
<%def name="menu()">
<p>${h.link_to("Back to Categories", url('categories.list'))}</p>
</%def>
${parent.body()}

View file

@ -0,0 +1,12 @@
<%inherit file="/categories/base.mako" />
<%inherit file="/index.mako" />
<%def name="title()">Categories</%def>
<%def name="menu()">
% if request.has_perm('categories.create'):
<p>${h.link_to("Create a new Category", url('category.new'))}</p>
% endif
</%def>
${parent.body()}