feat: add configurable help text to list pages

Resolves #103
This commit is contained in:
James Graham
2021-03-18 17:26:59 +00:00
parent 98e9148998
commit 1de4f741b8
3 changed files with 36 additions and 13 deletions

View File

@@ -14,6 +14,14 @@
<a class="btn btn-success"
href="{% url 'people:organisation.create' %}">New Organisation</a>
{% with config.ORGANISATION_LIST_HELP as help_text %}
{% if help_text %}
<div class="alert alert-info mt-3 pb-0">
{{ help_text|linebreaks }}
</div>
{% endif %}
{% endwith %}
<table class="table table-borderless">
<tbody>
{% for country, organisations in orgs_by_country.items %}

View File

@@ -14,6 +14,14 @@
<a class="btn btn-success"
href="{% url 'people:person.create' %}">New Person</a>
{% with config.PERSON_LIST_HELP as help_text %}
{% if help_text %}
<div class="alert alert-info mt-3 pb-0">
{{ help_text|linebreaks }}
</div>
{% endif %}
{% endwith %}
<table class="table table-borderless">
<thead>
<tr>