Add letter jobs page, client and test

This commit is contained in:
Ken Tsang
2017-04-11 10:59:50 +01:00
parent 02c77da97b
commit e5a377edd8
5 changed files with 161 additions and 42 deletions

View File

@@ -17,25 +17,31 @@
<th>Service name</th>
<th>Job ID</th>
<th>Status</th>
<th colspan="2">Created at</th>
<th colspan="3">Created at</th>
</tr>
</thead>
<tbody>
{% for job in letter_jobs_list %}
<tr>
<td>{{ job.service_name }}</td>
<td>{{ job.job_id }}</td>
<td>{{ job.status }}</td>
<td>{{ job.created_at }}</td>
<td><input name="send_letter" value='{{ job.job_id }}' type="checkbox"{% if job.send %} checked{% endif %}></td>
<td>{{ job.service_name.name }}</td>
<td>{{ job.id }}</td>
<td>{{ job.job_status }}</td>
<td>{{ job.created_at|format_datetime_short }}</td>
<td><input name="job_id" value='{{ job.id }}' type="checkbox"{% if job.send %} checked{% endif %}></td>
<td>{{ job.sending }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</p>
{{ page_footer('Send') }}
{% if message %}
<p>
<p id='message'>
{{ message }}
{% if message != 'No jobs selected' %}
<div>Refresh page to see status updates</div>
{% endif %}
</p>
{% endif %}
</form>