fix: Only enable city/country entry for in-person interims (#6383)
Was probably broken during the bs5 transition. Fixes #6346
This commit is contained in:
parent
7e18a0fad2
commit
a8f50f50b0
|
@ -207,11 +207,12 @@ const interimRequest = (function() {
|
|||
|
||||
toggleLocation: function () {
|
||||
if (this.checked) {
|
||||
$(".location")
|
||||
$(".location input, .location select")
|
||||
.prop('disabled', false);
|
||||
} else {
|
||||
$(".location")
|
||||
.prop('disabled', true);
|
||||
$(".location input, .location select")
|
||||
.prop('disabled', true)
|
||||
.val('');
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
{% bootstrap_field form.meeting_type layout='horizontal' %}
|
||||
{% bootstrap_field form.city layout='horizontal' %}
|
||||
{% bootstrap_field form.country layout='horizontal' %}
|
||||
{% bootstrap_field form.city layout='horizontal' wrapper_class='location mb-3' %}
|
||||
{% bootstrap_field form.country layout='horizontal' wrapper_class='location mb-3' %}
|
||||
{% bootstrap_field form.time_zone layout='horizontal' %}
|
||||
{{ formset.management_form }}
|
||||
{% if formset.non_form_errors %}<div class="my-3 alert alert-danger">{{ formset.non_form_errors }}</div>{% endif %}
|
||||
|
|
Loading…
Reference in a new issue