Added Send SMS function to traveller contacts. The send command is commented out.

This commit is contained in:
John Mullins
2023-09-07 15:42:11 +10:00
parent 49dae4892b
commit 43c23498bf
5 changed files with 103 additions and 2 deletions
@@ -0,0 +1,36 @@
{% extends "admin/base_site.html" %}
{% block content %}
<table>
<tr>
<th>Traveller</th>
<th>Parent A</th>
<th>Parent B</th>
<th>Emergency A</th>
<th>Emergency B</th>
</tr>
{% for item in items %}
<tr>
<td>{{ item }}</td>
<td>{{ item.parent_A_phone }}</td>
<td>{{ item.parent_B_phone }}</td>
<td>{{ item.emergency_contact_A_phone }}</td>
<td>{{ item.emergency_contact_B_phone }}</td>
</tr>
{% endfor %}
</table>
<br>
<hr style="height:4px">
<br>
<form action="" method="post">
{% csrf_token %}
<input type="hidden" name="action" value="send_sms">
<table>
{{ form.as_table }}
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="send" value="Send"></td>
</tr>
</table>
</form>
{% endblock %}