Skip to content
Snippets Groups Projects
Unverified Commit 59b36f25 authored by Sandeep Chauhan's avatar Sandeep Chauhan Committed by GitHub
Browse files

Fix proposal_form field disable or wrong proposal_form issue (#3570)

Fixes Determination form wrong proposal form issues
parent 425d5eeb
No related branches found
No related tags found
2 merge requests!19Merge 4.6.1 into lfc-main,!18Fix application form submit button remaining disabled (#3483)
......@@ -412,7 +412,6 @@ class DeterminationCreateOrUpdateView(BaseStreamForm, CreateOrUpdateView):
choices=proposal_form_choices,
help_text=proposal_form_help_text,
required=True if action == "invited_to_proposal" else False,
disabled=False if action == "invited_to_proposal" else True,
)
fields.move_to_end("proposal_form", last=False)
return fields
......
......@@ -67,4 +67,7 @@
document.querySelectorAll(DeterminationCopy.selector()).forEach((el) => {
new DeterminationCopy(el);
});
window.addEventListener("load", function (event) {
document.querySelector("#id_proposal_form").disabled = true;
});
})();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment