[UPDT] BASE: Label update for clock in/out

This commit is contained in:
Horilla
2023-10-05 14:50:52 +05:30
parent 09d8f4b921
commit 96b62b154a
2 changed files with 4 additions and 4 deletions

View File

@@ -166,11 +166,11 @@
{% if request.user.employee_get %}
{% if request.user|is_clocked_in %}
<button class="oh-btn oh-btn--warning-outline mr-2" 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">{% trans "Check-Out" %}</span>
<span class="hr-Check-In-out-text">{% trans "Check-Out" %}</span>
</button>
{% else %}
<button 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">{% trans "Check-In" %}</span>
<span class="hr-Check-In-out-text">{% trans "Check-In" %}</span>
</button>
{% endif %}
{% endif %}

View File

@@ -10,12 +10,12 @@
<div class="oh-navbar__systray">
<!-- CLOCK-IN -->
<a href="#" class="oh-navbar__clock"><ion-icon class="oh-navbar__clock-icon me-2" name="enter-outline"></ion-icon>
<span class="oh-navbar__clock-text">Clock In</span>
<span class="oh-navbar__clock-text">Check-In</span>
</a>
<!-- CLOCK-IN -->
<!-- CLOCK-OUT -->
<!-- <a href="#" class="oh-navbar__clock"><ion-icon class="oh-navbar__clock-icon me-2" name="exit-outline"></ion-icon>
<span class="oh-navbar__clock-text">Clock Out</span>
<span class="oh-navbar__clock-text">Check-Out</span>
</a> -->
<!-- CLOCK-OUT -->
<div class="oh-navbar__notifications" x-data="{openNotification: false}" @click="openNotification = true" >