rdfframework.forms.widgets package¶
Submodules¶
rdfframework.forms.widgets.formwidgets module¶
-
class
rdfframework.forms.widgets.formwidgets.
BsGridTableWidget
(with_section_tag=False)[source]¶ Bases:
object
Renders a list of fields as a bootstrap formated table.
If with_row_tag is True, then an enclosing <row> is placed around the rows.
Hidden fields will not be displayed with a row, instead the field will be pushed into a subsequent table row to ensure XHTML validity. Hidden fields at the end of the field list will appear outside the table.
-
class
rdfframework.forms.widgets.formwidgets.
ButtonActionWidget
[source]¶ Bases:
object
This widget will place a button on the page that will call a function as passed in
-
class
rdfframework.forms.widgets.formwidgets.
RepeatingSubFormTableJinga2Widget
(html_tag='div', prefix_label=True)[source]¶ Bases:
object
Renders a list of fields as a row list.
This is used for fields which encapsulate many inner fields as subfields. The widget will try to iterate the field to get access to the subfields and call them to render them.
If prefix_label is set, the subfield’s label is printed before the field, otherwise afterwards. The latter is useful for iterating radios or checkboxes.
-
class
rdfframework.forms.widgets.formwidgets.
RepeatingSubFormWidget
(html_tag='div', prefix_label=True)[source]¶ Bases:
object
Renders a list of fields as a row list.
This is used for fields which encapsulate many inner fields as subfields. The widget will try to iterate the field to get access to the subfields and call them to render them.
If prefix_label is set, the subfield’s label is printed before the field, otherwise afterwards. The latter is useful for iterating radios or checkboxes.