Yes. I agree. Its better to link external css.
On Tuesday, January 19, 2016 at 10:14:09 AM UTC-5, Richard wrote:
>
> Yes cache is often en headache...
>
> Note, you should avoid to put additional CSS into "framework reserved
> files". Create a new app.css for instance and paste your additional st
Yes cache is often en headache...
Note, you should avoid to put additional CSS into "framework reserved
files". Create a new app.css for instance and paste your additional stuff
there, like that you will avoid issue or file diff and update when you
update web2py.
Richard
On Tue, Jan 19, 2016 at
Works fine. My cache was giving me problem. lol. Cool. Thanks.
On Monday, January 18, 2016 at 8:09:59 PM UTC-5, Ron Chatterjee wrote:
>
> Its based on scaffolding app. But doesn't work (see attached).
>
> On Monday, January 18, 2016 at 3:08:35 PM UTC-8, Paolo Caruccio wrote:
>>
>> web2py.css is
web2py.css is not loaded for default. So, it's better to put my css rules
in web2py-bootstrap3.css file (if your application is based on web2py
scaffolding layout) or even better in a custom css files.
Il giorno lunedì 18 gennaio 2016 23:01:36 UTC+1, Ron Chatterjee ha scritto:
>
> Just a quick
Just a quick question Paolo,
Have a tested this code? Because I tried with the same table and pasted the
code in web2py.css and it didn't do anything. The concept is right but I
believe may have an implementation error. Unless I am missing something.
On Saturday, January 16, 2016 at 12:01:03 PM
Yes. This is a classic example of multi select. Another work around is
using multiselect widget.
db.define_table('mytable',
Field('name', type='list:string',requires=IS_IN_SET
(('True','False', 'Neither','True','False', 'Neither','True','False',
'Neither','True','False', 'Neithe
The issue could be simply solved by using css.
For example by adding the below code in your css file:
.web2py_checkboxeswidget.horizontal {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
.web2py_checkboxeswidget.h
I couldn't get those plug in to work. There should be a way to render the
form horizontally. I am surprised there there isnt!
On Thursday, January 14, 2016 at 3:19:28 PM UTC-5, Richard wrote:
>
> There were widget plugins also for that :
> https://github.com/scubism/sqlabs
>
> But these are r
There were widget plugins also for that : https://github.com/scubism/sqlabs
But these are really really old, and repo not have been update since 3
years...
The demo site seems not available any more...
Richard
On Thu, Jan 14, 2016 at 3:12 PM, Ron Chatterjee
wrote:
> I have it like this:
>
>
>
I have it like this:
db.define_table('mytable',
Field('name', type='list:string',requires=IS_IN_SET
(('True','False', 'Neither'), multiple=True),
widget=lambda field, value:
SQLFORM.widgets.checkboxes.widget(field, value, style='divs', label=True)))
That
Looks about style parameters of SQLFORM.widget.checkbox there is
information about that if I remember... There is also _style attribute
where you can use 'divs'. Make sure you read about both attributes they are
differents and serve differents purposes...
But with _style='divs' you should be able
It does! Thank you Richard. Do you happen to know if I want to display the
checkbox horizontally as oppose to vertically, how would I do that? I asked
cuz if I have a table with other fields and I have 10 checkboxes to say, it
will be better to present them horizontally than vertically. Regardle
multiple=True in IS_IN_SET() validator should help...
Richard
On Thu, Jan 14, 2016 at 11:57 AM, Ron Chatterjee
wrote:
> Where in the book I find this info?
>
>
> On Thursday, January 14, 2016 at 11:56:51 AM UTC-5, Ron Chatterjee wrote:
>>
>> Here is an example in picture.
>>
>>
>>
>> On Wednesd
Where in the book I find this info?
On Thursday, January 14, 2016 at 11:56:51 AM UTC-5, Ron Chatterjee wrote:
>
> Here is an example in picture.
>
>
>
> On Wednesday, January 13, 2016 at 4:23:11 PM UTC-5, Ron Chatterjee wrote:
>>
>> *Model:*
>>
>> db.define_table('mytable',
>> Fi
Here is an example in picture.
On Wednesday, January 13, 2016 at 4:23:11 PM UTC-5, Ron Chatterjee wrote:
>
> *Model:*
>
> db.define_table('mytable',
> Field('name', type='list:string',requires=IS_IN_SET
> (('True','False')),
> widget=SQLFORM.widgets.checkbo
15 matches
Mail list logo