display financial verification review info for ccpo

This commit is contained in:
dandds
2018-09-05 17:17:30 -04:00
parent 50c8766a7a
commit e8aa905a99
7 changed files with 90 additions and 16 deletions

View File

@@ -1,11 +1,22 @@
from flask import render_template, g
from . import requests_bp
from atst.forms.data import SERVICE_BRANCHES
from atst.domain.requests import Requests
def task_order_dictionary(task_order):
return {
c.name: getattr(task_order, c.name)
for c in task_order.__table__.columns
if c.name not in ["id", "attachment_id"]
}
@requests_bp.route("/requests/approval/<string:request_id>", methods=["GET"])
def approval(request_id):
request = Requests.get(g.current_user, request_id)
return render_template("requests/approval.html", data=request.body, service_branches=SERVICE_BRANCHES)
data = request.body
if request.task_order:
data["task_order"] = task_order_dictionary(request.task_order)
return render_template("requests/approval.html", data=data, financial_review=True)

View File

@@ -9,6 +9,7 @@ from atst.forms.data import (
ASSISTANCE_ORG_TYPES,
DATA_TRANSFER_AMOUNTS,
COMPLETION_DATE_RANGES,
FUNDING_TYPES,
)
@@ -19,6 +20,7 @@ def option_data():
"assistance_org_types": ASSISTANCE_ORG_TYPES,
"data_transfer_amounts": DATA_TRANSFER_AMOUNTS,
"completion_date_ranges": COMPLETION_DATE_RANGES,
"funding_types": FUNDING_TYPES,
}