Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
Thanks. This worked: {{=form.custom.begin}} {{=form.custom.widget.message}} {{=form.custom.submit}} {{=form.custom.end}} On Wed, Mar 18, 2020 at 4:40 PM Javier Pepe wrote: > Change > > db.posts.question by db.posts.message > > El mié., 18 de mar. de 2020 a la(s) 10:24, Maurice Waka ( >

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Javier Pepe
Change db.posts.question by db.posts.message El mié., 18 de mar. de 2020 a la(s) 10:24, Maurice Waka ( mauricew...@gmail.com) escribió: > This is my code in the model.py > > db.define_table('posts', > Field('author', 'reference auth_user', > default=auth.user_id, writable=False,

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
I got something but still not working: buttons = [INPUT(_type="submit"),INPUT(_type="button",_onclick="history.go(-1);return False")] On Wed, Mar 18, 2020 at 4:24 PM Maurice Waka wrote: > This is my code in the model.py > > db.define_table('posts', > Field('author', 'reference a

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
This is my code in the model.py db.define_table('posts', Field('author', 'reference auth_user', default=auth.user_id, writable=False, readable=False), Field("message", 'string', requires=IS_NOT_EMPTY(), length=512, label=T('questions'),widget=widget(_placeholder='Ty

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
I'm getting a none value. See attached. On Wed, Mar 18, 2020 at 4:14 PM Javier Pepe wrote: > in the manual > > http://www.web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-forms > > {{=form.custom.begin}} > {{=form.custom.widget.question}}{{=form.custom.submit}} > {{=form.custom

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Javier Pepe
in the manual http://www.web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-forms {{=form.custom.begin}} {{=form.custom.widget.question}}{{=form.custom.submit}} {{=form.custom.end}} El mié., 18 de mar. de 2020 a la(s) 10:09, Maurice Waka ( mauricew...@gmail.com) escribió: > Thank

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
Thanks. I put the code in the model.py code. It works. How about float button to right? Regards On Wed, Mar 18, 2020 at 4:00 PM Javier Pepe wrote: > Hi > > You can try with this > > db.posts.question.label = ' ' > > label attr replace field name > > > > El mié., 18 de mar. de 2020 a la(s) 09:5

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Javier Pepe
Hi You can try with this db.posts.question.label = ' ' label attr replace field name El mié., 18 de mar. de 2020 a la(s) 09:51, Maurice Waka ( mauricew...@gmail.com) escribió: > Hello, > > I'm trying to customize the SQLFORM to look like textarea/inputwith > text area floating left and s

[web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
Hello, I'm trying to customize the SQLFORM to look like textarea/inputwith text area floating left and submit button to the right and not bottom. I'm using the LOAD signature. I also want to hide the filed name (labelled as Questions see attached). Currently with this code, I cant hide the

[web2py] customizing SQLFORM to insert many rows from one form

2018-04-02 Thread Mashareq M
Hi, I am creating a web app for attending employees. This is the model: db.define_table( 'employee', Field('name'), format = '%(name)s') db.define_table( 'attendance', Field('employee_id',db.employee), Field('attend','boolean'), Field('comments','text') ) This is t