Actually probably just comment out the line:
fs3=form[0][-1] # submit row (last)
and that I think will put the submit outside the fieldset.
On Fri, Jun 28, 2013 at 2:50 AM, António Ramos wrote:
> I dont understand how that gets the submit button out of the last fieldset
>
>
> 2013/6/28 T
I dont understand how that gets the submit button out of the last fieldset
2013/6/28 Tom Russell
> Here's the rest of my code doing what I posted before...
>
> if form.process().accepted:
> id = db.patient.insert(**db.patient._filter_fields(form.vars))
> form.vars.patient=id
>
Here's the rest of my code doing what I posted before...
if form.process().accepted:
id = db.patient.insert(**db.patient._filter_fields(form.vars))
form.vars.patient=id
id =
db.emergencycontacts.insert(**db.emergencycontacts._filter_fields(form.vars))
id = db.depend
Using this suggestion , my submit button is inside the last fieldset.
How do i take it outside?
2013/6/26 Tom Russell
> To group inside a field I do something like this with 3 different tables:
>
> form=SQLFORM.factory(db.patient, db.emergencycontacts, db.dependents)
> fs0=form[0][:26]
Another solution can be:
{{extend 'layout.html'}}
Education CV {{=education_form}}
Student {{=student_form}}
School {{=school_form}}
On Wed, Jun 26, 2013 at 12:47 PM, Tom Russell wrote:
> Saved mine too, got it originally from
> http://www.web2pyslices.com/slice/show/1457/adding-fieldset-a
Saved mine too, got it originally from
http://www.web2pyslices.com/slice/show/1457/adding-fieldset-and-legend-to-forms
On Wed, Jun 26, 2013 at 12:39 PM, António Ramos wrote:
> That is a very clever solution.
> Saved my day.
>
> Thank you
>
>
>
>
> 2013/6/26 Tom Russell
>
>> form[0]=TABLE(
>>
That is a very clever solution.
Saved my day.
Thank you
2013/6/26 Tom Russell
> form[0]=TABLE(
> FIELDSET(TAG.legend("Patient Info"),TABLE(fs0),_id="register0"),
> FIELDSET(TAG.legend("Emergency Contact
> Info"),TABLE(fs1),_id="register1"),
> FIELDSET(TAG.legend("Dependents"),TAB
To group inside a field I do something like this with 3 different tables:
form=SQLFORM.factory(db.patient, db.emergencycontacts, db.dependents)
fs0=form[0][:26] #patient rows
fs1=form[0][26:37] #emergency contacts
fs2=form[0][37:41] #dependents
fs3=form[0][-1] # submi
8 matches
Mail list logo