Merge pull request #615 from dod-ccpo/signature

Add in basic implementation of the KO TO signature page
This commit is contained in:
George Drummond
2019-02-12 16:35:59 -05:00
committed by GitHub
13 changed files with 398 additions and 10 deletions

View File

@@ -222,3 +222,28 @@ class OversightForm(CacheableForm):
class ReviewForm(CacheableForm):
pass
class SignatureForm(CacheableForm):
level_of_warrant = DecimalField(
translate("task_orders.sign.level_of_warrant_label"),
description=translate("task_orders.sign.level_of_warrant_description"),
validators=[
RequiredIf(
lambda form: (
form._fields.get("unlimited_level_of_warrant").data is not True
)
)
],
)
unlimited_level_of_warrant = BooleanField(
translate("task_orders.sign.unlimited_level_of_warrant_description"),
validators=[Optional()],
)
signature = BooleanField(
translate("task_orders.sign.digital_signature_label"),
description=translate("task_orders.sign.digital_signature_description"),
validators=[Required()],
)