-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewcall.jinja
42 lines (40 loc) · 1.3 KB
/
newcall.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% extends "base.jinja" %}
{% block content %}
{% if admin %}
<form action='/action/makecall' method='get'>
<table border='1'>
<tr>
<td>Name</td>
<td>Phone Number</td>
<td>Send SMS?</td>
<td>Send Voice message?</td>
</tr>
{% for user in user_list %}
<tr>
<td>{{ user['fullname'] }}</td>
<td>{{ user['phone_number'] }}</td>
<td><input type='checkbox' name='text' value='{{ user['fullname'] }}' {{ user['can_text'] }}/></td>
<td><input type='checkbox' name='call' value='{{ user['fullname'] }}' /></td>
</tr>
{% endfor %}
<tr>
<td>All PAB</td>
<td>(Will only text if they can receive texts)</td>
<td><input type='checkbox' name='PAB_text' /></td>
<td><input type='checkbox' name='PAB_call' /></td>
</tr>
<tr>
<td>All Volunteers</td>
<td>(Will only text if they can receive texts)</td>
<td><input type='checkbox' name='ALL_text' /></td>
<td><input type='checkbox' name='ALL_call' /></td>
</tr>
</table>
<p>Text to send as sms (max 140 chars): <input type='text' name='smstext' size=140 maxlength=140 /><br />
Your phone: <input type='text' name='your_phone' />
</p>
<input type='submit' value='submit' />
</form>
{% endif %}
{% endblock %}
{% block title %}New Call{% endblock %}