[UPDT] EMPLOYEE: Fixed the naming and indendation
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;">
|
||||
|
||||
Reference in New Issue
Block a user