This what I have. I want to get rid of the row of buttons at the bottom of the form that says 'design request response session db tables db stats'
View
{{extend 'layout.html'}}
<h2>Input form</h2>
{{=form}}
<h2>Submitted variables</h2>
{{=BEAUTIFY(request.vars)}}
<h2>Accepted variables</h2>
{{=BEAUTIFY(form.vars)}}
<h2>Errors in form</h2>
{{=BEAUTIFY(form.errors)}}
Controller
def display_common_params():
db3.common_parameters.id.readable=False # Since we do not want to expose the id field on the grid
form = SQLFORM(db3.common_parameters, buttons = [TAG.button('Back',_type="button",
_onClick = "parent.location='%s' " % URL('display_all_analysis_stations')),
TAG.button('Save',_type="submit")])
if form.accepts(request,session):
response.flash = 'form accepted'
elif form.errors:
response.flash = 'form has errors'
else:
response.flash = 'please fill the form'
return dict(form=form)