Blocks
hypha.apply.review.blocks
¶
ScoreFieldBlock
¶
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
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
get_searchable_content
¶
no_response
¶
get_field_kwargs
¶
render
¶
Source code in hypha/apply/review/blocks.py
ScoreFieldWithoutTextBlock
¶
Bases: OptionalFormFieldBlock
There are two ways score could be accepted on reviews.
One is to use ScoreFieldBlock, where you need to put text answer along with giving score on the review.
Second is to use this block to just select a reasonable score with adding any text as answer.
This block modifies RATE_CHOICES to have empty string('') in place of NA
for text value n/a - choose not to answer
as it helps to render this value
as default to the forms and also when this field is
required it automatically handles validation on empty string.
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
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
get_searchable_content
¶
no_response
¶
get_field_kwargs
¶
render
¶
get_choices
¶
Replace 'NA' option with an empty string choice.
ReviewMustIncludeFieldBlock
¶
Bases: MustIncludeFieldBlock
Source code in hypha/apply/utils/blocks.py
RecommendationBlock
¶
Bases: ReviewMustIncludeFieldBlock
Source code in hypha/apply/utils/blocks.py
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
¶
decode
¶
serialize
¶
serialize_no_response
¶
prepare_data
¶
get_searchable_content
¶
no_response
¶
get_field_kwargs
¶
RecommendationCommentsBlock
¶
Bases: ReviewMustIncludeFieldBlock
Source code in hypha/apply/utils/blocks.py
field_label
class-attribute
instance-attribute
¶
help_text
class-attribute
instance-attribute
¶
help_link
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
¶
VisibilityBlock
¶
Bases: ReviewMustIncludeFieldBlock
Source code in hypha/apply/utils/blocks.py
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
¶
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/review/blocks.py
ReviewCustomFormFieldsBlock
¶
Bases: CustomFormFieldsBlock
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
¶
text_markup
class-attribute
instance-attribute
¶
score_without_text
class-attribute
instance-attribute
¶
score_without_text = ScoreFieldWithoutTextBlock(group=gettext_lazy('Fields'))
checkbox
class-attribute
instance-attribute
¶
checkbox = CheckboxFieldBlock(group=gettext_lazy('Fields'))
dropdown
class-attribute
instance-attribute
¶
dropdown = DropdownFieldBlock(group=gettext_lazy('Fields'))
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.