web/views/formrenderers.py
changeset 2656 a93ae0f6c0ad
parent 2586 879912fe94e1
child 2819 b864288fd316
child 2996 866a2c135c33
child 3384 f76a38731bc1
equal deleted inserted replaced
2655:48cd71bdb5cd 2656:a93ae0f6c0ad
    11 from logilab.mtconverter import xml_escape
    11 from logilab.mtconverter import xml_escape
    12 
    12 
    13 from simplejson import dumps
    13 from simplejson import dumps
    14 
    14 
    15 from cubicweb.common import tags
    15 from cubicweb.common import tags
    16 from cubicweb.appobject import AppRsetObject
    16 from cubicweb.appobject import AppObject
    17 from cubicweb.selectors import entity_implements, yes
    17 from cubicweb.selectors import entity_implements, yes
    18 from cubicweb.web import eid_param
    18 from cubicweb.web import eid_param
    19 from cubicweb.web import formwidgets as fwdgs
    19 from cubicweb.web import formwidgets as fwdgs
    20 from cubicweb.web.widgets import checkbox
    20 from cubicweb.web.widgets import checkbox
    21 from cubicweb.web.formfields import HiddenInitialValueField
    21 from cubicweb.web.formfields import HiddenInitialValueField
    22 
    22 
    23 
    23 
    24 class FormRenderer(AppRsetObject):
    24 class FormRenderer(AppObject):
    25     """basic renderer displaying fields in a two columns table label | value
    25     """basic renderer displaying fields in a two columns table label | value
    26 
    26 
    27     +--------------+--------------+
    27     +--------------+--------------+
    28     | field1 label | field1 input |
    28     | field1 label | field1 input |
    29     +--------------+--------------+
    29     +--------------+--------------+