Blocks
hypha.apply.stream_forms.blocks
¶
FormFieldBlock
¶
Bases: StructBlock
help_text
class-attribute
instance-attribute
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
get_searchable_content
¶
OptionalFormFieldBlock
¶
Bases: FormFieldBlock
required
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
get_searchable_content
¶
CharFieldBlock
¶
Bases: OptionalFormFieldBlock
format
class-attribute
instance-attribute
¶
format = ChoiceBlock(choices=CHARFIELD_FORMATS, required=False, label=_('Format'))
default_value
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_field_class
¶
get_searchable_content
¶
get_slug
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
MultiInputCharFieldBlock
¶
Bases: CharFieldBlock
number_of_inputs
class-attribute
instance-attribute
¶
add_button_text
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
format
class-attribute
instance-attribute
¶
format = ChoiceBlock(choices=CHARFIELD_FORMATS, required=False, label=_('Format'))
default_value
class-attribute
instance-attribute
¶
Meta
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
get_searchable_content
¶
TextFieldBlock
¶
Bases: OptionalFormFieldBlock
default_value
class-attribute
instance-attribute
¶
word_limit
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_searchable_content
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
NumberFieldBlock
¶
Bases: OptionalFormFieldBlock
default_value
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_searchable_content
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
CheckboxFieldBlock
¶
Bases: OptionalFormFieldBlock
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_searchable_content
¶
no_response
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
RadioButtonsFieldBlock
¶
Bases: OptionalFormFieldBlock
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_field_kwargs
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
get_searchable_content
¶
GroupToggleBlock
¶
Bases: FormFieldBlock
required
class-attribute
instance-attribute
¶
choices
class-attribute
instance-attribute
¶
choices = ListBlock(CharBlock(label=_('Choice')), help_text=_('Please create only two choices for toggle. First choice will revel the group and the second hide it. Additional choices will be ignored.'))
help_text
class-attribute
instance-attribute
¶
Meta
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_slug
¶
get_field_class
¶
get_widget
¶
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
get_searchable_content
¶
GroupToggleEndBlock
¶
DropdownFieldBlock
¶
Bases: RadioButtonsFieldBlock
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_field_kwargs
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
get_searchable_content
¶
CheckboxesFieldBlock
¶
Bases: OptionalFormFieldBlock
checkboxes
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_field_kwargs
¶
prepare_data
¶
get_searchable_content
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
DatePickerInput
¶
Bases: DateInput
Source code in hypha/apply/stream_forms/blocks.py
DateFieldBlock
¶
Bases: OptionalFormFieldBlock
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_searchable_content
¶
decode
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
HTML5TimeInput
¶
Bases: TimeInput
TimeFieldBlock
¶
Bases: OptionalFormFieldBlock
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_searchable_content
¶
decode
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
DateTimePickerInput
¶
Bases: SplitDateTimeWidget
Source code in hypha/apply/stream_forms/blocks.py
widgets
instance-attribute
¶
widgets = (DatePickerInput(attrs=attrs, format=date_format), HTML5TimeInput(attrs=attrs, format=time_format))
DateTimeFieldBlock
¶
Bases: OptionalFormFieldBlock
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_searchable_content
¶
decode
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
UploadableMediaBlock
¶
Bases: OptionalFormFieldBlock
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_searchable_content
¶
prepare_data
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
ImageFieldBlock
¶
Bases: UploadableMediaBlock
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
get_searchable_content
¶
FileFieldBlock
¶
Bases: UploadableMediaBlock
This doesn't know how to save the uploaded files
You must implement this if you want to reuse it.
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
get_slug
¶
get_field_class
¶
get_widget
¶
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
get_searchable_content
¶
MultiFileFieldBlock
¶
Bases: UploadableMediaBlock
help_text
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
prepare_data
¶
no_response
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
HeadingBlock
¶
FormFieldsBlock
¶
Bases: StreamBlock
text_markup
class-attribute
instance-attribute
¶
header_markup
class-attribute
instance-attribute
¶
header_markup = HeadingBlock(group=_('Custom'), label=_('Section header'))
multi_inputs_char
class-attribute
instance-attribute
¶
multi_inputs_char = MultiInputCharFieldBlock(group=_('Fields'))
checkboxes
class-attribute
instance-attribute
¶
checkboxes = CheckboxesFieldBlock(group=_('Fields'))
group_toggle
class-attribute
instance-attribute
¶
group_toggle = GroupToggleBlock(group=_('Custom'))
group_toggle_end
class-attribute
instance-attribute
¶
group_toggle_end = GroupToggleEndBlock(group=_('Custom'))