mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
This follows the pattern of what we’ve done with services, users and events. It gives us a better interface to the data we get back from the API than dealing with the raw JSON directly. Now is a good time to do this because we’re going to be making a bunch of changes to the jobs pages, and those changes will be easier to code and understand with a sesnsible model behind them.
24 lines
794 B
HTML
24 lines
794 B
HTML
<div class="ajax-block-container">
|
|
<p class='bottom-gutter'>
|
|
{% if job.scheduled_for %}
|
|
{% if job.processing_started %}
|
|
Sent by {{ job.created_by.name }} on {{ job.processing_started|format_datetime_short }}
|
|
{% if job.template.template_type == "letter" %}
|
|
<p id="printing-info">
|
|
{{ letter_print_day }}
|
|
</p>
|
|
{% endif %}
|
|
{% else %}
|
|
Uploaded by {{ job.created_by.name }} on {{ job.created_at|format_datetime_short }}
|
|
{% endif %}
|
|
{% else %}
|
|
Sent by {{ job.created_by.name }} on {{ job.created_at|format_datetime_short }}
|
|
{% if job.template.template_type == "letter" %}
|
|
<p id="printing-info">
|
|
{{ letter_print_day }}
|
|
</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
</p>
|
|
</div>
|