diff --git a/castellum/contacts/static/js/availability.js b/castellum/contacts/static/js/availability.js index 4824dcd0c41d802e521e213bc401287c64f6da44..d959208dc96cc772be9558bc5044805440e83dd4 100644 --- a/castellum/contacts/static/js/availability.js +++ b/castellum/contacts/static/js/availability.js @@ -30,7 +30,7 @@ availability.querySelectorAll('select').forEach(function(select) { var label = document.createElement('label'); label.className = 'd-block mb-0'; - label.innerHTML = '' + + label.innerHTML = '' + ''; label.querySelector('span').textContent = django.gettext('All day'); select.before(label); @@ -43,7 +43,7 @@ $$.on(availability, 'change', 'select', function() { // hours --> day - var wholeDay = this.closest('.form-group').querySelector('[data-js="toggle-day"]'); + var wholeDay = this.closest('.col-6').querySelector('[data-js="toggle-day"]'); setCheckbox(this, wholeDay); // hours --> week @@ -52,7 +52,7 @@ $$.on(availability, 'change', '[data-js="toggle-day"]', function() { // day --> hours - var select = this.closest('.form-group').querySelector('select'); + var select = this.closest('.col-6').querySelector('select'); select.querySelectorAll('option').forEach(option => { option.selected = this.checked; }); @@ -76,7 +76,7 @@ // set initial state of day checkboxes document.querySelectorAll('[data-js="toggle-day"]').forEach(function(wholeDay) { - var select = wholeDay.closest('.form-group').querySelector('select'); + var select = wholeDay.closest('.col-6').querySelector('select'); setCheckbox(select, wholeDay); }); diff --git a/castellum/contacts/templates/contacts/__contact_form_self.html b/castellum/contacts/templates/contacts/__contact_form_self.html index 529aca97dd799fb0d4b7e4bfcf756e22086dcf90..5a764548da1dc28b4595b92fb95f12c3032bf22d 100644 --- a/castellum/contacts/templates/contacts/__contact_form_self.html +++ b/castellum/contacts/templates/contacts/__contact_form_self.html @@ -1,7 +1,7 @@ -{% load bootstrap4 %} +{% load django_bootstrap5 %} {% bootstrap_field form.email %} -
{% translate 'Scheduler only available for participating subjects.' %} diff --git a/castellum/execution/templates/execution/participation_news.html b/castellum/execution/templates/execution/participation_news.html index b1cd24bde8c0217d7ad46c067bfaf0b0ee5c6760..0160c9da038034c6dc37721b7c54c24740da4b02 100644 --- a/castellum/execution/templates/execution/participation_news.html +++ b/castellum/execution/templates/execution/participation_news.html @@ -1,5 +1,5 @@ {% extends "execution/participation_base.html" %} -{% load i18n bootstrap4 %} +{% load i18n django_bootstrap5 %} {% block content %}