Add staff position.

main
nataly 11 months ago
parent 1598c1401b
commit a944ac1e20

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="">
<form method="POST" action="">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Comment</h1>

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" enctype="multipart/form-data" action="{% url 'add_payment_method_modal' %}">
<form method="POST" enctype="multipart/form-data" action="{% url 'add_payment_method_modal' %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Payment Method</h1>

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="">
<form method="POST" action="">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Payment</h1>

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="post" action="{% url 'deletepaymentmethodmodal' method.id %}" target="_parent">
<form method="post" action="{% url 'deletepaymentmethodmodal' method.id %}" target="_parent">
{% csrf_token %}
<div class="h-[140px] flex flex-col justify-center items-center">

@ -8,7 +8,7 @@
Edit Payment Method
</h1>
<form id="hiddenContent" method="POST" action="{% url 'editpaymentmethod' method.id %}" enctype="multipart/form-data">
<form method="POST" action="{% url 'editpaymentmethod' method.id %}" enctype="multipart/form-data">
{% csrf_token %}
<div class="w-full flex flex-col gap-5 justify-center items-center">

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="">
<form method="POST" action="">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Edit Payment</h1>

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="{% url 'update_order_status' order.id %}">
<form method="POST" action="{% url 'update_order_status' order.id %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Update Order Status</h1>

@ -16,5 +16,6 @@ urlpatterns = [
path('taskpoint/<int:point_id>/<str:task_id>/', views.delete_task_point_modal, name='deletetaskpointmodal'),
path('note/<int:note_id>', views.delete_note_modal, name='deletenotemodal'),
path('payment/', views.delete_payment_modal, name='deletepaymentmodal'),
path('staff-position/', views.delete_staff_position_modal, name='deletestaffpositionmodal'),
]

@ -164,3 +164,12 @@ def delete_payment_modal(request):
return render(request, "delete_templates/delete-payment-modal.html", context)
@staff_login_required
def delete_staff_position_modal(request):
context = {
}
return render(request, "delete_templates/delete-staff-position-modal.html", context)

@ -107,56 +107,41 @@ def edit_business(request, business_id):
@staff_login_required
def edit_staff(request, staff_id):
staff = get_object_or_404(StaffProfile, staff_id=staff_id)
positions = StaffPosition.objects.all().order_by('name')
current_position = staff.staff_position
if request.method == 'POST':
staff.user.first_name= request.POST.get('first_name')
staff.user.first_name = request.POST.get('first_name')
staff.user.last_name = request.POST.get('last_name')
staff.user.email = request.POST.get('email')
if request.POST.get('active'):
active = True
else:
active = False
active = True if request.POST.get('active') else False
staff.user.is_active = active
staff.user.save()
staff.mobile_number = request.POST.get('mobile_number')
new_position_id = request.POST.get('staff_position')
new_position = get_object_or_404(StaffPosition, id=new_position_id)
staff.staff_position = new_position
staff.active = active
staff.active = active
new_image = request.FILES.get('image')
if new_image:
staff.image = new_image
if request.POST.get('intern'):
intern = True
else:
intern = False
intern = True if request.POST.get('intern') else False
staff.intern = intern
staff.save()
return redirect('userdetails', staff_id=staff.staff_id)
context = {
'staff' : staff,
'positions' : positions,
'current_position' : current_position,
'staff': staff,
}
return render(request, 'edit_templates/edit-staff.html', context)
@staff_login_required
def edit_project(request, project_id):
project = get_object_or_404(Project, project_id=project_id)

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="{% url 'addbusinesstypemodal' %}">
<form method="POST" action="{% url 'addbusinesstypemodal' %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Business Type</h1>

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight">
<div id="hiddenContent">
<div>
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Credential</h1>
<div class="w-full flex justify-center items-center">

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="{% url 'adddepartmentmodal' %}">
<form method="POST" action="{% url 'adddepartmentmodal' %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Department</h1>

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight">
<div id="hiddenContent">
<div>
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add File</h1>
<form>

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="{% url 'addjobpositionmodal' %}">
<form method="POST" action="{% url 'addjobpositionmodal' %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Job Position</h1>

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" {% if not project %} action="{% url 'addnotemodal' %}" {% else %} action="{% url 'addprojectnotemodal' project.project_id %}" {% endif %}>
<form method="POST" {% if not project %} action="{% url 'addnotemodal' %}" {% else %} action="{% url 'addprojectnotemodal' project.project_id %}" {% endif %}>
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Note</h1>

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="{% url 'addprojecttypemodal' %}">
<form method="POST" action="{% url 'addprojecttypemodal' %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Project Type</h1>

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="{% url 'addreferencemodal' %}">
<form method="POST" action="{% url 'addreferencemodal' %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Reference</h1>

@ -68,17 +68,22 @@
</div>
</div>
<div class="w-full flex flex-col gap-3 mt-3">
<div class="w-full bg-gray-50 border border-gray-100 rounded-md flex items-center gap-3 p-3">
<div class="w-full flex flex-col gap-3 mt-3" id="positionsContainer">
<div class="w-full bg-gray-50 border border-gray-100 rounded-md flex items-center gap-3 p-3 initialPositionContainer">
<div class="w-full grid grid-cols-1 s:grid-cols-2 gap-3">
<input name="position[]" type="text"
class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md" placeholder="Position">
<select name="position[]"
class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md">
<option disabled selected>Select Position</option>
{% for position in positions %}
<option value="{{position.id}}">{{posiiton.name}}</option>
{% endfor %}
</select>
<input name="date[]" type="date"
class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md">
</div>
<div
class="w-[30px] h-[30px] rounded-full bg-secondosiblue border border-secondosiblue flex justify-center items-center gap-1 text-white cursor-pointer hover:bg-transparent hover:text-secondosiblue duration-300 removePositionOption">
class="w-[30px] h-[30px] rounded-full bg-secondosiblue border border-secondosiblue flex justify-center items-center gap-1 text-white cursor-pointer hover:bg-transparent hover:text-secondosiblue duration-300 hidden removePositionOption">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" class="w-5">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
@ -87,7 +92,7 @@
</div>
</div>
<div class="w-full bg-gray-50 shadow-md rounded-md p-3 flex justify-start items-center gap-1 cursor-pointer mt-3" id="addCategoryLanguage">
<div class="w-full bg-gray-50 shadow-md rounded-md p-3 flex justify-start items-center gap-1 cursor-pointer mt-3" id="addNewPosition">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-7 text-secondosiblue">
<path stroke-linecap="round" stroke-linejoin="round"
@ -133,4 +138,6 @@
<script type="text/javascript" src='{% static "js/inputs/upload-image-tag.js" %}'></script>
<script type="text/javascript" src='{% static "js/inputs/staff-positions.js" %}'></script>
{% endblock content %}

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight mt-5">
<form id="hiddenContent" method="POST" action="{% url 'addstatusmodal' %}">
<form method="POST" action="{% url 'addstatusmodal' %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Status</h1>

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="{% url 'addtagmodal' %}">
<form method="POST" action="{% url 'addtagmodal' %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Tag</h1>

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<div id="hiddenContent">
<div>
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add Timeline</h1>
<div class="w-full flex-col justify-center items-center">

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="{% url 'adduserstorymodal' project.project_id %}">
<form method="POST" action="{% url 'adduserstorymodal' project.project_id %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Add User Story</h1>

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="post" action="{% url 'deletebusinessmodal' business.id %}" target="_parent">
<form method="post" action="{% url 'deletebusinessmodal' business.id %}" target="_parent">
{% csrf_token %}
<div class="h-[140px] flex flex-col justify-center items-center">

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="post" action="{% url 'deletecustomermodal' customer.id %}" target="_parent">
<form method="post" action="{% url 'deletecustomermodal' customer.id %}" target="_parent">
{% csrf_token %}
<div class="h-[140px] flex flex-col justify-center items-center">

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="post" action="{% url 'deletenotemodal' note.id %}" target="_parent">
<form method="post" action="{% url 'deletenotemodal' note.id %}" target="_parent">
{% csrf_token %}
<div class="h-[140px] flex flex-col justify-center items-center">

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="post" action="" target="_parent">
<form method="post" action="" target="_parent">
{% csrf_token %}
<div class="h-[140px] flex flex-col justify-center items-center">

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="post" action="{% url 'deleteprojectmodal' project.id %}" target="_parent">
<form method="post" action="{% url 'deleteprojectmodal' project.id %}" target="_parent">
{% csrf_token %}
<div class="h-[140px] flex flex-col justify-center items-center">

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="post" action="{% url 'deleteprojectnotemodal' note.id %}" target="_parent">
<form method="post" action="{% url 'deleteprojectnotemodal' note.id %}" target="_parent">
{% csrf_token %}
<div class="h-[140px] flex flex-col justify-center items-center">

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="post" action="{% url 'deletestaffmodal' staff.id %}" target="_parent">
<form method="post" action="{% url 'deletestaffmodal' staff.id %}" target="_parent">
{% csrf_token %}
<div class="h-[140px] flex flex-col justify-center items-center">

@ -0,0 +1,30 @@
{%load static%}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href='{% static "dist/output.css" %}'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body class="font-poppinsLight">
<form method="post" action="" target="_parent">
{% csrf_token %}
<div class="h-[140px] flex flex-col justify-center items-center">
<h1 class="text-secondosiblue text-xl font-semibold text-center">Are you sure you want to delete this staff position?</h1>
<div class="w-full flex justify-center items-center mt-5 gap-5">
<button
class="w-fit bg-red-500 border border-red-500 rounded-md text-white text-base px-5 py-1 hover:bg-white hover:text-red-500 duration-300">Delete</button>
</div>
</div>
</form>
</body>
</html>

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="post" action="{% url 'deletetaskmodal' task.id %}" target="_parent">
<form method="post" action="{% url 'deletetaskmodal' task.id %}" target="_parent">
{% csrf_token %}
<div class="h-[140px] flex flex-col justify-center items-center">

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="post" action="{% url 'deleteticketmodal' ticket.id %}" target="_parent">
<form method="post" action="{% url 'deleteticketmodal' ticket.id %}" target="_parent">
{% csrf_token %}
<div class="h-[140px] flex flex-col justify-center items-center">

@ -15,7 +15,7 @@
<body class="font-poppinsLight">
<div id="hiddenContent">
<div>
<h1 class="text-secondosiblue text-2xl font-semibold text-center mb-4">Points</h1>
<div class="flex flex-col gap-5">

@ -63,9 +63,93 @@
<p class="text-gray-500 text-xl">Intern: <span
class="text-slate-800 text-xl font-semibold">{{staff.intern}}</span></p>
</div>
<div class="w-full">
<div
class=" bg-gray-200 rounded-t-md flex justify-between items-center text-white text-xl font-bold h-[50px]">
<div class="px-3">
<p class="text-secondosiblue uppercase font-bold">Positions</p>
</div>
</div>
<div class="w-full flex flex-col gap-3 mt-3" id="positionsContainer">
<div class="w-full p-3 bg-gray-50 border border-gray-100 rounded-md flex justify-between items-center gap-3">
<div class="flex flex-col">
<p class="text-gray-500">Position: <span
class="text-secondosiblue">Junior Software Engineer</span></p>
<p class="text-gray-500">Date: <span
class="text-secondosiblue">20-1-2020</span></p>
</div>
<div
class="w-[30px] h-[30px] rounded-full bg-secondosiblue border border-secondosiblue flex justify-center items-center gap-1 text-white cursor-pointer hover:bg-transparent hover:text-secondosiblue duration-300 delete" data-modal-url="{% url 'deletestaffpositionmodal' %}">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" class="w-5">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
</svg>
</div>
</div>
<div class="w-full bg-gray-50 border border-gray-100 rounded-md flex items-center gap-3 p-3 initialPositionContainer" style="display: none;">
<div class="w-full grid grid-cols-1 s:grid-cols-2 gap-3">
<select
class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md">
<option disabled selected>Select Position</option>
{% for position in positions %}
<option value="{{position.id}}">{{posiiton.name}}</option>
{% endfor %}
</select>
<input type="date"
class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md">
</div>
<div
class="w-[30px] h-[30px] rounded-full bg-secondosiblue border border-secondosiblue flex justify-center items-center gap-1 text-white cursor-pointer hover:bg-transparent hover:text-secondosiblue duration-300 removePositionOption">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" class="w-5">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
</svg>
</div>
</div>
</div>
<div class="w-full bg-gray-50 shadow-md rounded-md p-3 flex justify-start items-center gap-1 cursor-pointer mt-3" id="addNewPosition">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-7 text-secondosiblue">
<path stroke-linecap="round" stroke-linejoin="round"
d="M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
</svg>
<p class="text-secondosiblue hover:underline duration-300">Add New Position</p>
</div>
</div>
</div>
</div>
<script>
document.getElementById('addNewPosition').addEventListener('click', function () {
const container = document.getElementById('positionsContainer');
const initialPositionContainer = document.querySelector('.initialPositionContainer');
const newPositionContainer = initialPositionContainer.cloneNode(true);
newPositionContainer.classList.remove('hidden');
newPositionContainer.style.display = 'flex';
const selectElement = newPositionContainer.querySelector('select');
selectElement.name = 'position[]';
const dateInputElement = newPositionContainer.querySelector('input[type="date"]');
dateInputElement.name = 'date[]';
const removeButton = newPositionContainer.querySelector('.removePositionOption');
removeButton.addEventListener('click', function() {
newPositionContainer.remove();
});
container.appendChild(newPositionContainer);
});
</script>
<!---------------------- JS SCRIPTS -------------------->

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<div id="hiddenContent">
<div>
<h1 class="text-secondosiblue text-2xl font-semibold text-center">You are only allowed to add a status on Desktop.</h1>
</div>
</body>

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight">
<div id="hiddenContent">
<div>
<h1 class="text-secondosiblue text-2xl font-semibold text-center mb-2">Timeline</h1>
<div class="overflow-x-auto border border-gray-300 rounded-md mt-5">

@ -8,7 +8,7 @@
Edit Business Type
</h1>
<form id="hiddenContent" method="POST" action="{% url 'editbusinesstype' businesstype.id %}">
<form method="POST" action="{% url 'editbusinesstype' businesstype.id %}">
{% csrf_token %}
<div class="w-full flex flex-col justify-center items-center mt-2">

@ -8,7 +8,7 @@
Edit Department
</h1>
<form id="hiddenContent" method="POST" action="{% url 'editdepartment' department.id %}">
<form method="POST" action="{% url 'editdepartment' department.id %}">
{% csrf_token %}
<div class="w-full flex flex-col justify-center items-center mt-2">

@ -8,7 +8,7 @@
Edit Job Position
</h1>
<form id="hiddenContent" method="POST" action="{% url 'editjobposition' jobposition.id %}">
<form method="POST" action="{% url 'editjobposition' jobposition.id %}">
{% csrf_token %}
<div class="w-full flex flex-col gap-5 justify-center items-center">
<div class="w-full">

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="{% url 'editprojectstatusmodal' project.id %}">
<form method="POST" action="{% url 'editprojectstatusmodal' project.id %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Update Project Status</h1>

@ -8,7 +8,7 @@
Edit Project Type
</h1>
<form id="hiddenContent" method="POST" action="{% url 'editprojecttype' projecttype.id %}">
<form method="POST" action="{% url 'editprojecttype' projecttype.id %}">
{% csrf_token %}
<div class="w-full flex flex-col justify-center items-center mt-2">

@ -8,7 +8,7 @@
Edit Reference
</h1>
<form id="hiddenContent" method="POST" action="{% url 'editreference' reference.id %}">
<form method="POST" action="{% url 'editreference' reference.id %}">
{% csrf_token %}
<div class="w-full flex flex-col gap-5 justify-center items-center">

@ -22,7 +22,7 @@
<div class="w-full flex flex-col gap-3">
<div>
<label class="text-gray-500">Current Image:
<a href="{{staff.image.url}}" class="text-gray-400 cursor-pointer hover:text-slate-800" style="word-wrap: break-word;" target="_blank">{{staff.image.url}}</a>
<a href="{{staff.image.url}}" class="text-gray-400 cursor-pointer hover:text-secondosiblue duration-300" style="word-wrap: break-word;" target="_blank">{{staff.image.url}}</a>
</label>
</div>
@ -67,17 +67,6 @@
class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md mt-1" required>
</div>
<div class="w-full">
<label class="text-gray-500">Position:</label>
<select name="staff_position" id=""
class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md text-gray-500 mt-1">
{% for position in positions %}
<option {% if current_position and current_position.id == position.id %}selected{% endif %} value="{{position.id}}"> {{position.name}}</option>
{% endfor %}
</select>
</div>
<div class="w-full flex justify-start items-center gap-2">
<input {% if staff.active %}checked {% endif %}type="checkbox" name="active">
<p class="text-gray-500">Active</p>

@ -8,7 +8,7 @@
Edit Tag
</h1>
<form id="hiddenContent" method="POST" action="{% url 'edittag' tag.id %}">
<form method="POST" action="{% url 'edittag' tag.id %}">
{% csrf_token %}
<div class="w-full flex flex-col gap-5 justify-center items-center">

@ -13,7 +13,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="{% url 'edittaskstatusmodal' task.task_id %}">
<form method="POST" action="{% url 'edittaskstatusmodal' task.task_id %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Update Status</h1>

@ -14,7 +14,7 @@
</head>
<body class="font-poppinsLight">
<form id="hiddenContent" method="POST" action="{% url 'edit-ticket-status-modal' ticket.id %}">
<form method="POST" action="{% url 'edit-ticket-status-modal' ticket.id %}">
{% csrf_token %}
<h1 class="text-secondosiblue text-2xl font-semibold text-center">Update Ticket Status</h1>

@ -3736,6 +3736,10 @@ video {
color: rgb(255 255 255 / var(--tw-text-opacity));
}
.hover\:underline:hover {
text-decoration-line: underline;
}
.focus\:outline-none:focus {
outline: 2px solid transparent;
outline-offset: 2px;

@ -0,0 +1,15 @@
document.getElementById('addNewPosition').addEventListener('click', function () {
const container = document.getElementById('positionsContainer');
const initialPositionContainer = document.querySelector('.initialPositionContainer');
const newPositionContainer = initialPositionContainer.cloneNode(true);
newPositionContainer.classList.remove('hidden');
const removeButton = newPositionContainer.querySelector('.removePositionOption');
removeButton.classList.remove('hidden');
removeButton.addEventListener('click', function() {
newPositionContainer.remove();
});
container.appendChild(newPositionContainer);
});

@ -100,6 +100,8 @@ function initializeModalButtons() {
addButtonClickListener("deleteTicketButton", "400px", "140px");
addButtonClickListener("deletePaymentButton", "400px", "140px");
addButtonClickListener("deletePaymentMethodButton", "400px", "140px");
addButtonClickListener("delete", "400px", "140px");
// KNOWLEDGE BASE

Loading…
Cancel
Save