mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
feat: add configurable help text for relationships
Displayed at the top of relationship forms
This commit is contained in:
@@ -357,6 +357,9 @@ CONSTANCE_CONFIG = {
|
|||||||
'ORGANISATION_LIST_HELP': (
|
'ORGANISATION_LIST_HELP': (
|
||||||
'',
|
'',
|
||||||
'Help text to display at the top of the organisaton list.'),
|
'Help text to display at the top of the organisaton list.'),
|
||||||
|
'RELATIONSHIP_FORM_HELP': (
|
||||||
|
'',
|
||||||
|
'Help text to display at the top of relationship forms.'),
|
||||||
} # yapf: disable
|
} # yapf: disable
|
||||||
|
|
||||||
CONSTANCE_CONFIG_FIELDSETS = {
|
CONSTANCE_CONFIG_FIELDSETS = {
|
||||||
@@ -364,9 +367,15 @@ CONSTANCE_CONFIG_FIELDSETS = {
|
|||||||
'NOTICE_TEXT',
|
'NOTICE_TEXT',
|
||||||
'NOTICE_CLASS',
|
'NOTICE_CLASS',
|
||||||
),
|
),
|
||||||
'Data Collection': ('CONSENT_TEXT', ),
|
'Data Collection': (
|
||||||
'Help Text': ('PERSON_LIST_HELP', 'ORGANISATION_LIST_HELP'),
|
'CONSENT_TEXT',
|
||||||
}
|
),
|
||||||
|
'Help Text': (
|
||||||
|
'PERSON_LIST_HELP',
|
||||||
|
'ORGANISATION_LIST_HELP',
|
||||||
|
'RELATIONSHIP_FORM_HELP',
|
||||||
|
),
|
||||||
|
} # yapf: disable
|
||||||
|
|
||||||
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
|
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,14 @@
|
|||||||
|
|
||||||
<h1>Add Relationship</h1>
|
<h1>Add Relationship</h1>
|
||||||
|
|
||||||
|
{% with config.RELATIONSHIP_FORM_HELP as help_text %}
|
||||||
|
{% if help_text %}
|
||||||
|
<div class="alert alert-info mt-3 pb-0">
|
||||||
|
{{ help_text|linebreaks }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endwith %}
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<form class="form"
|
<form class="form"
|
||||||
|
|||||||
@@ -18,6 +18,14 @@
|
|||||||
|
|
||||||
<h1>Update Relationship</h1>
|
<h1>Update Relationship</h1>
|
||||||
|
|
||||||
|
{% with config.RELATIONSHIP_FORM_HELP as help_text %}
|
||||||
|
{% if help_text %}
|
||||||
|
<div class="alert alert-info mt-3 pb-0">
|
||||||
|
{{ help_text|linebreaks }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endwith %}
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<form class="form"
|
<form class="form"
|
||||||
|
|||||||
Reference in New Issue
Block a user