diff --git a/streetup/mobile/urls.py b/streetup/mobile/urls.py index 066765a..c3c08ea 100644 --- a/streetup/mobile/urls.py +++ b/streetup/mobile/urls.py @@ -7,7 +7,7 @@ from projects.views import projects_index, projects_detail from observations.views import observations_index_mobile, observation_detail, observation_add from assets.views.core import mobile_asset_detail from inspections import views as inspections -from notifications.views import inbox_mobile +from notifications.views import inbox_mobile, notification_settings app_name = "mobile" urlpatterns = [ @@ -33,6 +33,7 @@ urlpatterns = [ path('observations//', observation_detail, name='observation_detail_mobile'), path('observations//edit/', observation_add, name='observation_edit_mobile'), path("notifications/", inbox_mobile, name='notifications_mobile'), + path("notifications/settings/", notification_settings, name='notifications_settings_mobile'), path("nature/green-surfaces/", views.green_surfaces_edit_mobile, name='green_surfaces_edit_mobile'), path("nature/green-surfaces-custom-draw/", views.green_surfaces_edit_custom_draw, name='green_surfaces_edit_custom_draw'), path("nature/green-surfaces-standalone/", views.green_surfaces_edit_standalone, name='green_surfaces_edit_standalone'), diff --git a/streetup/notifications/templates/notifications/inbox_mobile.html b/streetup/notifications/templates/notifications/inbox_mobile.html index 0de9f96..17765e5 100644 --- a/streetup/notifications/templates/notifications/inbox_mobile.html +++ b/streetup/notifications/templates/notifications/inbox_mobile.html @@ -112,7 +112,7 @@ {% translate "Notifications" %}
- + diff --git a/streetup/notifications/templates/notifications/notification_settings.html b/streetup/notifications/templates/notifications/notification_settings.html index b0e5be7..e105154 100644 --- a/streetup/notifications/templates/notifications/notification_settings.html +++ b/streetup/notifications/templates/notifications/notification_settings.html @@ -1,17 +1,19 @@ -{% extends "base.html" %} +{% extends base_template|default:"base.html" %} {% load i18n %} +{% block title %}{% translate "Paramètres" %}{% endblock title %} + {% block content %} -
+
- +
-

+

{% translate "Paramètres des notifications" %}

{% translate "Gérez vos préférences de rappel par e-mail pour les notifications non lues." %}

@@ -26,9 +28,12 @@ {% translate "Rappels par e-mail" %}
-
+
{% csrf_token %} + {% if is_mobile %} + + {% endif %}
@@ -95,7 +100,7 @@
- + {% translate "Annuler" %}