Hello,
When creating a SQLFORM with checkboxes, they are shown without a space between the checkbox and the label.
The correct behavior would be to have a space, like it happens with the Delete checkbox on
record edit.
This is how it looks
![Checkboxes.png](https://groups.google.com/group/web2py/attach/3292b5e87d358/Checkboxes.png?part=0.1&view=1)
This is my code
...
field = Field(
opt_cat.name_en.translate(''.maketrans(*translation_table)).replace(
'__', '_').replace('__', '_').lower(),
widget=SQLFORM.widgets.checkboxes.widget,
requires=IS_EMPTY_OR(IS_IN_SET(rows_dic)),
)
if T.accepted_language == 'pt':
field.label = opt_cat.name
else:
field.label = opt_cat.name_en
factory_fields.append(field)
form = SQLFORM.factory(*factory_fields,
buttons=[BUTTON(T('Submit'), _type='submit', _class='btn btn-primary')],
)
If even tried replacing
opt_cat.name_en.translate(''.maketrans(*translation_table)).replace(
'__', '_').replace('__', '_').lower(),
with a simple string, but with the same result.
Windows 7 Pro x64 SP1+all updates
web2py 2.18.4
Firefox 65.0.2 x64
Python 3.71. x86
Thanks,
JM