Add letter-jobs page, update admin menu

This commit is contained in:
Ken Tsang
2017-04-07 11:16:39 +01:00
parent 331b59eef8
commit 02c77da97b
4 changed files with 93 additions and 1 deletions

View File

@@ -0,0 +1,43 @@
{% extends "withoutnav_template.html" %}
{% from "components/page-footer.html" import page_footer %}
{% block service_page_title %}
Show letter jobs
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">Letter jobs</h1>
<form autocomplete="off" method="post">
<p>
<table>
<thead>
<tr>
<th>Service name</th>
<th>Job ID</th>
<th>Status</th>
<th colspan="2">Created at</th>
</tr>
</thead>
{% 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>
</tr>
{% endfor %}
</table>
</p>
{{ page_footer('Send') }}
{% if message %}
<p>
{{ message }}
</p>
{% endif %}
</form>
{% endblock %}