Create CLINs when creating a TO

This commit is contained in:
leigh-mil
2019-06-04 11:42:14 -04:00
parent 633e1b6a37
commit 36200e01ad
8 changed files with 161 additions and 33 deletions

View File

@@ -223,8 +223,8 @@ ENV_ROLES = [(role.value, role.value) for role in CSPRole] + [
]
JEDI_CLIN_TYPES = [
("jedi_clin_0001", translate("forms.task_order.clin_01_label")),
("jedi_clin_0002", translate("forms.task_order.clin_02_label")),
("jedi_clin_0003", translate("forms.task_order.clin_03_label")),
("jedi_clin_0004", translate("forms.task_order.clin_04_label")),
("JEDI_CLIN_1", translate("forms.task_order.clin_01_label")),
("JEDI_CLIN_2", translate("forms.task_order.clin_02_label")),
("JEDI_CLIN_3", translate("forms.task_order.clin_03_label")),
("JEDI_CLIN_4", translate("forms.task_order.clin_04_label")),
]

View File

@@ -12,7 +12,7 @@ from atst.utils.localization import translate
class CLINForm(FlaskForm):
jedi_clin_type = SelectField("Jedi CLIN type", choices=JEDI_CLIN_TYPES)
clin_number = StringField(validators=[Required()])
number = StringField(validators=[Required()])
start_date = DateField(
translate("forms.task_order.start_date_label"),
format="%m/%d/%Y",
@@ -23,7 +23,7 @@ class CLINForm(FlaskForm):
format="%m/%d/%Y",
validators=[Required()],
)
obligated_funds = DecimalField()
obligated_amount = DecimalField()
loas = FieldList(StringField())