Blocks
hypha.apply.projects.blocks
¶
ProjectFormCustomFormFieldsBlock
¶
Bases: CustomFormFieldsBlock
, FormFieldsBlock
A block that can be used for customizable Project-related forms: PAF, SOW, and Report.
Source code in hypha/apply/utils/blocks.py
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'))
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.