add task order information source to review form

This commit is contained in:
dandds 2018-09-07 09:43:36 -04:00
parent 4ec85a11f1
commit a6c069e85a
4 changed files with 7 additions and 1 deletions

View File

@ -148,3 +148,5 @@ FUNDING_TYPES = [
("PROC", "Procurement (PROC)"),
("OTHER", "Other"),
]
TASK_ORDER_SOURCES = [("MANUAL", "Manual"), ("EDA", "EDA")]

View File

@ -8,7 +8,7 @@ from atst.models import Base
class Source(Enum):
MANUAL = "Manual"
EDA = "eda"
EDA = "EDA"
class FundingType(Enum):

View File

@ -10,6 +10,7 @@ from atst.forms.data import (
DATA_TRANSFER_AMOUNTS,
COMPLETION_DATE_RANGES,
FUNDING_TYPES,
TASK_ORDER_SOURCES,
)
@ -21,6 +22,7 @@ def option_data():
"data_transfer_amounts": DATA_TRANSFER_AMOUNTS,
"completion_date_ranges": COMPLETION_DATE_RANGES,
"funding_types": FUNDING_TYPES,
"task_order_sources": TASK_ORDER_SOURCES,
}

View File

@ -140,6 +140,8 @@
{% endif %}
<dl>
{{ DefinitionReviewField("Task Order Information Source", "task_order", "source", filter="getOptionLabel", filter_args=[task_order_sources]) }}
{{ DefinitionReviewField("Task Order Number", "task_order", "number") }}
{{ DefinitionReviewField("What is the source of funding?", "task_order", "funding_type", filter="getOptionLabel", filter_args=[funding_types]) }}