Remove last references to any "fieldset" type things
This commit is contained in:
parent
cdaf36f346
commit
cb8db266cd
|
@ -1,21 +0,0 @@
|
||||||
## -*- coding: utf-8 -*-
|
|
||||||
<%inherit file="/form.mako" />
|
|
||||||
|
|
||||||
<%def name="title()">${"New "+form.pretty_name if form.creating else form.pretty_name+' : '+capture(self.model_title)}</%def>
|
|
||||||
|
|
||||||
<%def name="model_title()">${h.literal(unicode(form.fieldset.model))}</%def>
|
|
||||||
|
|
||||||
<%def name="head_tags()">
|
|
||||||
${parent.head_tags()}
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function() {
|
|
||||||
$('a.delete').click(function() {
|
|
||||||
if (! confirm("Do you really wish to delete this object?")) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</%def>
|
|
||||||
|
|
||||||
${parent.body()}
|
|
|
@ -51,7 +51,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
show_mode(${form.fieldset.model.mode or enum.PURCHASE_BATCH_MODE_ORDERING});
|
show_mode(${batch.mode or enum.PURCHASE_BATCH_MODE_ORDERING});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
## -*- 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()}
|
|
|
@ -604,7 +604,7 @@ class MasterView(View):
|
||||||
if self.request.method == 'POST':
|
if self.request.method == 'POST':
|
||||||
if self.validate_form(form):
|
if self.validate_form(form):
|
||||||
# let save_create_form() return alternate object if necessary
|
# let save_create_form() return alternate object if necessary
|
||||||
obj = self.save_create_form(form) or form.fieldset.model
|
obj = self.save_create_form(form)
|
||||||
self.after_create(obj)
|
self.after_create(obj)
|
||||||
self.flash_after_create(obj)
|
self.flash_after_create(obj)
|
||||||
return self.redirect_after_create(obj)
|
return self.redirect_after_create(obj)
|
||||||
|
@ -622,7 +622,7 @@ class MasterView(View):
|
||||||
if self.request.method == 'POST':
|
if self.request.method == 'POST':
|
||||||
if self.validate_mobile_form(form):
|
if self.validate_mobile_form(form):
|
||||||
# let save_create_form() return alternate object if necessary
|
# let save_create_form() return alternate object if necessary
|
||||||
obj = self.save_mobile_create_form(form) or form.fieldset.model
|
obj = self.save_mobile_create_form(form)
|
||||||
self.after_create(obj)
|
self.after_create(obj)
|
||||||
self.flash_after_create(obj)
|
self.flash_after_create(obj)
|
||||||
return self.redirect_after_create(obj, mobile=True)
|
return self.redirect_after_create(obj, mobile=True)
|
||||||
|
@ -2284,7 +2284,7 @@ class MasterView(View):
|
||||||
if self.request.method == 'POST':
|
if self.request.method == 'POST':
|
||||||
if self.validate_row_form(form):
|
if self.validate_row_form(form):
|
||||||
self.before_create_row(form)
|
self.before_create_row(form)
|
||||||
obj = self.save_create_row_form(form) or form.fieldset.model
|
obj = self.save_create_row_form(form)
|
||||||
self.after_create_row(obj)
|
self.after_create_row(obj)
|
||||||
return self.redirect_after_create_row(obj)
|
return self.redirect_after_create_row(obj)
|
||||||
return self.render_to_response('create_row', {
|
return self.render_to_response('create_row', {
|
||||||
|
@ -2329,7 +2329,7 @@ class MasterView(View):
|
||||||
if self.validate_mobile_row_form(form):
|
if self.validate_mobile_row_form(form):
|
||||||
self.before_create_row(form)
|
self.before_create_row(form)
|
||||||
# let save() return alternate object if necessary
|
# let save() return alternate object if necessary
|
||||||
obj = self.save_create_row_form(form) or form.fieldset.model
|
obj = self.save_create_row_form(form)
|
||||||
self.after_create_row(obj)
|
self.after_create_row(obj)
|
||||||
return self.redirect_after_create_row(obj, mobile=True)
|
return self.redirect_after_create_row(obj, mobile=True)
|
||||||
return self.render_to_response('create_row', {
|
return self.render_to_response('create_row', {
|
||||||
|
|
Loading…
Reference in a new issue