Files
notifications-admin/app/templates/partials/jobs/count-letters.html
Chris Hill-Scott 5e7ec3e30d Make a job model for individual jobs
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.
2020-01-13 13:05:35 +00:00

24 lines
670 B
HTML

{% from 'components/big-number.html' import big_number %}
{% from 'components/message-count-label.html' import message_count_label %}
<div class="grid-row bottom-gutter-2-3">
<div class="column-half">
<div class="keyline-block">
{{ big_number(
job.notification_count,
message_count_label(job.notification_count, 'letter', suffix='')|capitalize,
smaller=True
)}}
</div>
</div>
<div class="column-half">
<div class="keyline-block">
{{ big_number(
job.letter_timings.earliest_delivery|string|format_date_short,
'Estimated delivery date',
smaller=True
)}}
</div>
</div>
</div>