mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-19 07:54:16 +02:00
updates
This commit is contained in:
parent
f440f1ac1c
commit
7e0cdb813c
2 changed files with 3 additions and 1 deletions
|
@ -2925,6 +2925,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
const selectParent = select?.parentElement;
|
const selectParent = select?.parentElement;
|
||||||
const suborgContainer = document.getElementById("suborganization-container");
|
const suborgContainer = document.getElementById("suborganization-container");
|
||||||
const suborgDetailsContainer = document.getElementById("suborganization-container__details");
|
const suborgDetailsContainer = document.getElementById("suborganization-container__details");
|
||||||
|
const subOrgCreateNewOption = document.getElementById("option-to-add-suborg").value
|
||||||
if (!radios || !select || !selectParent || !suborgContainer || !suborgDetailsContainer) return;
|
if (!radios || !select || !selectParent || !suborgContainer || !suborgDetailsContainer) return;
|
||||||
|
|
||||||
// requestingSuborganization: This just broadly determines if they're requesting a suborg at all
|
// requestingSuborganization: This just broadly determines if they're requesting a suborg at all
|
||||||
|
@ -2949,7 +2950,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
|
||||||
// Add fake "other" option to sub_organization select
|
// Add fake "other" option to sub_organization select
|
||||||
if (select && !Array.from(select.options).some(option => option.value === "other")) {
|
if (select && !Array.from(select.options).some(option => option.value === "other")) {
|
||||||
select.add(new Option("Other (enter your suborganization manually)", "other"));
|
select.add(new Option(subOrgCreateNewOption, "other"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (requestingNewSuborganization.value === "True") {
|
if (requestingNewSuborganization.value === "True") {
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block form_fields %}
|
{% block form_fields %}
|
||||||
|
<input id="option-to-add-suborg" value="Other (enter your suborganization manually)"/>
|
||||||
<fieldset class="usa-fieldset">
|
<fieldset class="usa-fieldset">
|
||||||
<legend>
|
<legend>
|
||||||
<h2>Who will use the domain you’re requesting?</h2>
|
<h2>Who will use the domain you’re requesting?</h2>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue