diff --git a/attendance/templates/attendance/break_point/condition.html b/attendance/templates/attendance/break_point/condition.html index 784acc818..8ce7673e6 100644 --- a/attendance/templates/attendance/break_point/condition.html +++ b/attendance/templates/attendance/break_point/condition.html @@ -1,11 +1,26 @@ {% extends 'settings.html' %} -{% load i18n %} +{% load i18n static %} + {% block settings %} -{% load static %} -{% include "generic/components.html" %}
-
+
+ + +
+
+
+
+ +{% comment %}

{% trans 'Break Point Condition' %}

{% if not condition and perms.attendance.add_attendancevalidationcondition%} @@ -19,8 +34,8 @@ {% endif %}
- {% comment %} {% if condition %} {% endcomment %} - {% comment %}
+{% if condition %} +
@@ -40,26 +55,14 @@
{% trans "Actions" %}
{% endif %}
-
{% endcomment %} - {% comment %}
{% endcomment %} - {% comment %} {% if condition != None %} {% endcomment %} - -
-
-
-
- {% comment %}
+
+
+ {% if condition != None %} +
{{ condition.validation_at_work }}
{{ condition.minimum_overtime_to_approve }}
-
{{ condition.overtime_cutoff }}
{% endcomment %} - {% comment %} {% if perms.attendance.change_attendancevalidationcondition %} +
{{ condition.overtime_cutoff }}
+ {% if perms.attendance.change_attendancevalidationcondition %}
{{ condition.overtime_cutoff }}
{{ condition.auto_approve_ot|yesno:"Yes,No" }}
{% if perms.attendance.change_attendancevalidationcondition %} @@ -68,18 +71,18 @@ hx-target="#objectUpdateModalTarget" type="button" class="oh-btn oh-btn--info" data-toggle="oh-modal-toggle" data-target="#objectUpdateModal">{% trans 'Edit' %}
- {% endif %} {% endcomment %} - {% comment %}
{% endcomment %} - {% comment %} {% endif %} {% endcomment %} - {% comment %}
{% endcomment %} - {% comment %} + {% endif %} +
+ {% endif %} +
+
-
{% endcomment %} - {% comment %} {% else %} + +{% else %}
Page not found. 404.
{% trans "There is no attendance conditions at this moment." %}
-
{% endcomment %} - {% comment %} {% endif %} {% endcomment %} + +{% endif %} {% endcomment %} {% endblock %}