Add in validation for null select
This commit is contained in:
parent
be0572c545
commit
22f5825864
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue