diff --git a/AgdarCentre/__pycache__/settings.cpython-312.pyc b/AgdarCentre/__pycache__/settings.cpython-312.pyc index ce993a4e..f1eb78b1 100644 Binary files a/AgdarCentre/__pycache__/settings.cpython-312.pyc and b/AgdarCentre/__pycache__/settings.cpython-312.pyc differ diff --git a/AgdarCentre/__pycache__/urls.cpython-312.pyc b/AgdarCentre/__pycache__/urls.cpython-312.pyc index 7d506b48..0dd611fd 100644 Binary files a/AgdarCentre/__pycache__/urls.cpython-312.pyc and b/AgdarCentre/__pycache__/urls.cpython-312.pyc differ diff --git a/AgdarCentre/settings.py b/AgdarCentre/settings.py index e6902ffb..fdceef0b 100644 --- a/AgdarCentre/settings.py +++ b/AgdarCentre/settings.py @@ -63,7 +63,6 @@ INSTALLED_APPS = [ 'phonenumber_field', 'django_celery_beat', 'django_celery_results', - 'debug_toolbar', 'django_extensions', 'webpack_loader', @@ -96,7 +95,6 @@ MIDDLEWARE = [ 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django_htmx.middleware.HtmxMiddleware', 'simple_history.middleware.HistoryRequestMiddleware', - 'debug_toolbar.middleware.DebugToolbarMiddleware', ] ROOT_URLCONF = 'AgdarCentre.urls' @@ -412,14 +410,6 @@ LOGGING = { } -# Debug Toolbar -# https://django-debug-toolbar.readthedocs.io/ - -INTERNAL_IPS = [ - '127.0.0.1', -] - - # Session Configuration SESSION_COOKIE_AGE = 86400 # 24 hours SESSION_SAVE_EVERY_REQUEST = True diff --git a/AgdarCentre/urls.py b/AgdarCentre/urls.py index 745a449c..c9815bec 100644 --- a/AgdarCentre/urls.py +++ b/AgdarCentre/urls.py @@ -49,8 +49,3 @@ urlpatterns += i18n_patterns( if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) - - import debug_toolbar - urlpatterns = [ - path('__debug__/', include(debug_toolbar.urls)), - ] + urlpatterns diff --git a/aba/templates/aba/consult_form.html b/aba/templates/aba/consult_form.html index 22d918fa..49cda1a5 100644 --- a/aba/templates/aba/consult_form.html +++ b/aba/templates/aba/consult_form.html @@ -455,7 +455,7 @@ $(document).ready(function() { const formCount = parseInt($(totalFormsId).val()) || 0; if (formCount >= maxForms) { - alert('{% trans "Maximum number of behaviors reached" %}'); + showAlertModal('{% trans "Maximum number of behaviors reached" %}', 'warning'); return; } @@ -539,7 +539,7 @@ $(document).ready(function() { // Check if there's only one visible behavior left const visibleBehaviors = $('.behavior-formset-item:visible').length; if (visibleBehaviors <= 1) { - alert('{% trans "You must have at least one behavior" %}'); + showAlertModal('{% trans "You must have at least one behavior" %}', 'warning'); return; } @@ -573,7 +573,7 @@ $(document).ready(function() { if (activeBehaviors === 0) { e.preventDefault(); - alert('{% trans "Please add at least one behavior" %}'); + showAlertModal('{% trans "Please add at least one behavior" %}', 'warning'); hasError = true; } diff --git a/aba/templates/aba/session_detail.html b/aba/templates/aba/session_detail.html index 105e39f4..b61ab43d 100644 --- a/aba/templates/aba/session_detail.html +++ b/aba/templates/aba/session_detail.html @@ -225,7 +225,7 @@ {% trans "This session has not been signed yet" %} {% if user.role == 'ADMIN' or user == session.provider %} -
{% trans "Behavioral Clinic Management System" %}