diff --git a/atst/routes/requests/requests_form.py b/atst/routes/requests/requests_form.py index e9f1957a..ba23af65 100644 --- a/atst/routes/requests/requests_form.py +++ b/atst/routes/requests/requests_form.py @@ -119,6 +119,19 @@ def requests_submit(request_id=None): return redirect("/requests?modal=pendingCCPOApproval") +@requests_bp.route("/requests/pending/", methods=["GET"]) +def view_pending_request(request_id=None): + request = Requests.get(request_id) + return render_template( + "requests/view_pending.html", + data=request.body, + service_branches=SERVICE_BRANCHES, + assistance_org_types=ASSISTANCE_ORG_TYPES, + data_transfer_amounts=DATA_TRANSFER_AMOUNTS, + completion_date_ranges=COMPLETION_DATE_RANGES, + ) + + # TODO: generalize this, along with other authorizations, into a policy-pattern # for authorization in the application def _check_can_view_request(request_id): diff --git a/templates/requests/view_pending.html b/templates/requests/view_pending.html new file mode 100644 index 00000000..9bc33d1c --- /dev/null +++ b/templates/requests/view_pending.html @@ -0,0 +1,23 @@ +{% extends "base.html" %} + +{% from "components/alert.html" import Alert %} + +{% block content %} +
+
+
+

View Pending Request

+
+ +
+ {{ Alert('Your request is being reviewed', + message="

You cannot edit your submitted request while it is under review. Your request will be reviewed within 3 business days.

", + level='warning' + ) }} + + {% include "requests/_review.html" %} + +
+
+
+{% endblock %}