Wagtail hooks
hypha.apply.funds.wagtail_hooks
¶
before_create_page
¶
Source code in hypha/apply/funds/wagtail_hooks.py
before_copy_round_page
¶
Source code in hypha/apply/funds/wagtail_hooks.py
register_permissions
¶
Source code in hypha/apply/funds/wagtail_hooks.py
hide_forms_menu_item
¶
Hides the "Forms" menu item from the main menu.
The "Forms" menu item is added by wagtail.contrib.forms.
Source code in hypha/apply/funds/wagtail_hooks.py
hide_pii_field_checkbox
¶
Hide the "Personal information" checkbox on form field blocks.
PII_FIELD_MARKING_ENABLED decides whether form authors are offered the
checkbox, nothing more. It is not an access control: redaction is never
gated on it, so a field that carries the mark already keeps being redacted
whatever the setting is. That is deliberate, see
docs/setup/administrators/pii-fields.md, since turning the setting off
should never expose an answer someone marked as personal.
The rule is global admin CSS, so it hides any is_pii field in the Wagtail
admin. Only the application form field blocks have one.