Persist checkbox value after navigating away from oversight screen
This commit is contained in:
parent
f7b7cb26e1
commit
9eca3c6acc
@ -132,7 +132,12 @@ class OversightForm(CacheableForm):
|
||||
)
|
||||
cor_dod_id = StringField(
|
||||
translate("forms.task_order.oversight_dod_id_label"),
|
||||
validators=[RequiredIf("am_cor", False), RequiredIf("cor_invite"), Length(min=10), IsNumber()],
|
||||
validators=[
|
||||
RequiredIf("am_cor", False),
|
||||
RequiredIf("cor_invite"),
|
||||
Length(min=10),
|
||||
IsNumber(),
|
||||
],
|
||||
)
|
||||
|
||||
so_first_name = StringField(
|
||||
|
@ -81,6 +81,10 @@ class ShowTaskOrderWorkflow:
|
||||
elif self._section["section"] == "oversight":
|
||||
if self.user.dod_id == self.task_order.cor_dod_id:
|
||||
self._form.am_cor.data = True
|
||||
if self.task_order.ko_dod_id:
|
||||
self._form.ko_invite.data = True
|
||||
if self.task_order.so_dod_id:
|
||||
self._form.so_invite.data = True
|
||||
|
||||
else:
|
||||
self._form = self._section[form_type]()
|
||||
|
Loading…
x
Reference in New Issue
Block a user