diff --git a/biscuit/core/menus.py b/biscuit/core/menus.py index a230037f8305813cd5ec1a13307894af9da4bc15..a3ba09e29e7a459c7b1a25a20c35cb425c4dcb17 100644 --- a/biscuit/core/menus.py +++ b/biscuit/core/menus.py @@ -96,16 +96,6 @@ MENUS = { } ] }, - { - 'name': _('Support'), - 'url': '#', - 'submenu': [ - { - 'name': _('Get support'), - 'url': 'contact_form' - } - ] - } ], 'DATA_MANAGEMENT_MENU': [ ], diff --git a/biscuit/core/settings.py b/biscuit/core/settings.py index 61c92d3ea50a109873dbdb3e13f8e1bbd4100f9c..995742ee3c24097d961dd5d27ea55cef258b1d25 100644 --- a/biscuit/core/settings.py +++ b/biscuit/core/settings.py @@ -65,7 +65,6 @@ INSTALLED_APPS = [ 'menu_generator', 'phonenumber_field', 'debug_toolbar', - 'contact_form', 'django_select2', 'hattori', 'django_otp.plugins.otp_totp', diff --git a/biscuit/core/templates/contact_form/contact_form.html b/biscuit/core/templates/contact_form/contact_form.html deleted file mode 100644 index 00a6caad94102e477bea534a638846baffcb2fe9..0000000000000000000000000000000000000000 --- a/biscuit/core/templates/contact_form/contact_form.html +++ /dev/null @@ -1,17 +0,0 @@ -{# -*- engine:django -*- #} -{% extends "core/base.html" %} -{% load bootstrap4 i18n %} - -{% block page_title %}BiscuIT SIS support{% endblock %} - -{% block content %} - <h1>{% blocktrans %}Get support{% endblocktrans %}</h1> - - <form method="post"> - {% csrf_token %} - {% bootstrap_form form %} - <button type="submit" class="btn btn-dark"> - {% blocktrans %}Send{% endblocktrans %} - </button> - </form> -{% endblock %} diff --git a/biscuit/core/templates/contact_form/contact_form.txt b/biscuit/core/templates/contact_form/contact_form.txt deleted file mode 100644 index 9a8f66d94083d6ab9dd9abb4a1ade3ffc0ee150c..0000000000000000000000000000000000000000 --- a/biscuit/core/templates/contact_form/contact_form.txt +++ /dev/null @@ -1,3 +0,0 @@ -From: {{ name }} <{{ email }}> - -{{ body }} diff --git a/biscuit/core/templates/contact_form/contact_form_sent.html b/biscuit/core/templates/contact_form/contact_form_sent.html deleted file mode 100644 index 86d69b579fb81370e4842f88edf2f7263986de45..0000000000000000000000000000000000000000 --- a/biscuit/core/templates/contact_form/contact_form_sent.html +++ /dev/null @@ -1,13 +0,0 @@ -{# -*- engine:django -*- #} -{% extends "core/base.html" %} -{% load bootstrap4 i18n %} - -{% block page_title %}BiscuIT School Information System (SIS){% endblock %} - -{% block content %} - <div class="alert alert-success" role="alert"> - {% blocktrans %} - The message was successfully submitted. - {% endblocktrans %} - </div> -{% endblock %} diff --git a/biscuit/core/templates/contact_form/contact_form_subject.txt b/biscuit/core/templates/contact_form/contact_form_subject.txt deleted file mode 100644 index 5fcb23b2da374cb55dc32f3795caf0b3579334ec..0000000000000000000000000000000000000000 --- a/biscuit/core/templates/contact_form/contact_form_subject.txt +++ /dev/null @@ -1 +0,0 @@ -[BiscuIT Support] diff --git a/biscuit/core/urls.py b/biscuit/core/urls.py index dd98dc0175b1e6a13605208615f6fa2ca1482342..0ecfbb6f34d064a32170999f3886327100a6da9d 100644 --- a/biscuit/core/urls.py +++ b/biscuit/core/urls.py @@ -34,7 +34,6 @@ urlpatterns = [ path('group/<int:id_>/edit', views.edit_group, name='edit_group_by_id'), path('', views.index, name='index'), path('maintenance-mode/', include('maintenance_mode.urls')), - path('contact/', include('contact_form.urls')), path('impersonate/', include('impersonate.urls')), path('__i18n__/', include('django.conf.urls.i18n')), path('select2/', include('django_select2.urls')), diff --git a/poetry.lock b/poetry.lock index 226b6ce8a57eb1dc5b5ac360510e71a7fb72e90d..50960dbe1af5febeefe0ae788a6658270b74c563 100644 --- a/poetry.lock +++ b/poetry.lock @@ -204,17 +204,6 @@ version = "0.9.2" [package.dependencies] Django = ">=1.8.0" -[[package]] -category = "main" -description = "A generic contact-form application for Django" -name = "django-contact-form" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" -version = "1.7" - -[package.dependencies] -Django = ">=1.11" - [[package]] category = "main" description = "Running python crons in a Django project" @@ -1303,7 +1292,7 @@ more-itertools = "*" ldap = ["django-auth-ldap"] [metadata] -content-hash = "908e1e56f87aef8ccff2ce9a79bf335b5cb09896566d1dddb45c62c799c86310" +content-hash = "bce86bce11298566a201539a09dd1f1123f3d1e48725419fcac72009f154cebe" python-versions = "^3.7" [metadata.hashes] @@ -1328,7 +1317,6 @@ django-auth-ldap = ["4d68d21058bd57a316a9e1fcd7a36d0f25d054d4d9d9ec85f766a499117 django-bootstrap4 = ["3da770392819267eda2f774bcf832460af00db21089b94caf4df94be8a48c48c"] django-bulk-update = ["49a403392ae05ea872494d74fb3dfa3515f8df5c07cc277c3dc94724c0ee6985", "5ab7ce8a65eac26d19143cc189c0f041d5c03b9d1b290ca240dc4f3d6aaeb337"] django-common-helpers = ["2d56be6fa261d829a6a224f189bf276267b9082a17d613fe5f015dd4d65c17b4"] -django-contact-form = ["b42b7e04d6af3318b8427c1eaf62385ec66da252aa79b607ee55d956c7af4a2d", "c31f73faa13f52efa81ac95f41007f3a84eca617f92773a1bed7ca90c61cb3ed"] django-cron = ["08d22708c8b2ecab8cda989019a66c7e1e2424c59d822796fd45abf7731d261d"] django-dbbackup = ["9470e5d8bdaee4feb878b1b66c59eb9b27a131cccd648bf7cbfe70930acd4fc0"] django-dbsettings = ["e3147ced54b7db3371df10df8845e4514aeae96720000bca1a01d0a6490a1404"] diff --git a/pyproject.toml b/pyproject.toml index 456e9d434956b95ea80d311aaabf06f6b8379ebe..c4c341b2f0906c0bf786bc6d32a5d88bcec4f031 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,6 @@ django-maintenance-mode = "^0.13.3" django-ipware = "^2.1" easy-thumbnails = "^2.6" django-image-cropping = "^1.2" -django-contact-form = "^1.7" django-impersonate = "^1.4" python-memcached = "^1.59" django-dbbackup = "^3.2"