diff --git a/package.json b/package.json index 4fe1fa174..4792b6d35 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "jquery": "^3.7.1", "masonry-layout": "^4.2.2", "popper.js": "^1.16.1", - "shariff": "^3.3.0", "yarn": "^1.22.21" }, "scripts": { diff --git a/wger/core/static/js/wger-core.js b/wger/core/static/js/wger-core.js index 0ff66da86..638a6ff74 100644 --- a/wger/core/static/js/wger-core.js +++ b/wger/core/static/js/wger-core.js @@ -132,32 +132,6 @@ function getProfileField(field) { return result; } - - -function wgerToggleReadOnlyAccess() { - $('#toggle-ro-access').click(function (e) { - var $shariffModal; - var roAccess; - e.preventDefault(); - roAccess = getProfileField('ro_access'); - - // Update user profile - setProfileField('ro_access', !roAccess); - - // Hide and show appropriate divs - - $shariffModal = $('#shariffModal'); - if (!roAccess) { - $shariffModal.find('.shariff').removeClass('d-none'); - $shariffModal.find('.noRoAccess').addClass('d-none'); - } else { - $shariffModal.find('.shariff').addClass('d-none'); - $shariffModal.find('.noRoAccess').removeClass('d-none'); - } - }); -} - - /* Open a modal dialog for form editing */ diff --git a/wger/core/templates/base.html b/wger/core/templates/base.html index ffb6b3bb0..aa822b904 100644 --- a/wger/core/templates/base.html +++ b/wger/core/templates/base.html @@ -2,9 +2,7 @@ {% load i18n wger_extras django_bootstrap_breadcrumbs %} {% block template %} - {% if show_shariff %} - {% include 'misc/fragments/shariff_modal.html' %} - {% endif %} + {% if trainer_identity %} @@ -34,15 +32,6 @@ {% endblock %} - {% if show_shariff %} - - {% endif %} diff --git a/wger/core/templates/base_wide.html b/wger/core/templates/base_wide.html index bd929d51f..2cdc4c27a 100644 --- a/wger/core/templates/base_wide.html +++ b/wger/core/templates/base_wide.html @@ -1,8 +1,5 @@ {% extends "template.html" %}{% load i18n wger_extras django_bootstrap_breadcrumbs %} {% block template %} - {% if show_shariff %} - {% include 'misc/fragments/shariff_modal.html' %} - {% endif %} {% if trainer_identity %} @@ -29,16 +26,6 @@ {% block options %} {% endblock %} - - {% if show_shariff %} - - {% endif %} diff --git a/wger/core/templates/misc/fragments/shariff_modal.html b/wger/core/templates/misc/fragments/shariff_modal.html deleted file mode 100644 index b08eb76d5..000000000 --- a/wger/core/templates/misc/fragments/shariff_modal.html +++ /dev/null @@ -1,37 +0,0 @@ -{% load i18n wger_extras %} -