40 lines
1.1 KiB
HTML
40 lines
1.1 KiB
HTML
{% 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 %}
|
|
{% if item.has_failed_number %}
|
|
<tr style="color:red">
|
|
{% else %}
|
|
<tr>
|
|
{% endif %}
|
|
<td>{{ item.traveller }}</td>
|
|
<td>{{ item.parent_A }}</td>
|
|
<td>{{ item.parent_B }}</td>
|
|
<td>{{ item.contact_A }}</td>
|
|
<td>{{ item.contact_B }}</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 %} |