mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Add stubbed job_id
So that we can get a better sense of what the URLs look like. Leaving unsigned for now because we don’t know if the ID will be a string or int or…
This commit is contained in:
@@ -52,9 +52,9 @@ def showjobs(service_id):
|
||||
)
|
||||
|
||||
|
||||
@main.route("/<int:service_id>/jobs/job")
|
||||
@main.route("/<int:service_id>/jobs/<job_id>")
|
||||
@login_required
|
||||
def showjob(service_id):
|
||||
def showjob(service_id, job_id):
|
||||
return render_template(
|
||||
'views/job.html',
|
||||
messages=messages,
|
||||
@@ -76,9 +76,9 @@ def showjob(service_id):
|
||||
)
|
||||
|
||||
|
||||
@main.route("/<int:service_id>/jobs/job/notification/<string:notification_id>")
|
||||
@main.route("/<int:service_id>/jobs/<job_id>/notification/<string:notification_id>")
|
||||
@login_required
|
||||
def shownotification(service_id, notification_id):
|
||||
def shownotification(service_id, job_id, notification_id):
|
||||
return render_template(
|
||||
'views/notification.html',
|
||||
message=[
|
||||
@@ -86,5 +86,6 @@ def shownotification(service_id, notification_id):
|
||||
][0],
|
||||
delivered_at=now,
|
||||
uploaded_at=now,
|
||||
service_id=service_id
|
||||
service_id=service_id,
|
||||
job_id=job_id
|
||||
)
|
||||
|
||||
@@ -83,7 +83,7 @@ def checksms(service_id):
|
||||
service_id=service_id
|
||||
)
|
||||
elif request.method == 'POST':
|
||||
return redirect(url_for('.showjob', service_id=service_id))
|
||||
return redirect(url_for('.showjob', service_id=service_id, job_id=456))
|
||||
|
||||
|
||||
def _build_upload_result(csv_file):
|
||||
|
||||
Reference in New Issue
Block a user