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:
Lars Eggert 2023-09-26 20:00:05 +03:00 committed by GitHub
parent 7e18a0fad2
commit a8f50f50b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -207,11 +207,12 @@ const interimRequest = (function() {
toggleLocation: function () { toggleLocation: function () {
if (this.checked) { if (this.checked) {
$(".location") $(".location input, .location select")
.prop('disabled', false); .prop('disabled', false);
} else { } else {
$(".location") $(".location input, .location select")
.prop('disabled', true); .prop('disabled', true)
.val('');
} }
}, },

View file

@ -24,8 +24,8 @@
</div> </div>
{% endif %} {% endif %}
{% bootstrap_field form.meeting_type layout='horizontal' %} {% bootstrap_field form.meeting_type layout='horizontal' %}
{% bootstrap_field form.city layout='horizontal' %} {% bootstrap_field form.city layout='horizontal' wrapper_class='location mb-3' %}
{% bootstrap_field form.country layout='horizontal' %} {% bootstrap_field form.country layout='horizontal' wrapper_class='location mb-3' %}
{% bootstrap_field form.time_zone layout='horizontal' %} {% bootstrap_field form.time_zone layout='horizontal' %}
{{ formset.management_form }} {{ formset.management_form }}
{% if formset.non_form_errors %}<div class="my-3 alert alert-danger">{{ formset.non_form_errors }}</div>{% endif %} {% if formset.non_form_errors %}<div class="my-3 alert alert-danger">{{ formset.non_form_errors }}</div>{% endif %}