[UPDT] GENERAL: Empty page for views if no records are present
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% extends 'settings.html' %}
|
||||
{% load i18n %}
|
||||
{% block settings %}
|
||||
{% block settings %}{% load static %}
|
||||
<div class="oh-inner-sidebar-content">
|
||||
{% if perms.helpdesk.view_departmentmanager %}
|
||||
<div class="oh-inner-sidebar-content__header d-flex justify-content-between align-items-center">
|
||||
@@ -18,7 +18,14 @@
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% include 'department_managers/department_managers_view.html' %}
|
||||
{% if department_managers %}
|
||||
{% include 'department_managers/department_managers_view.html' %}
|
||||
{% else %}
|
||||
<div style="display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%;">
|
||||
<img style="display: block; width: 15%; margin: 20px auto; filter: opacity(0.5);" src="{% static 'images/ui/manager.png' %}" class="" alt="Page not found. 404." />
|
||||
<h5 class="oh-404__subtitle">{% trans "There is no department managers at this moment." %}</h5>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<div style="" class="oh-404">
|
||||
<img
|
||||
style="display: block; width: 150px; height: 150px; margin: 10px auto"
|
||||
src="{% static 'images/ui/attendance.png' %}"
|
||||
src="{% static 'images/ui/faq.png' %}"
|
||||
class="mb-4"
|
||||
alt=""
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user