[UPDT] LEAVE: Style update for reject reason view
This commit is contained in:
@@ -52,14 +52,14 @@
|
||||
|
||||
<div class="oh-timeoff-modal__stats w-100 mt-3">
|
||||
<div class="oh-timeoff-modal__stat">
|
||||
<span class="oh-timeoff-modal__stat-title">{% trans "Description" %}</span>
|
||||
<span class="oh-timeoff-modal__stat-title">{% trans "Leave Description" %}</span>
|
||||
<div class="oh-timeoff-modal__stat-description">{{leave_request.description}}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if leave_request.reject_reason %}
|
||||
<div class="oh-timeoff-modal__stats w-100 mt-3">
|
||||
<div class="oh-timeoff-modal__stats w-100 mt-3 {% if leave_request.status == "cancelled" %} p-2 row-status--gray diff-cell{% endif %}">
|
||||
<div class="oh-timeoff-modal__stat">
|
||||
<span class="oh-timeoff-modal__stat-title">{% trans "Reason" %}</span>
|
||||
<span class="oh-timeoff-modal__stat-title">{% trans "Reason for Cancel/Reject" %}</span>
|
||||
<div class="oh-timeoff-modal__stat-description">{{leave_request.reject_reason}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% load i18n %}
|
||||
<div class="oh-modal__dialog-body oh-timeoff-modal__body pb-2">
|
||||
<div class="oh-modal__dialog-body oh-timeoff-modal__body pb-5">
|
||||
<div class="oh-timeoff-modal__profile-content">
|
||||
<div class="oh-profile">
|
||||
<div class="oh-profile__avatar mr-1">
|
||||
@@ -42,6 +42,14 @@
|
||||
<div class="oh-timeoff-modal__stat-description">{{leave_request.description}}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if leave_request.reject_reason %}
|
||||
<div class="oh-timeoff-modal__stats w-100 mt-3 {% if leave_request.status == "rejected" %} p-2 row-status--gray diff-cell{% endif %}">
|
||||
<div class="oh-timeoff-modal__stat">
|
||||
<span class="oh-timeoff-modal__stat-title">{% trans "Reason for Cancel/Reject" %}</span>
|
||||
<div class="oh-timeoff-modal__stat-description">{{leave_request.reject_reason}}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if leave_request.attachment %}
|
||||
<a href="{{leave_request.attachment.url}}" target="_blank" class="oh-timeoff-modal__download-link">
|
||||
<ion-icon class="me-1" name="download-outline"></ion-icon>
|
||||
|
||||
Reference in New Issue
Block a user