[IMP] Remove inter module dependency (#274)
This commit introduces significant changes to the architecture of the Horilla HRMS system by decoupling interdependent modules. The following modifications were made: 1. **Module Independence**: Each module has been refactored to eliminate reliance on other modules, promoting a more modular and maintainable codebase. 2. **Refactored Imports and Dependencies**: Adjusted import statements and dependency injections to support independent module operation. 3. **Compatibility and Functionality**: Ensured that all modules are compatible with existing systems and maintain their intended functionality both independently and when integrated with other modules. These changes enhance the modularity, maintainability, and scalability of the Horilla HRMS, allowing developers to work on individual modules without affecting the entire system. Future development and deployment will be more efficient and less prone to issues arising from tightly coupled code. **NOTE** For existing Horilla users, if you face any issues during the migrations, please run the following command and try again the migrations. - `python3 manage.py makemigrations` - `python3 manage.py migrate base` - `python3 manage.py migrate` * [IMP] ASSET: Asset module dependency removal from other Horilla apps * [IMP] ATTENDANCE: Attendance module dependency removal from other Horilla apps * [IMP] BASE: Base module dependency removal from other Horilla apps * [IMP] EMPLOYEE: Employee module dependency removal from other Horilla apps * [IMP] HELPDESK: Helpdesk module dependency removal from other Horilla apps * [IMP] HORILLA AUDIT: Horilla Audit module dependency removal from other Horilla apps * [IMP] HORILLA CRUMBS: Horilla Crumbs module dependency removal from other Horilla apps * [IMP] HORILLA AUTOMATIONS: Horilla Automations module dependency removal from other Horilla apps * [IMP] HORILLA VIEWS: Horilla Views module dependency removal from other Horilla apps * [IMP] LEAVE: Leave module dependency removal from other Horilla apps * [IMP] OFFBOARDING: Offboarding module dependency removal from other Horilla apps * [IMP] ONBOARDING: Onboarding module dependency removal from other Horilla apps * [IMP] PMS: PMS module dependency removal from other Horilla apps * [IMP] PAYROLL: Payroll module dependency removal from other Horilla apps * [IMP] RECRUITMENT: Recruitment module dependency removal from other Horilla apps * [IMP] HORILLA: Dependency removal updates * [IMP] TEMPLATES: Dependency removal updates * [IMP] STATIC: Dependency removal updates * [IMP] HORILLA DOCUMENTS: Horilla Documents module dependency removal from other Horilla apps * [ADD] HORILLA: methods.py * [UPDT] HORILLA: Settings.py * [FIX] EMPLOYEE: About tab issue * Update horilla_settings.py * Remove dummy db init password
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
<section class="hr-error_container">
|
||||
<div class="hr-error">
|
||||
<div class="hr-error_img hr-error_bg">
|
||||
<img src="/static/images/ui/404_error_image.png">
|
||||
<img src="{% static "/images/ui/404_error_image.png" %}">
|
||||
</div>
|
||||
<div>
|
||||
<h1 class="hr-404">404</h1>
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
<section class="hr-error_container">
|
||||
<div class="hr-error">
|
||||
<div class="hr-error_img hr-error_bg">
|
||||
<img src="/static/images/ui/405_error_image.png">
|
||||
<img src="{% static "/images/ui/405_error_image.png" %}">
|
||||
</div>
|
||||
<div>
|
||||
<h1 class="hr-404">405</h1>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,5 @@
|
||||
{% load static %}
|
||||
{% load horillafilters %}
|
||||
<style>
|
||||
.round {
|
||||
border-radius: 50%;
|
||||
@@ -120,17 +121,20 @@
|
||||
<i class="material-icons mt-2">leaderboard</i>
|
||||
</a>
|
||||
</div>
|
||||
<div id="fab8" class="fab round" data-tooltip="Create Ticket">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
data-target="#objectCreateModal"
|
||||
hx-get="{% url 'ticket-create' %}"
|
||||
hx-target="#objectCreateModalTarget"
|
||||
>
|
||||
<i class="material-icons mt-2">sell</i>
|
||||
</a>
|
||||
</div>
|
||||
{% if "helpdesk"|app_installed %}
|
||||
<div id="fab8" class="fab round" data-tooltip="Create Ticket">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
data-target="#objectCreateModal"
|
||||
hx-get="{% url 'ticket-create' %}"
|
||||
hx-target="#objectCreateModalTarget"
|
||||
>
|
||||
<i class="material-icons mt-2">sell</i>
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "asset"|app_installed %}
|
||||
<div id="fab7" class="fab round" data-tooltip="Create Asset Request">
|
||||
<a
|
||||
class="text-light"
|
||||
@@ -142,6 +146,8 @@
|
||||
<i class="material-icons mt-2">devices</i>
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "payroll"|app_installed %}
|
||||
<div id="fab6" class="fab round" data-tooltip="Create Reimbursement">
|
||||
<a
|
||||
class="text-light"
|
||||
@@ -153,6 +159,7 @@
|
||||
<i class="material-icons mt-2">paid</i>
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="fab5" class="fab round" data-tooltip="Create Work Type Request">
|
||||
<a
|
||||
class="text-light"
|
||||
@@ -175,23 +182,26 @@
|
||||
<i class="material-icons mt-2">history</i>
|
||||
</a>
|
||||
</div>
|
||||
<div id="fab3" class="fab round" data-tooltip="Create Leave Request">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
data-target="#objectCreateModal"
|
||||
{% if perms.leave.create_leaverequest %}
|
||||
hx-get="{% url 'request-creation' %}"
|
||||
{% else %}
|
||||
hx-get="{% url 'leave-request-create' %}"
|
||||
{% endif %}
|
||||
hx-target="#objectCreateModalTarget"
|
||||
>
|
||||
<span class="material-symbols-outlined mt-2">
|
||||
calendar_add_on
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
{% if "leave"|app_installed %}
|
||||
<div id="fab3" class="fab round" data-tooltip="Create Leave Request">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
data-target="#objectCreateModal"
|
||||
{% if perms.leave.create_leaverequest %}
|
||||
hx-get="{% url 'request-creation' %}"
|
||||
{% else %}
|
||||
hx-get="{% url 'leave-request-create' %}"
|
||||
{% endif %}
|
||||
hx-target="#objectCreateModalTarget"
|
||||
>
|
||||
<span class="material-symbols-outlined mt-2">
|
||||
calendar_add_on
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "attendance"|app_installed %}
|
||||
<div id="fab2" class="fab round" data-tooltip="Create Attendance Request">
|
||||
<a
|
||||
class="text-light"
|
||||
@@ -205,6 +215,7 @@
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div id="fab1" class="fab round" data-tooltip="Quick Action">
|
||||
<i id="fabIcon" class="material-icons">add</i>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% load static %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load attendancefilters %}
|
||||
{% load horillafilters %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{% get_current_language_bidi as LANGUAGE_BIDI %}
|
||||
@@ -53,6 +53,7 @@
|
||||
<div class="triple-spinner"></div>
|
||||
</div> {% endcomment %}
|
||||
{% comment %} </div> {% endcomment %}
|
||||
<div hidden id="statiUrl" data-url='{% static "" %}'></div>
|
||||
<body hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
|
||||
<span class="logged-in" data-user-id="{{request.user.id}}"></span>
|
||||
<div id="reloadMessages">
|
||||
@@ -173,39 +174,41 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="oh-navbar__systray">
|
||||
<div id="attendance-activity-container">
|
||||
{% if request.user.employee_get %}
|
||||
{% if request.session.selected_company == "all" or request.user.employee_get.employee_work_info.company_id.id == request.session.selected_company|default:"-1"|add:"0" %}
|
||||
{% if "attendance"|app_installed %}
|
||||
<div id="attendance-activity-container">
|
||||
{% if request.user.employee_get %}
|
||||
{% if request.session.selected_company == "all" or request.user.employee_get.employee_work_info.company_id.id == request.session.selected_company|default:"-1"|add:"0" %}
|
||||
|
||||
<!-- "CHEKING WETHER ITS IS THE CURRENT EMPLOYEES COMPANY OR ALL COMPANY, THEN ONLY SHOWS THE CHECK-IN, CHECK-OUT BUTTON" -->
|
||||
{% if request.user|is_clocked_in %}
|
||||
<button class="oh-btn oh-btn--warning-outline mr-2" {% if enabled_timerunner %} onmouseenter="$(this).find('span').show();$(this).find('.time-runner').hide();" onmouseleave="$(this).find('span').hide();$(this).find('.time-runner').show();" {% endif %} hx-get="{% url 'clock-out' %}" hx-target='#attendance-activity-container' hx-swap='innerHTML'><ion-icon class="oh-navbar__clock-icon mr-2 text-warning" name="exit-outline"></ion-icon>
|
||||
<span class="hr-Check-In-out-text" {% if enabled_timerunner %} style="display: none;" {% endif %}>{% trans "Check-Out" %}</span>
|
||||
<div class="time-runner"></div>
|
||||
</button>
|
||||
<script>
|
||||
run = 1
|
||||
</script>
|
||||
{% else %}
|
||||
<button{% if enabled_timerunner %} onmouseenter="$(this).find('span').show();$(this).find('.at-work-seconds').hide();" onmouseleave="$(this).find('span').hide();$(this).find('.at-work-seconds').show();" {% endif %}
|
||||
class="oh-btn oh-btn--success-outline mr-2" hx-get="{% url 'clock-in' %}" hx-target='#attendance-activity-container' hx-swap='innerHTML'
|
||||
>
|
||||
<ion-icon class="oh-navbar__clock-icon mr-2 text-success" name="enter-outline"></ion-icon>
|
||||
<span class="hr-Check-In-out-text" {% if enabled_timerunner %} style="display: none;" {% endif %}>{% trans "Check-In" %}</span>
|
||||
<div class="at-work-seconds"></div>
|
||||
</button>
|
||||
{% if enabled_timerunner %}
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('.at-work-seconds').html(secondsToDuration({{request.user.employee_get.get_forecasted_at_work.forecasted_at_work_seconds}}))
|
||||
});
|
||||
run = 0
|
||||
</script>
|
||||
<!-- "CHEKING WETHER ITS IS THE CURRENT EMPLOYEES COMPANY OR ALL COMPANY, THEN ONLY SHOWS THE CHECK-IN, CHECK-OUT BUTTON" -->
|
||||
{% if request.user|is_clocked_in %}
|
||||
<button class="oh-btn oh-btn--warning-outline mr-2" {% if enabled_timerunner %} onmouseenter="$(this).find('span').show();$(this).find('.time-runner').hide();" onmouseleave="$(this).find('span').hide();$(this).find('.time-runner').show();" {% endif %} hx-get="{% url 'clock-out' %}" hx-target='#attendance-activity-container' hx-swap='innerHTML'><ion-icon class="oh-navbar__clock-icon mr-2 text-warning" name="exit-outline"></ion-icon>
|
||||
<span class="hr-Check-In-out-text" {% if enabled_timerunner %} style="display: none;" {% endif %}>{% trans "Check-Out" %}</span>
|
||||
<div class="time-runner"></div>
|
||||
</button>
|
||||
<script>
|
||||
run = 1
|
||||
</script>
|
||||
{% else %}
|
||||
<button{% if enabled_timerunner %} onmouseenter="$(this).find('span').show();$(this).find('.at-work-seconds').hide();" onmouseleave="$(this).find('span').hide();$(this).find('.at-work-seconds').show();" {% endif %}
|
||||
class="oh-btn oh-btn--success-outline mr-2" hx-get="{% url 'clock-in' %}" hx-target='#attendance-activity-container' hx-swap='innerHTML'
|
||||
>
|
||||
<ion-icon class="oh-navbar__clock-icon mr-2 text-success" name="enter-outline"></ion-icon>
|
||||
<span class="hr-Check-In-out-text" {% if enabled_timerunner %} style="display: none;" {% endif %}>{% trans "Check-In" %}</span>
|
||||
<div class="at-work-seconds"></div>
|
||||
</button>
|
||||
{% if enabled_timerunner %}
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('.at-work-seconds').html(secondsToDuration({{request.user.employee_get.get_forecasted_at_work.forecasted_at_work_seconds}}))
|
||||
});
|
||||
run = 0
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if request.user|any_permission:'base' or perms.attendance.view_attendancevalidationcondition %}
|
||||
<div class="oh-navbar__action-icons" title="Settings">
|
||||
<a href="/settings/general-settings" id="settingsMenu" class="oh-navbar__action-icons-link">
|
||||
@@ -226,8 +229,8 @@
|
||||
<li class="oh-dropdown__item">
|
||||
<a href="{% url 'set_language' %}" class="oh-dropdown__link"
|
||||
onclick="event.preventDefault(); document.getElementById('language-form-{{ language.0 }}').submit();">
|
||||
<img src="/static/images/ui/{{ language.0 }}.png" class="oh-dropdown__lang-icon"/>{{ language.1 }}{% if language.0 == LANGUAGE_CODE %}
|
||||
<ion-icon name="checkmark-circle-outline" style="
|
||||
<img src="{% static 'images/ui/' %}{{ language.0 }}.png" class="oh-dropdown__lang-icon"/>{{ language.1 }}{% if language.0 == LANGUAGE_CODE %}
|
||||
<ion-icon name="checkmark-circle-outline" style="
|
||||
position: relative;
|
||||
top: 3.3px;
|
||||
color: green;
|
||||
@@ -406,32 +409,34 @@
|
||||
|
||||
}
|
||||
}
|
||||
function getAssignedLeave(employeeElement) {
|
||||
var employeeId=employeeElement.val()
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "{% url "get-assigned-leaves" %}",
|
||||
data: { "employeeId": employeeId },
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
let rows = ""
|
||||
for (let index = 0; index < response.length; index++) {
|
||||
const element = response[index];
|
||||
rows = rows + `<tr class="toggle-highlight"><td>${element.leave_type_id__name
|
||||
}</td><td>${element.available_days}</td><td>${element.carryforward_days}</td></tr>`
|
||||
}
|
||||
$("#availableTableBody").html($(rows))
|
||||
let newLeaves = ""
|
||||
for (let index = 0; index < response.length; index++) {
|
||||
const leave = response[index];
|
||||
newLeaves = newLeaves + `<option value="${leave.leave_type_id__id
|
||||
}">${leave.leave_type_id__name}</option>`
|
||||
}
|
||||
$('#id_leave_type_id').html(newLeaves)
|
||||
removeHighlight()
|
||||
}
|
||||
});
|
||||
}
|
||||
{% if "leave"|app_installed %}
|
||||
function getAssignedLeave(employeeElement) {
|
||||
var employeeId=employeeElement.val()
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "{% url "get-assigned-leaves" %}",
|
||||
data: { "employeeId": employeeId },
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
let rows = ""
|
||||
for (let index = 0; index < response.length; index++) {
|
||||
const element = response[index];
|
||||
rows = rows + `<tr class="toggle-highlight"><td>${element.leave_type_id__name
|
||||
}</td><td>${element.available_days}</td><td>${element.carryforward_days}</td></tr>`
|
||||
}
|
||||
$("#availableTableBody").html($(rows))
|
||||
let newLeaves = ""
|
||||
for (let index = 0; index < response.length; index++) {
|
||||
const leave = response[index];
|
||||
newLeaves = newLeaves + `<option value="${leave.leave_type_id__id
|
||||
}">${leave.leave_type_id__name}</option>`
|
||||
}
|
||||
$('#id_leave_type_id').html(newLeaves)
|
||||
removeHighlight()
|
||||
}
|
||||
});
|
||||
}
|
||||
{% endif %}
|
||||
function removeHighlight() {
|
||||
setTimeout(function() {
|
||||
$(".toggle-highlight").removeClass("toggle-highlight")
|
||||
@@ -441,7 +446,7 @@
|
||||
$(document).on("htmx:beforeRequest", function (event, data) {
|
||||
var response = event.detail.xhr.response;
|
||||
var target = $(event.detail.elt.getAttribute("hx-target"));
|
||||
var avoid_target = ["BiometricDeviceTestFormTarget","reloadMessages", "infinite"];
|
||||
var avoid_target = ["BiometricDeviceTestFormTarget","reloadMessages"];
|
||||
if (!target.closest("form").length && avoid_target.indexOf(target.attr("id")) === -1) {
|
||||
target.html(`<div class="animated-background"></div>`);
|
||||
}
|
||||
@@ -487,7 +492,9 @@
|
||||
<script src="{% static '/base/time_formatting.js' %}"></script>
|
||||
<script src="{% static '/base/time_settings.js' %}"></script>
|
||||
<script src="{% static '/base/date_formatting.js' %}"></script>
|
||||
<script src="{% static 'attendance/actions.js' %}"></script>
|
||||
{% if "attendance"|app_installed %}
|
||||
<script src="{% static 'attendance/actions.js' %}"></script>
|
||||
{% endif %}
|
||||
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
|
||||
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
|
||||
<script src="{% static '/build/js/sweetAlert.js' %}"></script>
|
||||
@@ -539,18 +546,18 @@
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function addToSelectedId(newIds,key="selectedInstances"){
|
||||
function addToSelectedId(newIds){
|
||||
ids = JSON.parse(
|
||||
$(`#${key}`).attr("data-ids") || "[]"
|
||||
$("#selectedInstances").attr("data-ids") || "[]"
|
||||
);
|
||||
|
||||
ids = [...ids,...newIds.map(String)]
|
||||
ids = Array.from(new Set(ids));
|
||||
$(`#${key}`).attr("data-ids",JSON.stringify(ids))
|
||||
$("#selectedInstances").attr("data-ids",JSON.stringify(ids))
|
||||
}
|
||||
function selectSelected(viewId,key="selectedInstances"){
|
||||
function selectSelected(viewId){
|
||||
ids = JSON.parse(
|
||||
$(`#${key}`).attr("data-ids") || "[]"
|
||||
$("#selectedInstances").attr("data-ids") || "[]"
|
||||
);
|
||||
$.each(ids, function (indexInArray, valueOfElement) {
|
||||
$(`${viewId} .oh-sticky-table__tbody .list-table-row[value=${valueOfElement}]`).prop("checked",true).change()
|
||||
@@ -560,7 +567,7 @@
|
||||
) {
|
||||
id = $(this).val()
|
||||
ids = JSON.parse(
|
||||
$(`#${key}`).attr("data-ids") || "[]"
|
||||
$("#selectedInstances").attr("data-ids") || "[]"
|
||||
);
|
||||
ids = Array.from(new Set(ids));
|
||||
let index = ids.indexOf(id);
|
||||
@@ -571,12 +578,14 @@
|
||||
ids.splice(index, 1);
|
||||
}
|
||||
}
|
||||
$(`#${key}`).attr("data-ids", JSON.stringify(ids));
|
||||
$("#selectedInstances").attr("data-ids", JSON.stringify(ids));
|
||||
}
|
||||
);
|
||||
reloadSelectedCount($('#count_{{view_id|safe}}'));
|
||||
|
||||
}
|
||||
function reloadSelectedCount(targetElement,key="selectedInstances") {
|
||||
count = JSON.parse($(`#${key}`).attr("data-ids") || "[]").length
|
||||
function reloadSelectedCount(targetElement) {
|
||||
count = JSON.parse($("#selectedInstances").attr("data-ids") || "[]").length
|
||||
id =targetElement.attr("id")
|
||||
if (id) {
|
||||
id =id.split("count_")[1]
|
||||
@@ -593,16 +602,16 @@
|
||||
|
||||
}
|
||||
}
|
||||
function removeId(element,key="selectedInstances"){
|
||||
function removeId(element){
|
||||
id = element.val();
|
||||
viewId = element.attr("data-view-id")
|
||||
ids = JSON.parse($(`#${key}`).attr("data-ids") || "[]")
|
||||
ids = JSON.parse($("#selectedInstances").attr("data-ids") || "[]")
|
||||
let elementToRemove = 5;
|
||||
if (ids[ids.length - 1] === id) {
|
||||
ids.pop();
|
||||
}
|
||||
ids = JSON.stringify(ids)
|
||||
$(`#${key}`).attr("data-ids", ids);
|
||||
$("#selectedInstances").attr("data-ids", ids);
|
||||
|
||||
}
|
||||
function getCookie(name) {
|
||||
|
||||
@@ -157,4 +157,4 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
</nav>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{% if white_label_company.icon %}{{white_label_company.icon.url}} {% else %}{% static 'favicons/apple-touch-icon.png' %}{% endif %}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{% if white_label_company.icon %}{{white_label_company.icon.url}} {% else %}{% static 'favicons/favicon-32x32.png' %}{% endif %}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{% if white_label_company.icon %}{{white_label_company.icon.url}} {% else %}{% static 'favicons/favicon-16x16.png' %}{% endif %}">
|
||||
<link rel="stylesheet" href="/static/build/css/style.min.css" />
|
||||
<link rel="stylesheet" href="{% static "/build/css/style.min.css" %}" />
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
<div class="oh-profile-section__image-container">
|
||||
<div class="oh-profile-section__modal-avatar">
|
||||
<img
|
||||
src="/static/images/ui/user.jpg"
|
||||
src="{% static "/images/ui/user.jpg" %}"
|
||||
class="oh-profile-section__modal-image oh-upload-photo"
|
||||
alt="User Photo"
|
||||
/>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends 'index.html' %} {% block content %} {% load static %} {% load i18n %}
|
||||
{% extends 'index.html' %} {% block content %} {% load static %} {% load i18n %} {% load horillafilters %}
|
||||
<style>
|
||||
.settings-label {
|
||||
font-weight: bold;
|
||||
@@ -156,16 +156,6 @@
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="oh-input-group">
|
||||
{% if perms.helpdesk.view_departmentmanager %}
|
||||
<a
|
||||
id="ticket_type"
|
||||
href="{% url 'department-manager-view' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Department Managers" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="oh-input-group">
|
||||
{% if perms.base.view_company %}
|
||||
<a
|
||||
@@ -182,7 +172,7 @@
|
||||
</div>
|
||||
</li>
|
||||
<hr>
|
||||
|
||||
{% if "recruitment"|app_installed %}
|
||||
<li class="oh-inner-sidebar__item">
|
||||
<div class="oh-accordion ms-2">
|
||||
<div class="oh-accordion-header" style="font-size:16px;">
|
||||
@@ -219,6 +209,7 @@
|
||||
</div>
|
||||
</li>
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
<li class="oh-inner-sidebar__item">
|
||||
<div class="oh-accordion ms-2">
|
||||
@@ -290,12 +281,14 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="oh-input-group">
|
||||
<a
|
||||
id="date"
|
||||
href="{% url 'action-type' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Disciplinary Action Type" %}</a
|
||||
>
|
||||
{% if perms.base.view_actiontype %}
|
||||
<a
|
||||
id="date"
|
||||
href="{% url 'action-type' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Disciplinary Action Type" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="oh-input-group">
|
||||
{% if perms.employee.view_emplyeetag %}
|
||||
@@ -314,7 +307,7 @@
|
||||
</div>
|
||||
</li>
|
||||
<hr>
|
||||
|
||||
{% if "attendance"|app_installed %}
|
||||
<li class="oh-inner-sidebar__item">
|
||||
<div class="oh-accordion ms-2">
|
||||
<div class="oh-accordion-header" style="font-size:16px;">
|
||||
@@ -383,107 +376,123 @@
|
||||
</div>
|
||||
</li>
|
||||
<hr>
|
||||
|
||||
<li class="oh-inner-sidebar__item">
|
||||
<div class="oh-accordion ms-2">
|
||||
<div class="oh-accordion-header" style="font-size:16px;">
|
||||
<ion-icon name="close-circle-outline" class="me-2"></ion-icon>
|
||||
{% trans "Leave" %}
|
||||
</div>
|
||||
<div class="oh-accordion-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="oh-input-group">
|
||||
{% if perms.attendance.view_attendancevalidationcondition %}
|
||||
<a
|
||||
id="condition"
|
||||
href="{% url 'employee-past-leave-restriction' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Restrictions" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="oh-input-group">
|
||||
{% if perms.attendance.view_attendancevalidationcondition %}
|
||||
<a
|
||||
id="condition"
|
||||
href="{% url 'compensatory-leave-settings-view' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Compensatory Leave" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "leave"|app_installed %}
|
||||
<li class="oh-inner-sidebar__item">
|
||||
<div class="oh-accordion ms-2">
|
||||
<div class="oh-accordion-header" style="font-size:16px;">
|
||||
<ion-icon name="close-circle-outline" class="me-2"></ion-icon>
|
||||
{% trans "Leave" %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<hr>
|
||||
|
||||
<li class="oh-inner-sidebar__item">
|
||||
<div class="oh-accordion ms-2">
|
||||
<div class="oh-accordion-header" style="font-size:16px;">
|
||||
<ion-icon name="wallet-outline" class="me-2"></ion-icon>
|
||||
{% trans "Payroll" %}
|
||||
</div>
|
||||
<div class="oh-accordion-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="oh-input-group">
|
||||
{% if perms.payroll.view_PayslipAutoGenerate %}
|
||||
<a
|
||||
id="autoGeneratePayslip"
|
||||
href="{% url 'auto-payslip-settings-view' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Payslip Auto Generation" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
<div class="col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="oh-input-group">
|
||||
{% if perms.attendance.view_attendancevalidationcondition %}
|
||||
<a
|
||||
id="condition"
|
||||
href="{% url 'employee-past-leave-restriction' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Restrictions" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% if "attendance"|app_installed %}
|
||||
<div class="col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="oh-input-group">
|
||||
{% if perms.attendance.view_attendancevalidationcondition %}
|
||||
<a
|
||||
id="condition"
|
||||
href="{% url 'compensatory-leave-settings-view' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Compensatory Leave" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<hr>
|
||||
{% endif %}
|
||||
{% if "payroll"|app_installed %}
|
||||
<li class="oh-inner-sidebar__item">
|
||||
<div class="oh-accordion ms-2">
|
||||
<div class="oh-accordion-header" style="font-size:16px;">
|
||||
<ion-icon name="wallet-outline" class="me-2"></ion-icon>
|
||||
{% trans "Payroll" %}
|
||||
</div>
|
||||
<div class="oh-accordion-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="oh-input-group">
|
||||
{% if perms.payroll.view_payslipautogenerate %}
|
||||
<a
|
||||
id="autoGeneratePayslip"
|
||||
href="{% url 'auto-payslip-settings-view' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Payslip Auto Generation" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<hr>
|
||||
</li>
|
||||
<hr>
|
||||
{% endif %}
|
||||
{% if "helpdesk"|app_installed %}
|
||||
<li class="oh-inner-sidebar__item">
|
||||
<div class="oh-accordion ms-2">
|
||||
<div class="oh-accordion-header" style="font-size:16px;">
|
||||
<ion-icon name="headset" class="me-2"></ion-icon>
|
||||
{% trans "Help Desk" %}
|
||||
</div>
|
||||
<div class="oh-accordion-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="oh-input-group">
|
||||
{% if perms.helpdesk.view_departmentmanager %}
|
||||
<a
|
||||
id="ticket_type"
|
||||
href="{% url 'department-manager-view' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Department Managers" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="oh-input-group">
|
||||
{% if perms.helpdesk.view_tickettype %}
|
||||
<a
|
||||
id="ticket_type"
|
||||
href="{% url 'ticket-type-view' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Ticket Type" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="oh-input-group">
|
||||
{% if perms.employee.view_emplyeetag %}
|
||||
<a
|
||||
id="ticket_type"
|
||||
href="{% url 'helpdesk-tag-view' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Helpdesk Tags" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<li class="oh-inner-sidebar__item">
|
||||
<div class="oh-accordion ms-2">
|
||||
<div class="oh-accordion-header" style="font-size:16px;">
|
||||
<ion-icon name="headset" class="me-2"></ion-icon>
|
||||
{% trans "Help Desk" %}
|
||||
</div>
|
||||
<div class="oh-accordion-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="oh-input-group">
|
||||
{% if perms.helpdesk.view_tickettype %}
|
||||
<a
|
||||
id="ticket_type"
|
||||
href="{% url 'ticket-type-view' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Ticket Type" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="oh-input-group">
|
||||
{% if perms.employee.view_emplyeetag %}
|
||||
<a
|
||||
id="ticket_type"
|
||||
href="{% url 'helpdesk-tag-view' %}"
|
||||
class="oh-inner-sidebar__link oh-dropdown__link"
|
||||
>{% trans "Helpdesk Tags" %}</a
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<hr>
|
||||
</li>
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% load static %} {% load i18n %} {% load attendancefilters offboarding_filter %}
|
||||
{% load recruitmentfilters %} {% load onboardingfilters %} {% load basefilters %} {% load leavefilters %}
|
||||
{% load static %} {% load i18n %} {% load horillafilters %}
|
||||
{% load basefilters %}
|
||||
<script>
|
||||
function activeNav(id) {
|
||||
const navElement = $(`#${id}`);
|
||||
@@ -229,7 +229,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
style="display: none"
|
||||
>
|
||||
<ul class="oh-sidebar__submenu-items">
|
||||
{% if perms.Leave.view_leaverequest %}
|
||||
{% if "leave"|app_installed and perms.Leave.view_leaverequest %}
|
||||
<li class="oh-sidebar__submenu-item">
|
||||
<a
|
||||
href="{% url 'multiple-approval-condition' %}"
|
||||
@@ -238,7 +238,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if perms.recruitment.view_recruitmentmailtemplate %}
|
||||
{% if perms.base.view_horillamailtemplate %}
|
||||
<li class="oh-sidebar__submenu-item">
|
||||
<a
|
||||
class="oh-sidebar__submenu-link"
|
||||
@@ -248,7 +248,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if perms.recruitment.view_mailautomation %}
|
||||
{% if "horilla_automations"|app_installed and perms.horilla_automations.view_mailautomation %}
|
||||
<li class="oh-sidebar__submenu-item">
|
||||
<a
|
||||
class="oh-sidebar__submenu-link"
|
||||
@@ -258,7 +258,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if perms.leave.add_holiday %}
|
||||
{% if perms.base.add_holiday %}
|
||||
<li class="oh-sidebar__submenu-item">
|
||||
<a
|
||||
href="{% url 'holiday-view' %}"
|
||||
@@ -267,7 +267,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if perms.leave.add_companyleave %}
|
||||
{% if perms.base.view_companyleave %}
|
||||
<li class="oh-sidebar__submenu-item">
|
||||
<a
|
||||
href="{% url 'company-leave-view' %}"
|
||||
@@ -276,6 +276,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if "leave"|app_installed %}
|
||||
<li class="oh-sidebar__submenu-item">
|
||||
<a
|
||||
href="{% url 'restrict-view' %}"
|
||||
@@ -283,6 +284,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
>{% trans "Restrict Leaves" %}</a
|
||||
>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
@@ -400,7 +402,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
var noDataImage = new Image();
|
||||
noDataImage.src = chart.data.emptyImageSrc
|
||||
? chart.data.emptyImageSrc
|
||||
: "/static/images/ui/joiningchart.png";
|
||||
: "{% static '/images/ui/joiningchart.png' %}";
|
||||
|
||||
message = chart.data.message
|
||||
? chart.data.message
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
<section class="hr-error_container">
|
||||
<div class="hr-error">
|
||||
<div class="hr-error_img hr-error_bg">
|
||||
<img src="/static/images/ui/404_error_image.png">
|
||||
<img src="{% static "/images/ui/404_error_image.png" %}">
|
||||
</div>
|
||||
<div>
|
||||
<h1 class="hr-404">404</h1>
|
||||
|
||||
Reference in New Issue
Block a user