Files
bus-manager/busManager/coord/templates/admin/sms_form.html
T

36 lines
1014 B
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 %}
<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 %}