display real request info for number, description

This commit is contained in:
dandds 2018-09-06 12:08:49 -04:00
parent a6bd27d880
commit 8741e8ee41
2 changed files with 11 additions and 4 deletions

View File

@ -27,7 +27,8 @@ def approval(request_id):
return render_template( return render_template(
"requests/approval.html", "requests/approval.html",
data=data, data=data,
request_id=request.id, request_id=request_id,
status=request.status.value,
financial_review=True, financial_review=True,
pdf_available=request.task_order and request.task_order.pdf, pdf_available=request.task_order and request.task_order.pdf,
) )

View File

@ -10,13 +10,19 @@
<form> <form>
<section class='panel'> <section class='panel'>
<header class='panel__heading request-approval__heading'> <header class='panel__heading request-approval__heading'>
<h1 class='h2'>Request #1234567890</h1> <h1 class='h2'>Request #{{ request_id }}</h1>
<span class='label label--info'>Pending</span> <span class='label label--info'>{{ status }}</span>
</header> </header>
<div class='panel__content'> <div class='panel__content'>
<p>Ongoing maintainence for Death Star (a moon-sized Imperial military battlestation armed with a planet-destroying superlaser). Its definitely hasn't been sabotaged from the start.</p> <p>
{% if data["details_of_use"] and data["details_of_use"]["jedi_usage"] %}
{{ data["details_of_use"]["jedi_usage"] }}
{% else %}
<i>Missing usage information</i>
{% endif %}
</p>
{% with data=data, request_id=request_id %} {% with data=data, request_id=request_id %}
{% include "requests/_review.html" %} {% include "requests/_review.html" %}