Added Send SMS function to traveller contacts. The send command is commented out.
This commit is contained in:
@@ -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> </td>
|
||||
<td><input type="submit" name="send" value="Send"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user