diff --git a/base/filters.py b/base/filters.py index 92c6599b7..df0ac788d 100644 --- a/base/filters.py +++ b/base/filters.py @@ -43,6 +43,7 @@ class ShiftRequestFilter(FilterSet): fields = "__all__" model = ShiftRequest fields = [ + "id", "employee_id", "requested_date", "previous_shift_id", diff --git a/base/urls.py b/base/urls.py index fac4d5589..dd9f6c32d 100644 --- a/base/urls.py +++ b/base/urls.py @@ -29,6 +29,7 @@ urlpatterns = [ "settings/user-group-create/", views.user_group_table, name="user-group-create" ), path("settings/user-group-view/", views.user_group, name="user-group-view"), + path("settings/user-group-search/", views.user_group_search, name="user-group-search"), path( "settings/user-group-update//", views.user_group_update, @@ -516,7 +517,9 @@ urlpatterns = [ ), path("notifications", views.notifications, name="notifications"), path("clear-notifications", views.clear_notification, name="clear-notifications"), + path("delete-all-notifications", views.delete_all_notifications, name="delete-all-notifications"), path("read-notifications", views.read_notifications, name="read-notifications"), + path('mark-as-read-notification/', views.mark_as_read_notification, name='mark-as-read-notification'), path("all-notifications", views.all_notifications, name="all-notifications"), path( "delete-notifications//", diff --git a/templates/index.html b/templates/index.html index 68de02165..8e4a7899d 100755 --- a/templates/index.html +++ b/templates/index.html @@ -282,20 +282,44 @@ overflow: hidden; } - .perm-accordion{ - border: 1px solid #6c757d1c !important; - margin: 0 0 2px 0 !important; - width: -100%; - } - .app-permissions{ - background-color: rgba(242, 249, 255, 0.586); - } - .perm-accordion-active{ - background-color: rgba(215, 233, 251, 0.621) !important; - } - .perm-accordion-active:hover{ - background-color: rgba(215, 233, 251, 0.408) !important; - } +.perm-accordion{ + border: 1px solid #6c757d1c !important; + margin: 0 0 2px 0 !important; + width: -100%; +} +.app-permissions{ + background-color: rgba(242, 249, 255, 0.586); +} +.perm-accordion-active{ + background-color: rgba(215, 233, 251, 0.621) !important; +} +.perm-accordion-active:hover{ + background-color: rgba(215, 233, 251, 0.408) !important; +} +.arrow-up::before { + content: '\25B2'; + font-size:12px; + display: inline-block; + margin-right: 5px; +} +.arrow-down::before { + content: '\25BC'; + font-size:12px; + display: inline-block; + margin-right: 5px; +} +.oh-activity-sidebar__header { + position: relative; +} + +.delete-all-link { + position: absolute; + color: rgb(63 124 242); + top: -5px; + right: 10px; + margin: 10px; + cursor: pointer; +} @@ -363,16 +387,17 @@
- {% comment %} {% endcomment %} - + + {% trans "All Notifications" %} + {% trans "Delete all" %}
{% include "notification/all_notifications.html" %} diff --git a/templates/notification/all_notifications.html b/templates/notification/all_notifications.html index 499bac3e1..914cfb85b 100644 --- a/templates/notification/all_notifications.html +++ b/templates/notification/all_notifications.html @@ -20,18 +20,21 @@ {% endif %} {% if LANGUAGE_CODE == 'ar' %} -

{{ notification.data.verb_ar }}

+

{{ notification.data.verb_ar }}

{% elif LANGUAGE_CODE == 'de' %} -

{{ notification.data.verb_de }}

+

{{ notification.data.verb_de }}

{% elif LANGUAGE_CODE == 'fr' %} -

{{ notification.data.verb_fr }}

+

{{ notification.data.verb_fr }}

{% elif LANGUAGE_CODE == 'es' %} -

{{ notification.data.verb_es }}

+

{{ notification.data.verb_es }}

{% else %} -

{{ notification.verb }}

+

{{ notification.verb }}

{% endif %} - +
+ +
+
{{ notification.timesince }} {% trans "ago by" %}User {{notification.actor}} diff --git a/templates/notification/notification_items.html b/templates/notification/notification_items.html index 6052947a2..cb9b1f0a4 100644 --- a/templates/notification/notification_items.html +++ b/templates/notification/notification_items.html @@ -10,8 +10,8 @@
{% endif %} \ No newline at end of file + {% endfor %} + + +