[UPDT] GENERAL: Pylint formatting
This commit is contained in:
@@ -1 +1 @@
|
||||
{{form.attendance_id}}
|
||||
{{form.attendance_id}}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% load i18n %}
|
||||
{% if form.errors %}
|
||||
<div class="oh-wrapper">
|
||||
<div class="oh-alert-container">
|
||||
@@ -40,4 +40,4 @@
|
||||
$(this).closest("select")[0].dispatchEvent(new Event("change"));
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
</div>
|
||||
|
||||
<form method="post"
|
||||
hx-target="#commentContainer"
|
||||
hx-target="#commentContainer"
|
||||
hx-post="{% url 'create-compensatory-leave-comment' request_id %}?{{pd}}" id="commentForm">
|
||||
{% csrf_token %}
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
<div id="enlargeImageContainer" class="enlargeImageContainer"></div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% else %}
|
||||
@@ -173,5 +173,5 @@
|
||||
commentButton.style.display = 'none';
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
}
|
||||
</style>
|
||||
<div class="oh-label__info" for="application_tracking">
|
||||
<label class="oh-label fw-bold" for="application_tracking">{% trans "Compensatory Leave Type" %}</label>
|
||||
<label class="oh-label fw-bold" for="application_tracking">{% trans "Compensatory Leave Type" %}</label>
|
||||
<span class="oh-info mr-2" title="{% trans "This leave type will be used for assigning compensatory leaves." %}">
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="oh-layout--grid-3" >
|
||||
{% comment %} {% for leave_type in leave_types %} {% endcomment %}
|
||||
@@ -32,7 +32,7 @@
|
||||
<img src="{{leave_type.get_avatar}}" class="oh-kanban-card__profile-image" alt="Username" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="oh-kanban-card__details">
|
||||
<span class="oh-card__title oh-card__title--sm fw-bold" style="font-size:18px;">{{leave_type.name}}</span>
|
||||
<div class="oh-timeoff-modal__stats-container mb-1">
|
||||
@@ -46,7 +46,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% if perms.leave.change_leavetype or perms.leave.delete_leavetype %}
|
||||
<div class="oh-kanban-card__dots" onclick="event.stopPropagation()">
|
||||
<div class="oh-dropdown" x-data="{show: false}">
|
||||
@@ -68,4 +68,4 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
{% comment %} {% endfor %} {% endcomment %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
from django.template.defaultfilters import register
|
||||
from django import template
|
||||
from django.template.defaultfilters import register
|
||||
|
||||
from leave.models import LeaveGeneralSetting
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
||||
@register.filter(name="is_compensatory")
|
||||
def is_compensatory(user):
|
||||
if LeaveGeneralSetting.objects.exists():
|
||||
|
||||
@@ -464,9 +464,15 @@ class Candidate(HorillaModel):
|
||||
interview_info += "<tr><th>Sl No.</th><th>Date</th><th>Time</th><th>Is Completed</th></tr>"
|
||||
for index, interview in enumerate(interviews, start=1):
|
||||
interview_info += f"<tr><td>{index}</td>"
|
||||
interview_info += f"<td class='dateformat_changer'>{interview.interview_date}</td>"
|
||||
interview_info += f"<td class='timeformat_changer'>{interview.interview_time}</td>"
|
||||
interview_info += f"<td>{'Yes' if interview.completed else 'No'}</td></tr>"
|
||||
interview_info += (
|
||||
f"<td class='dateformat_changer'>{interview.interview_date}</td>"
|
||||
)
|
||||
interview_info += (
|
||||
f"<td class='timeformat_changer'>{interview.interview_time}</td>"
|
||||
)
|
||||
interview_info += (
|
||||
f"<td>{'Yes' if interview.completed else 'No'}</td></tr>"
|
||||
)
|
||||
interview_info += "</table>"
|
||||
return interview_info
|
||||
else:
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
</div>
|
||||
<form hx-get="{% url 'enable-compensatory-leave' %}" hx-swap="none">
|
||||
<div class="oh-label__info" for="application_tracking">
|
||||
<label class="oh-label" for="application_tracking">{% trans "Compensatory Leave Request" %}</label>
|
||||
<label class="oh-label" for="application_tracking">{% trans "Compensatory Leave Request" %}</label>
|
||||
<span class="oh-info mr-2" title="{% trans "By enabling this normal users can request for compensatory leave" %}">
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="oh-switch p-3">
|
||||
<input type="checkbox" class="oh-switch__checkbox" name="compensatory_leave" onchange="
|
||||
@@ -26,7 +26,7 @@
|
||||
</form>
|
||||
<div class="oh-inner-sidebar-content__footer"></div>
|
||||
<div class="{% if not enabled_compensatory %} d-none {% endif %}" id="leave_type_div">
|
||||
{% include "leave/compensatory_leave/compensatory_leave_type.html" %}
|
||||
{% include "leave/compensatory_leave/compensatory_leave_type.html" %}
|
||||
<div>
|
||||
{% comment %} {% if perms.helpdesk.add_tickettype %} {% endcomment %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user