PageRenderTime 142ms CodeModel.GetById 70ms app.highlight 1ms RepoModel.GetById 69ms app.codeStats 0ms

/django/contrib/admin/templates/mako/admin/submit_line.html

https://code.google.com/p/mango-py/
HTML | 29 lines | 23 code | 6 blank | 0 comment | 0 complexity | c1a14930dabe213e67a7691f4bd3a675 MD5 | raw file
 1<%def name="submit_line(values)">
 2<div class="submit-row" 
 3% if is_popup:
 4style="overflow: auto;"
 5% endif
 6>
 7
 8% if values.get('show_save',False):
 9<input type="submit" value="${trans('Save')}" class="default" name="_save" ${values['onclick_attrib']}/>
10% endif
11
12% if values.get('show_delete_link',False):
13<p class="deletelink-box"><a href="delete/" class="deletelink">${trans("Delete")}</a></p>
14% endif
15
16% if values.get('show_save_as_new',False):
17<input type="submit" value="${trans('Save as new')}" name="_saveasnew" ${values['onclick_attrib']}/>
18% endif
19
20% if values.get('show_save_and_add_another',False):
21<input type="submit" value="${trans('Save and add another')}" name="_addanother" ${values['onclick_attrib']} />
22% endif
23
24% if values.get('show_save_and_continue',False):
25<input type="submit" value="${trans('Save and continue editing')}" name="_continue" ${values['onclick_attrib']}/>
26% endif
27
28</div>
29</%def>