checkbox don't appear

61 views
Skip to first unread message

Lars

unread,
Sep 21, 2017, 6:56:16 AM9/21/17
to web2py-users
Hi,

I want to display a form with the following code :

def display_line():
    T
= current.T
   
try:
       
return TR(
            TD
(id),
            TD
(file_name),
            TD
(file_size),
            TD
(file_type),
            TD
(INPUT(_type='submit', _name=T('Rename'), _value=T('Rename'))),
            TD
(INPUT(_type='submit', _name=T('Delete'), _value=T('Delete'))),
            TD
(INPUT(_type='submit', _name=T('Details'), _value=T('Details'))),
            TD
(INPUT(_type='checkbox', _value=id))
           
)
   
except (AttributeError, KeyError):
       
return


def get_filesystem_form():
    T
= current.T
    files_html
= []

   
# get files list
    file_list
= files.load()

   
for _file in file_list:
        files_html
.append(display_line(_file))
   
return FORM(TABLE(*files_html), _width='100%')




And everything looks fine except that checkboxes don't appear.

Any idea ?

w2p : 2.15.4 python : 3.5.3


Massimo Di Pierro

unread,
Sep 30, 2017, 7:30:24 PM9/30/17
to web2py-users
No idea. Use the chrome inspector and look if it is a css issue. The html for the checkboxes should be there.
Reply all
Reply to author
Forward
0 new messages