Skip to content

Commit 8c35b3e

Browse files
committed
Fix the send SDO reminder admin template to not rely on adminmedia which is now gone, also fix up the formatting and add a title
- Legacy-Id: 6973
1 parent 1df2a37 commit 8c35b3e

1 file changed

Lines changed: 26 additions & 30 deletions

File tree

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% extends "admin/base_site.html" %}
22

3-
{% load i18n admin_modify adminmedia %}
3+
{% load i18n admin_modify %}
44

5-
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
5+
{% block title %}Send SDO reminders{% endblock %}
66

77
{% block bodyclass %}change-form{% endblock %}
88

@@ -15,33 +15,29 @@
1515
</div>
1616
{% endif %}{% endblock %}
1717

18-
{% block content %}<div id="content-main">
19-
<div>
20-
<h1>Send a reminder to each SDO Liaison Manager</h1>
21-
{% if output %}
22-
<p>
23-
Reminder sent successfully. See the output of the command:
24-
</p>
25-
<pre>
26-
{{ output }}
27-
</pre>
28-
{% else %}
29-
{% if sdo %}
30-
<p>
31-
You can send a reminder to the {{ sdo }} SDO Liaison Manager to request an updated list of persons authorized to send liaison statements on behalf of {{ sdo }}</h1>
32-
</p>
33-
{% else %}
34-
<p>
35-
You can send a reminder to each SDO Liaison Manager to request an updated list of persons authorized to send liaison statements on behalf of his SDO</h1>
36-
</p>
37-
<p>
38-
By clicking the 'Send' button you will send a request to <b>all</b> the SDO Liaison Managers. In order to send the request to one SDO Liaison Manager go to the SDO edit page.
39-
</p>
40-
{% endif %}
41-
<form action="" method="post">{% csrf_token %}
42-
<input type="submit" name="send" value="Send" />
43-
</form>
44-
{% endif %}
45-
</div>
18+
{% block content %}
19+
<div id="content-main">
20+
<h1>Send a reminder to {% if sdo %}{{ sdo }} SDO Liaison Manager{% else %}all SDO Liaison Managers{% endif %}</h1>
21+
22+
{% if output %}
23+
<p>Reminder sent successfully. See the output of the command:</p>
24+
<pre>
25+
{{ output }}
26+
</pre>
27+
28+
{% else %}
29+
30+
{% if sdo %}
31+
<p>You can send a reminder to the {{ sdo }} SDO Liaison Manager to request an updated list of persons authorized to send liaison statements on behalf of {{ sdo }}</p>
32+
{% else %}
33+
<p>You can send a reminder to each SDO Liaison Manager to request an updated list of persons authorized to send liaison statements on behalf of the SDO.</p>
34+
35+
<p>By clicking the 'Send' button you will send a request to <b>all</b> the SDO Liaison Managers. In order to send the request to one SDO Liaison Manager go to the SDO edit page.</p>
36+
{% endif %}
37+
38+
<form action="" method="post">{% csrf_token %}
39+
<input type="submit" name="send" value="Send reminder" />
40+
</form>
41+
{% endif %}
4642
</div>
4743
{% endblock %}

0 commit comments

Comments
 (0)