[UPDT] OFFBOARDING: Manager level features
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
}
|
||||
|
||||
</script>
|
||||
<div id="managerIn"></div>
|
||||
<div id="messages" class="oh-alert-container"></div>
|
||||
<div class="oh-wrapper">
|
||||
<div class="oh-tabs" onclick="switchTab(event)">
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
{% if request.user.employee_get|is_any_stage_manager or perms.offboarding.change_offboarding or perms.offboarding.change_offboardingemployee %}
|
||||
<div class="oh-sticky-table__th">{% trans "Stage" %}</div>
|
||||
{% endif %}
|
||||
<div class="oh-sticky-table__th">{% trans "Actions" %}</div>
|
||||
<div class="oh-sticky-table__th" style="width: 250px;">{% trans "Actions" %}</div>
|
||||
{% for task in stage.grouper.offboardingtask_set.all %}
|
||||
<div class="oh-sticky-table__th" style="width: 200px;" >
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
|
||||
@@ -69,11 +69,12 @@
|
||||
>
|
||||
<ion-icon name="newspaper-outline"></ion-icon>
|
||||
</button>
|
||||
{% if not employee.employee_id.is_active %}
|
||||
{% if stage.grouper.type == "archived" %}
|
||||
<a
|
||||
type="button"
|
||||
href="{% url 'employee-archive' employee.employee_id.id %}"
|
||||
title="{% trans 'Un Archive' %}"
|
||||
hx-get="{% url 'employee-archive' employee.employee_id.id %}"
|
||||
hx-target="#managerIn"
|
||||
title="{% if not employee.employee_id.is_active %}{% trans 'Un Archive' %} {% else %} {% trans 'Archive' %}{% endif %}"
|
||||
class="oh-btn oh-btn--light tex-primary"
|
||||
style="flex: 1 0 auto; width: 20px; height: 40.68px; padding: 0"
|
||||
onclick="event.stopPropagation()"
|
||||
@@ -92,7 +93,20 @@
|
||||
onclick="event.stopPropagation()"
|
||||
><ion-icon name="create-outline"></ion-icon
|
||||
></a>
|
||||
{% endif %} {% if perms.offboarding.delete_offboardingemployee %}
|
||||
{% endif %}
|
||||
{% if employee.employee_id.get_archive_condition %}
|
||||
<a
|
||||
type="button"
|
||||
title="{% trans 'Show managing records' %}"
|
||||
hx-get="{% url 'get-manager-in' %}?employee_id={{employee.employee_id.id}}"
|
||||
hx-target="#managerIn"
|
||||
class="oh-btn oh-btn--light tex-primary"
|
||||
style="flex: 1 0 auto; width: 20px; height: 40.68px; padding: 0"
|
||||
onclick="event.stopPropagation()"
|
||||
><ion-icon name="people-outline"></ion-icon
|
||||
></a>
|
||||
{% endif %}
|
||||
{% if perms.offboarding.delete_offboardingemployee %}
|
||||
<a
|
||||
type="button"
|
||||
style="flex: 1 0 auto; width: 20px; height: 40.68px; padding: 0"
|
||||
|
||||
Reference in New Issue
Block a user