Those buttons come from {{=response.toolbar()}} in the view. In the welcome 
app, the toolbar is only included in the generic.html view, and in that 
case, only for local requests. If you are seeing the toolbar, either you 
added it yourself to your layout or the specific view in question, or your 
specific view is not actually getting executed (perhaps it has the wrong 
name or location) and instead the generic.html view is being executed 
(which by default will only work for local requests).

Anthony

On Tuesday, June 30, 2015 at 3:30:28 AM UTC-4, 
[email protected] wrote:
>
> 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)
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to