Update TO funding section

This commit is contained in:
leigh-mil
2019-01-10 08:21:45 -05:00
parent b00210a92c
commit 922ec56134
6 changed files with 104 additions and 57 deletions

View File

@@ -213,3 +213,30 @@ TEAM_EXPERIENCE = [
"Built or migrated many applications, or consulted on several such projects",
),
]
PERIOD_OF_PERFORMANCE_LENGTH = [
("1_month", "1 Month"),
("2_months", "2 Months"),
("3_months", "3 Months"),
("4_months", "4 Months"),
("5_months", "5 Months"),
("6_months", "6 Months"),
("7_months", "7 Months"),
("8_months", "8 Months"),
("9_months", "9 Months"),
("10_months", "10 Months"),
("11_months", "11 Months"),
("1_year", "1 Year"),
("1_year_1_month", "1 Year, 1 Month"),
("1_year_2_months", "1 Year, 2 Months"),
("1_year_3_months", "1 Year, 3 Months"),
("1_year_4_months", "1 Year, 4 Months"),
("1_year_5_months", "1 Year, 5 Months"),
("1_year_6_months", "1 Year, 6 Months"),
("1_year_7_months", "1 Year, 7 Months"),
("1_hyear_8_months", "1 Year, 8 Months"),
("1_year_9_months", "1 Year, 9 Months"),
("1_year_10_months", "1 Year, 10 Months"),
("1_year_11_months", "1 Year, 11 Months"),
("2_years", "2 Years"),
]

View File

@@ -6,6 +6,7 @@ from wtforms.fields import (
SelectMultipleField,
StringField,
TextAreaField,
FileField,
)
from wtforms.fields.html5 import DateField
from wtforms.widgets import ListWidget, CheckboxInput
@@ -20,6 +21,7 @@ from .data import (
PROJECT_COMPLEXITY,
DEV_TEAM,
TEAM_EXPERIENCE,
PERIOD_OF_PERFORMANCE_LENGTH,
)
from atst.utils.localization import translate
@@ -74,17 +76,29 @@ class AppInfoForm(CacheableForm):
class FundingForm(CacheableForm):
start_date = DateField("Start Date", format="%m/%d/%Y")
end_date = DateField("End Date", format="%m/%d/%Y")
clin_01 = IntegerField("CLIN 01 : Unclassified")
clin_02 = IntegerField("CLIN 02: Classified")
clin_03 = IntegerField("CLIN 03: Unclassified")
clin_04 = IntegerField("CLIN 04: Classified")
performance_length = SelectField(
translate("forms.task_order.performance_length_label"),
choices=PERIOD_OF_PERFORMANCE_LENGTH,
)
start_date = DateField(
translate("forms.task_order.start_date_label"), format="%m/%d/%Y"
)
end_date = DateField(
translate("forms.task_order.end_date_label"), format="%m/%d/%Y"
)
csp_cost_estimate = FileField(
translate("forms.task_order.csp_cost_est_label"),
description=translate("forms.task_order.csp_cost_est_description"),
)
clin_01 = IntegerField(translate("forms.task_order.clin_01_label"))
clin_02 = IntegerField(translate("forms.task_order.clin_02_label"))
clin_03 = IntegerField(translate("forms.task_order.clin_03_label"))
clin_04 = IntegerField(translate("forms.task_order.clin_04_label"))
class UnclassifiedFundingForm(FundingForm):
clin_02 = IntegerField("CLIN 02: Classified (available soon)")
clin_04 = IntegerField("CLIN 04: Classified (available soon)")
clin_02 = IntegerField(translate("forms.task_order.unclassified_clin_02_label"))
clin_04 = IntegerField(translate("forms.task_order.unclassified_clin_04_label")
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)