[UPDT] EMPLOYEE: Fixed the naming and indendation

This commit is contained in:
Horilla
2024-12-26 16:59:47 +05:30
parent caae8ff3a9
commit 3ff47df953
2 changed files with 34 additions and 27 deletions

View File

@@ -1,30 +1,38 @@
{% extends 'index.html' %}
{% block content %}
{% load static %}
{% load i18n %}
{% extends 'index.html' %} {% block content %} {% load static %} {% load i18n %}
<div id="view-container">
<section class="oh-wrapper oh-main__topbar oh-profile-section__topbar" x-data="{searchShow: false}">
<section
class="oh-wrapper oh-main__topbar oh-profile-section__topbar"
x-data="{searchShow: false}"
>
<div class="oh-main__titlebar oh-main__titlebar--left">
<h1 class="oh-main__titlebar-title fw-bold mb-0">{% trans "New People" %}</h1>
<h1 class="oh-main__titlebar-title fw-bold mb-0">
{% trans "Add Employee" %}
</h1>
</div>
<div
class="oh-main__titlebar oh-main__titlebar--left d-flex align-items-center"
>
<ul class="oh-general__tabs oh-profile-section__tab">
<li class="oh-general__tab">
<a
href="#"
class="oh-general__tab-link oh-general__tab-link--active"
data-action="general-tab"
data-target="#personal"
>{% trans "Personal Info" %}</a
>
</li>
</ul>
</div>
</section>
<script src="{% static 'country.js' %}"></script>
<div id="personal-info">
{% include 'employee/create_form/personal_info.html' %}
</div>
<div class="oh-main__titlebar oh-main__titlebar--left d-flex align-items-center">
<ul class="oh-general__tabs oh-profile-section__tab">
<li class="oh-general__tab">
<a href="#" class="oh-general__tab-link oh-general__tab-link--active" data-action="general-tab" data-target="#personal">{% trans "Personal Info" %}</a>
</li>
</ul>
</div>
</section>
<script src="{% static 'country.js' %}"></script>
<div id="personal-info">
{% include 'employee/create_form/personal_info.html' %}
</div>
<script>
{% include 'country.js' %}
</script>
{% endblock content %}
<script>
{% include 'country.js' %}
</script>
{% endblock content %}
</div>

View File

@@ -160,8 +160,7 @@
{% if not employee.employee_user_id.is_superuser %}
<li class="oh-dropdown__item">
<form action="{% url 'employee-account-block-unblock' employee.id %}"
onsubmit="return confirm('{% trans " Do you really want to allow this employee to access
and log into this webpage?" %}');">
onsubmit="return confirm('{% trans " Do you really want to allow this employee to access and log into this webpage?" %}');">
{% csrf_token %}
<img src="{% static 'images/ui/unlock.png' %}" style="width: 30px; height: 27px;">
<button type="submit" style=" border: none; background: transparent;">