import SERVICE_BRANCHES data into request form templates

This commit is contained in:
Andrew Croce 2018-08-20 13:37:24 -04:00
parent 19186a37e4
commit 6ef1914d2d

View File

@ -6,6 +6,7 @@ from atst.routes.requests.jedi_request_flow import JEDIRequestFlow
from atst.models.permissions import Permissions
from atst.models.request_status_event import RequestStatus
from atst.domain.exceptions import UnauthorizedError
from atst.forms.data import SERVICE_BRANCHES
@requests_bp.route("/requests/new/<int:screen>", methods=["GET"])
@ -20,6 +21,7 @@ def requests_form_new(screen):
current=screen,
next_screen=screen + 1,
can_submit=jedi_flow.can_submit,
service_branches=SERVICE_BRANCHES,
)
@ -44,6 +46,7 @@ def requests_form_update(screen=1, request_id=None):
request_id=request_id,
jedi_request=jedi_flow.request,
can_submit=jedi_flow.can_submit,
service_branches=SERVICE_BRANCHES,
)