refactor categories views etc.
This commit is contained in:
parent
e9c1ee8dce
commit
c2dee891fb
5 changed files with 52 additions and 142 deletions
|
@ -3,8 +3,8 @@
|
|||
|
||||
<%def name="crud_name()">Category</%def>
|
||||
|
||||
<%def name="menu()">
|
||||
<p>${h.link_to("Back to Categories", url('categories.list'))}</p>
|
||||
<%def name="context_menu_items()">
|
||||
<li>${h.link_to("Back to Categories", url('categories.list'))}</li>
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
2
rattail/pyramid/templates/categories/edit.mako
Normal file
2
rattail/pyramid/templates/categories/edit.mako
Normal file
|
@ -0,0 +1,2 @@
|
|||
<%inherit file="/categories/crud.mako" />
|
||||
${parent.body()}
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
<%def name="title()">Categories</%def>
|
||||
|
||||
<%def name="menu()">
|
||||
<%def name="context_menu_items()">
|
||||
% if request.has_perm('categories.create'):
|
||||
<p>${h.link_to("Create a new Category", url('category.new'))}</p>
|
||||
<li>${h.link_to("Create a new Category", url('category.new'))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
|
|
2
rattail/pyramid/templates/categories/new.mako
Normal file
2
rattail/pyramid/templates/categories/new.mako
Normal file
|
@ -0,0 +1,2 @@
|
|||
<%inherit file="/categories/crud.mako" />
|
||||
${parent.body()}
|
Loading…
Add table
Add a link
Reference in a new issue