refactor users views etc.
This commit is contained in:
parent
4c2319b759
commit
b3b4e40bcf
9 changed files with 192 additions and 252 deletions
|
@ -3,8 +3,8 @@
|
|||
|
||||
<%def name="crud_name()">User</%def>
|
||||
|
||||
<%def name="menu()">
|
||||
<p>${h.link_to("Back to Users", url('users.list'))}</p>
|
||||
<%def name="context_menu_items()">
|
||||
<li>${h.link_to("Back to Users", url('users.list'))}</li>
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
2
edbob/pyramid/templates/users/edit.mako
Normal file
2
edbob/pyramid/templates/users/edit.mako
Normal file
|
@ -0,0 +1,2 @@
|
|||
<%inherit file="/users/crud.mako" />
|
||||
${parent.body()}
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
<%def name="title()">Users</%def>
|
||||
|
||||
<%def name="menu()">
|
||||
<p>${h.link_to("Create a new User", url('user.new'))}</p>
|
||||
<%def name="context_menu_items()">
|
||||
<li>${h.link_to("Create a new User", url('user.new'))}</li>
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
||||
|
|
2
edbob/pyramid/templates/users/new.mako
Normal file
2
edbob/pyramid/templates/users/new.mako
Normal file
|
@ -0,0 +1,2 @@
|
|||
<%inherit file="/users/crud.mako" />
|
||||
${parent.body()}
|
Loading…
Add table
Add a link
Reference in a new issue