Blocks
hypha.apply.utils.blocks
¶
RichTextFieldBlock
¶
Bases: TextFieldBlock
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
get_searchable_content
¶
MarkdownTextFieldBlock
¶
Bases: TextFieldBlock
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
get_searchable_content
¶
CustomFormFieldsBlock
¶
Bases: StreamBlock
Source code in hypha/apply/utils/blocks.py
rich_text
class-attribute
instance-attribute
¶
rich_text = RichTextFieldBlock(group=gettext_lazy('Fields'))
markdown_text
class-attribute
instance-attribute
¶
markdown_text = MarkdownTextFieldBlock(group=gettext_lazy('Fields'))
required_block_names
instance-attribute
¶
single_block_names
instance-attribute
¶
clean
¶
Source code in hypha/apply/utils/blocks.py
add_error_to_child
¶
Source code in hypha/apply/utils/blocks.py
to_python
¶
This allows historic data to still be accessible even if a custom field type is removed from the code in the future.
Source code in hypha/apply/utils/blocks.py
SingleIncludeStatic
¶
Bases: StaticBlock
Helper block which displays additional information about the must include block and helps display the error in a noticeable way.
Source code in hypha/apply/utils/blocks.py
render_form
¶
Source code in hypha/apply/utils/blocks.py
SingleIncludeMixin
¶
Source code in hypha/apply/utils/blocks.py
SingleIncludeBlock
¶
Bases: SingleIncludeMixin
, OptionalFormFieldBlock
A block that is only allowed to be included once in the form, but is optional
Source code in hypha/apply/utils/blocks.py
MustIncludeFieldBlock
¶
Bases: SingleIncludeMixin
, FormFieldBlock
Any block inheriting from this will need to be included in the application forms This data will also be available to query on the submission object