Blocks
hypha.apply.stream_forms.blocks
¶
CHARFIELD_FORMATS
module-attribute
¶
FormFieldBlock
¶
Bases: StructBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
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
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
class-attribute
instance-attribute
¶
required
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
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
format
class-attribute
instance-attribute
¶
format = ChoiceBlock(choices=CHARFIELD_FORMATS, required=False, label=gettext_lazy('Format'))
default_value
class-attribute
instance-attribute
¶
Meta
¶
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
no_response
¶
get_field_class
¶
MultiInputCharFieldBlock
¶
Bases: CharFieldBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
format
class-attribute
instance-attribute
¶
format = ChoiceBlock(choices=CHARFIELD_FORMATS, required=False, label=gettext_lazy('Format'))
default_value
class-attribute
instance-attribute
¶
number_of_inputs
class-attribute
instance-attribute
¶
add_button_text
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
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
default_value
class-attribute
instance-attribute
¶
word_limit
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
no_response
¶
NumberFieldBlock
¶
Bases: OptionalFormFieldBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
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
no_response
¶
CheckboxFieldBlock
¶
Bases: OptionalFormFieldBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
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
¶
RadioButtonsFieldBlock
¶
Bases: OptionalFormFieldBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
choices
class-attribute
instance-attribute
¶
Meta
¶
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
¶
no_response
¶
GroupToggleBlock
¶
Bases: FormFieldBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
choices
class-attribute
instance-attribute
¶
choices = ListBlock(CharBlock(label=gettext_lazy('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.')
Meta
¶
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
¶
no_response
¶
get_field_kwargs
¶
Source code in hypha/apply/stream_forms/blocks.py
GroupToggleEndBlock
¶
DropdownFieldBlock
¶
Bases: RadioButtonsFieldBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
choices
class-attribute
instance-attribute
¶
Meta
¶
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
¶
no_response
¶
CheckboxesFieldBlock
¶
Bases: OptionalFormFieldBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
checkboxes
class-attribute
instance-attribute
¶
Meta
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
no_response
¶
get_field_kwargs
¶
prepare_data
¶
DatePickerInput
¶
Bases: DateInput
Source code in hypha/apply/stream_forms/blocks.py
DateFieldBlock
¶
Bases: OptionalFormFieldBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
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
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
no_response
¶
get_searchable_content
¶
HTML5TimeInput
¶
Bases: TimeInput
TimeFieldBlock
¶
Bases: OptionalFormFieldBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
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
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
no_response
¶
get_searchable_content
¶
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
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
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
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
no_response
¶
get_searchable_content
¶
UploadableMediaBlock
¶
Bases: OptionalFormFieldBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
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
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
no_response
¶
get_searchable_content
¶
ImageFieldBlock
¶
Bases: UploadableMediaBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
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.
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
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
¶
no_response
¶
get_field_kwargs
¶
MultiFileFieldBlock
¶
Bases: UploadableMediaBlock
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
Meta
¶
get_slug
¶
get_field_class
¶
get_widget
¶
get_field
¶
decode
¶
serialize
¶
serialize_no_response
¶
render
¶
Source code in hypha/apply/stream_forms/blocks.py
get_searchable_content
¶
get_field_kwargs
¶
prepare_data
¶
HeadingBlock
¶
FormFieldsBlock
¶
Bases: StreamBlock
text_markup
class-attribute
instance-attribute
¶
header_markup
class-attribute
instance-attribute
¶
header_markup = HeadingBlock(group=gettext_lazy('Custom'), label=gettext_lazy('Section header'))
multi_inputs_char
class-attribute
instance-attribute
¶
multi_inputs_char = MultiInputCharFieldBlock(group=gettext_lazy('Fields'))
checkbox
class-attribute
instance-attribute
¶
checkbox = CheckboxFieldBlock(group=gettext_lazy('Fields'))
radios
class-attribute
instance-attribute
¶
radios = RadioButtonsFieldBlock(group=gettext_lazy('Fields'))
dropdown
class-attribute
instance-attribute
¶
dropdown = DropdownFieldBlock(group=gettext_lazy('Fields'))
checkboxes
class-attribute
instance-attribute
¶
checkboxes = CheckboxesFieldBlock(group=gettext_lazy('Fields'))
datetime
class-attribute
instance-attribute
¶
datetime = DateTimeFieldBlock(group=gettext_lazy('Fields'))
multi_file
class-attribute
instance-attribute
¶
multi_file = MultiFileFieldBlock(group=gettext_lazy('Fields'))
group_toggle
class-attribute
instance-attribute
¶
group_toggle = GroupToggleBlock(group=gettext_lazy('Custom'))
group_toggle_end
class-attribute
instance-attribute
¶
group_toggle_end = GroupToggleEndBlock(group=gettext_lazy('Custom'))