Show scheduled jobs on page one of the uploads page

This is the same thing we do for caseworking users who don’t have the
dashboard. Since we’re going to summarise scheduled jobs on the
dashboard instead of listing them they need to be listed here instead
(which is where we’ll link to from the dashboard).

Design of this will probably evolve as we work out how to style single
letter uploads and letter jobs, but that’s OK for now because no-one
has the uploads page at the moment.
This commit is contained in:
Chris Hill-Scott
2020-02-17 14:59:59 +00:00
parent e13dba3763
commit c20ec82cd2
5 changed files with 90 additions and 4 deletions

View File

@@ -52,12 +52,19 @@ def uploads(service_id):
if uploads.prev_page:
next_page = generate_next_dict('main.uploads', service_id, uploads.current_page)
scheduled_jobs = ''
if uploads.current_page == 1:
scheduled_jobs = render_template(
'views/dashboard/_upcoming.html',
hide_heading=True,
)
return render_template(
'views/jobs/jobs.html',
jobs=uploads,
prev_page=prev_page,
next_page=next_page,
scheduled_jobs='',
scheduled_jobs=scheduled_jobs,
)