pyalchemybiz/pyalchemybiz/templates/derived/customer/view.mako
Jan Dittberner 7bfe4996b2 improve customer controller and templates (addresses #21)
* add footer actions to customer view template
 * add pagination to customer list
2009-03-14 20:59:05 +01:00

25 lines
709 B
Mako

<%inherit file="/base/customer.mako" />
<%def name="heading()"><h1>${_('View customer')}</h1></%def>
<table>
<tbody>
<tr>
<th>${_('First name:')}</th><td>${c.customer.person.firstname}</td>
</tr>
<tr>
<th>${_('Last name:')}</th><td>${c.customer.person.lastname}</td>
</tr>
</tbody>
</table>
<%def name="footer()">
<p>
${h.link_to(_('All Customers'), h.url_for(controller='customer', action='list', id=None))}
| ${h.link_to(_('New Customer'), h.url_for(controller='customer', action='new', id=None))}
| ${h.link_to(_('Edit Customer'), h.url_for(controller='customer', action='edit'))}
| ${h.link_to(_('Delete Customer'), h.url_for(controller='customer', action='delete'))}
</p>
${parent.footer()}
</%def>