tailbone/tailbone/templates/settings/crud.mako
Lance Edgar cc2c2573e5 Add grid, CRUD views for Setting model.
This required some tweaks to the base CRUD view etc.
2014-11-23 14:27:00 -06:00

14 lines
439 B
Mako

## -*- coding: utf-8 -*-
<%inherit file="/crud.mako" />
<%def name="context_menu_items()">
<li>${h.link_to("Back to Settings", url('settings'))}</li>
% if form.readonly:
<li>${h.link_to("Edit this Setting", url('settings.edit', name=form.fieldset.model.name))}</li>
% elif form.updating:
<li>${h.link_to("View this Setting", url('settings.view', name=form.fieldset.model.name))}</li>
% endif
</%def>
${parent.body()}