Add in validation for null select

This commit is contained in:
Daniel Sheppard 2024-04-23 00:52:39 -05:00
parent be0572c545
commit 22f5825864
1 changed files with 6 additions and 2 deletions

View File

@ -33,8 +33,10 @@
</div>
{% else %}
<div class="row mb-3">
<label class="col-sm-3 col-form-label text-lg-end">{% trans "Termination Type" %}</label>
<label for="a_terminations" class="col-sm-3 col-form-label text-lg-end">{% trans "Termination Type" %}</label>
<div class="col col-form-label">Cannot initialize dynamic cable termination selection form</div>
<select class="ts-hidden-accessible" name="a_terminations" required></select>
<div class="invalid-feedback">This field is required.</div>
</div>
{% endif %}
</div>
@ -67,8 +69,10 @@
</div>
{% else %}
<div class="row mb-3">
<label class="col-sm-3 col-form-label text-lg-end">{% trans "Termination Type" %}</label>
<label for="b_terminantions" class="col-sm-3 col-form-label text-lg-end">{% trans "Termination Type" %}</label>
<div class="col col-form-label">Cannot initialize dynamic cable termination selection form</div>
<select class="ts-hidden-accessible" name="b_terminations" required></select>
<div class="invalid-feedback">This field is required.</div>
</div>
{% endif %}
</div>