new changes.

main
nataly 1 year ago
parent 4b8d39f10d
commit 6a291f36b2

Binary file not shown.

@ -143,4 +143,12 @@
.swiper-slide { .swiper-slide {
width: 90% !important; width: 90% !important;
} }
}
@media screen and (max-width: 650px) {
#notesContainer {
display: block;
}
} }

@ -806,8 +806,8 @@ video {
margin-top: 1.5rem; margin-top: 1.5rem;
} }
.mt-\[-63px\] { .mt-\[-50px\] {
margin-top: -63px; margin-top: -50px;
} }
.mt-\[5\%\] { .mt-\[5\%\] {
@ -951,18 +951,10 @@ video {
width: 13px; width: 13px;
} }
.w-\[15\%\] {
width: 15%;
}
.w-\[150px\] { .w-\[150px\] {
width: 150px; width: 150px;
} }
.w-\[16\.33\%\] {
width: 16.33%;
}
.w-\[160px\] { .w-\[160px\] {
width: 160px; width: 160px;
} }
@ -975,10 +967,6 @@ video {
width: 220px; width: 220px;
} }
.w-\[23\%\] {
width: 23%;
}
.w-\[25\%\] { .w-\[25\%\] {
width: 25%; width: 25%;
} }
@ -1003,10 +991,6 @@ video {
width: 30px; width: 30px;
} }
.w-\[35\%\] {
width: 35%;
}
.w-\[35px\] { .w-\[35px\] {
width: 35px; width: 35px;
} }
@ -1039,8 +1023,8 @@ video {
width: 60px; width: 60px;
} }
.w-\[74\.5\%\] { .w-\[70px\] {
width: 74.5%; width: 70px;
} }
.w-\[80\%\] { .w-\[80\%\] {
@ -1233,10 +1217,6 @@ video {
gap: 1.25rem; gap: 1.25rem;
} }
.gap-\[2\.5\%\] {
gap: 2.5%;
}
.gap-y-2 { .gap-y-2 {
row-gap: 0.5rem; row-gap: 0.5rem;
} }
@ -2264,6 +2244,12 @@ video {
} }
} }
@media screen and (max-width: 650px) {
#notesContainer {
display: block;
}
}
.hover\:bg-blue-500:hover { .hover\:bg-blue-500:hover {
--tw-bg-opacity: 1; --tw-bg-opacity: 1;
background-color: rgb(59 130 246 / var(--tw-bg-opacity)); background-color: rgb(59 130 246 / var(--tw-bg-opacity));
@ -2319,10 +2305,34 @@ video {
} }
@media (min-width: 650px) { @media (min-width: 650px) {
.s\:mt-\[-63px\] {
margin-top: -63px;
}
.s\:flex {
display: flex;
}
.s\:hidden {
display: none;
}
.s\:h-\[100px\] {
height: 100px;
}
.s\:h-\[50px\] { .s\:h-\[50px\] {
height: 50px; height: 50px;
} }
.s\:h-\[55px\] {
height: 55px;
}
.s\:w-\[100px\] {
width: 100px;
}
.s\:w-\[300px\] { .s\:w-\[300px\] {
width: 300px; width: 300px;
} }
@ -2357,6 +2367,11 @@ video {
padding-right: 2.25rem; padding-right: 2.25rem;
} }
.s\:text-3xl {
font-size: 1.875rem;
line-height: 2.25rem;
}
.s\:text-xl { .s\:text-xl {
font-size: 1.25rem; font-size: 1.25rem;
line-height: 1.75rem; line-height: 1.75rem;
@ -2437,21 +2452,9 @@ video {
position: fixed; position: fixed;
} }
.xlg1\:block {
display: block;
}
.xlg1\:hidden {
display: none;
}
.xlg1\:w-\[300px\] { .xlg1\:w-\[300px\] {
width: 300px; width: 300px;
} }
.xlg1\:w-\[74\.5\%\] {
width: 74.5%;
}
} }
@media (min-width: 1300px) { @media (min-width: 1300px) {
@ -2481,6 +2484,10 @@ video {
display: none; display: none;
} }
.xxlg1\:w-\[74\.5\%\] {
width: 74.5%;
}
.xxlg1\:w-\[75\%\] { .xxlg1\:w-\[75\%\] {
width: 75%; width: 75%;
} }

@ -0,0 +1,13 @@
document.addEventListener("DOMContentLoaded", function () {
var showReportButtons = document.querySelectorAll(".showReportButton");
// Iterate through each button and attach the click event
showReportButtons.forEach(function (button) {
button.addEventListener("click", function () {
// Find the related reportContainer based on the button's parent
var reportContainer = button.closest(".daily-report").querySelector(".reportContainer");
reportContainer.classList.toggle("hidden");
});
});
});

@ -2,7 +2,7 @@
{%load static%} {%load static%}
{% block content %} {% block content %}
<div class="w-full px-10 mb-4"> <div class="w-full px-5 s:px-9 mb-4">
<div class="w-full h-full shadow-md rounded-md mt-5 py-5 px-3 bg-white"> <div class="w-full h-full shadow-md rounded-md mt-5 py-5 px-3 bg-white">
<h1 class="text-3xl text-slate-800 text-center font-semibold"> <h1 class="text-3xl text-slate-800 text-center font-semibold">
Add Business Add Business
@ -96,7 +96,7 @@
<div class="w-full flex justify-center items-center mt-3"> <div class="w-full flex justify-center items-center mt-3">
<button type="submit" <button type="submit"
class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-base s:text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add
Business</button> Business</button>
</div> </div>
</form> </form>

@ -2,7 +2,7 @@
{%load static%} {%load static%}
{% block content %} {% block content %}
<div class="w-full px-10 mb-4"> <div class="w-full px-5 s:px-9 mb-4">
<div class="w-full h-full shadow-md rounded-md mt-5 py-5 px-3 bg-white"> <div class="w-full h-full shadow-md rounded-md mt-5 py-5 px-3 bg-white">
<h1 class="text-3xl text-slate-800 text-center font-semibold"> <h1 class="text-3xl text-slate-800 text-center font-semibold">
Add Customer Add Customer
@ -99,7 +99,7 @@
<div class="w-full flex justify-center items-center mt-3"> <div class="w-full flex justify-center items-center mt-3">
<button type="submit" <button type="submit"
class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-base s:text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add
Customer</button> Customer</button>
</div> </div>
</div> </div>

@ -2,7 +2,7 @@
{%load static%} {%load static%}
{% block content %} {% block content %}
<div class="w-full px-10 mb-4"> <div class="w-full px-5 s:px-9 mb-4">
<div class="w-full bg-white h-fit shadow-md rounded-md p-5"> <div class="w-full bg-white h-fit shadow-md rounded-md p-5">
<h1 class="text-3xl text-slate-800 text-center font-semibold"> <h1 class="text-3xl text-slate-800 text-center font-semibold">
Add Daily Report Add Daily Report
@ -18,7 +18,7 @@
<div class="w-full flex justify-center items-center mt-3"> <div class="w-full flex justify-center items-center mt-3">
<button type="submit" <button type="submit"
class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add</button> class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-base s:text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add</button>
</div> </div>
</form> </form>
</div> </div>

@ -3,7 +3,7 @@
{% block content %} {% block content %}
<div class="w-full px-10 mb-4"> <div class="w-full px-5 s:px-9 mb-4">
<div class="w-full h-full shadow-md rounded-md mt-5 py-5 px-3 bg-white"> <div class="w-full h-full shadow-md rounded-md mt-5 py-5 px-3 bg-white">
<div class="flex justify-center items-center gap-4"> <div class="flex justify-center items-center gap-4">
<h1 class="text-3xl text-slate-800 text-center font-semibold"> <h1 class="text-3xl text-slate-800 text-center font-semibold">
@ -17,7 +17,7 @@
<form method="POST" action="{% url 'save_staff' %}" enctype="multipart/form-data"> <form method="POST" action="{% url 'save_staff' %}" enctype="multipart/form-data">
{% csrf_token %} {% csrf_token %}
<div class="w-full flex flex-col gap-3 justify-center items-center mt-5"> <div class="w-full flex flex-col gap-3 justify-center items-center mt-5">
<div class="w-[100px] h-[100px] rounded-full border border-gray-200" id="image-container"> <div class="w-[70px] s:w-[100px] h-[70px] s:h-[100px] rounded-full border border-gray-200" id="image-container">
<img src="{% static 'images/default-user.png' %}" alt="" srcset="" id="" <img src="{% static 'images/default-user.png' %}" alt="" srcset="" id=""
class="rounded-full w-full h-full"> class="rounded-full w-full h-full">
</div> </div>
@ -128,7 +128,7 @@
<div class="w-full flex justify-center items-center mt-3"> <div class="w-full flex justify-center items-center mt-3">
<button type="submit" <button type="submit"
class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-base s:text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add
Staff</button> Staff</button>
</div> </div>
</div> </div>
@ -136,6 +136,8 @@
</div> </div>
</div> </div>
</div> </div>
<!-- POPUP MODAL --> <!-- POPUP MODAL -->
<div class="w-full h-full bg-black bg-opacity-40 z-20 fixed justify-center items-center hidden" id="popUpModal"> <div class="w-full h-full bg-black bg-opacity-40 z-20 fixed justify-center items-center hidden" id="popUpModal">
<div class="w-[95%] md:w-fit h-fit bg-white rounded-md p-9 relative"> <div class="w-[95%] md:w-fit h-fit bg-white rounded-md p-9 relative">

@ -2,7 +2,7 @@
{%load static%} {%load static%}
{% block content %} {% block content %}
<div class="w-full px-10 mb-4"> <div class="w-full px-5 s:px-9 mb-4">
<div class="w-full h-full shadow-md rounded-md mt-5 py-5 px-3 bg-white"> <div class="w-full h-full shadow-md rounded-md mt-5 py-5 px-3 bg-white">
<h1 class="text-3xl text-slate-800 text-center font-semibold"> <h1 class="text-3xl text-slate-800 text-center font-semibold">
Create Project Create Project
@ -72,7 +72,7 @@
<input name="requirements" type="text" placeholder="Requirement" <input name="requirements" type="text" placeholder="Requirement"
class="w-full p-3 border border-gray-300 rounded-md bg-transparent outline-none"> class="w-full p-3 border border-gray-300 rounded-md bg-transparent outline-none">
<button <button
class="w-full h-[55px] rounded-md bg-gray-300 border-none outline-none shadow-md text-white text-xl cursor-pointer py-2" class="w-full h-[40px] s:h-[55px] rounded-md bg-gray-300 border-none outline-none shadow-md text-white text-xl cursor-pointer py-2"
id="removeReqButton" type="button"> id="removeReqButton" type="button">
<i class="fa fa-minus"></i> <i class="fa fa-minus"></i>
</button> </button>
@ -80,7 +80,7 @@
</div> </div>
<button <button
class="w-full h-[55px] rounded-md bg-gray-400 border-none outline-none shadow-md text-white text-xl cursor-pointer py-2 mt-2" class="w-full h-[40px] s:h-[55px] rounded-md bg-gray-400 border-none outline-none shadow-md text-white text-xl cursor-pointer py-2 mt-2"
id="addReqButton" type="button"> id="addReqButton" type="button">
<i class="fa fa-plus"></i> <i class="fa fa-plus"></i>
</button> </button>
@ -120,13 +120,15 @@
</div> </div>
<div class="w-full flex justify-center items-center mt-3"> <div class="w-full flex justify-center items-center mt-3">
<button type="submit" <button type="submit"
class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-base s:text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add
Project</button> Project</button>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
<!-- POPUP MODAL --> <!-- POPUP MODAL -->
<div class="w-full h-full bg-black bg-opacity-40 z-20 fixed justify-center items-center hidden" id="popUpModal"> <div class="w-full h-full bg-black bg-opacity-40 z-20 fixed justify-center items-center hidden" id="popUpModal">
<div class="w-[95%] md:w-fit h-fit bg-white rounded-md p-9 relative"> <div class="w-[95%] md:w-fit h-fit bg-white rounded-md p-9 relative">

@ -4,7 +4,7 @@
<!-- IN THIS TASK FORM THE TASK DOESN'T BELONG NEITHER TO APROJECT OR EPIC, WE REAHC THIS FORM FROM THE TASKS.HTML --> <!-- IN THIS TASK FORM THE TASK DOESN'T BELONG NEITHER TO APROJECT OR EPIC, WE REAHC THIS FORM FROM THE TASKS.HTML -->
<div class="w-full px-10 mb-4"> <div class="w-full px-5 s:px-9 mb-4">
<div class="w-full h-full shadow-md rounded-md mt-5 py-5 px-3 bg-white"> <div class="w-full h-full shadow-md rounded-md mt-5 py-5 px-3 bg-white">
<h1 class="text-3xl text-slate-800 text-center font-semibold"> <h1 class="text-3xl text-slate-800 text-center font-semibold">
Create Task Create Task
@ -99,13 +99,15 @@
<div class="w-full flex justify-center items-center mt-3"> <div class="w-full flex justify-center items-center mt-3">
<button <button
class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add class="w-fit py-1 px-3 bg-blue-500 rounded-md outline-none text-white border border-blue-500 text-base s:text-xl cursor-pointer hover:bg-white hover:text-blue-500">Add
Task</button> Task</button>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- POPUP MODAL --> <!-- POPUP MODAL -->
<div class="w-full h-full bg-black bg-opacity-40 z-20 fixed justify-center items-center hidden" id="popUpModal"> <div class="w-full h-full bg-black bg-opacity-40 z-20 fixed justify-center items-center hidden" id="popUpModal">
<div class="w-[95%] md:w-fit h-fit bg-white rounded-md p-9 relative"> <div class="w-[95%] md:w-fit h-fit bg-white rounded-md p-9 relative">

@ -2,79 +2,99 @@
{%load static%} {%load static%}
{% block title %}My Projects{% endblock %} {% block title %}My Projects{% endblock %}
{% block content %} {% block content %}
<!-- USERS ACTIVITIES ON MOBILE -->
<div class="w-[55px] h-[55px] bg-slate-700 rounded-full fixed xxlg1:hidden bottom-3 right-3 p-2 flex justify-center items-center cursor-pointer usersActivityIcon z-20"
data-modal-url="{% url 'getupdatedactivities' %}">
<img src="{% static 'images/usersactivity.png' %}" alt="Users">
</div>
<!-- NOTES SECTION --> <!-- NOTES SECTION -->
<div class="w-full h-fit flex justify-between items-center px-10 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="relative w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex justify-between items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<p class="text-slate-700">Send an Email to Salim.</p> <p class="text-base text-gray-500">Recent Note:</p>
<div class="flex justify-start items-center gap-2">
<div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div>
</div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="flex justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
Notes</button> Notes</button>
<button <button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex justify-center items-center shadow-md" class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex justify-center items-center shadow-md addNoteButton"
id="addNoteButton"> data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i> <i class="fa fa-plus"></i>
</button> </button>
</div> </div>
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit relative hidden justify-start gap-3 items-center mt-5 overflow-hidden overflow-x-auto" <div class="w-full h-fit mt-5 hidden" id="notesContainer">
id="notesContainer">
<div class="w-[16.33%] h-[150px] shadow-xl bg-yellow-200 p-5"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
<p class="text-base text-slate-800">Send an Email to Salim.</p> {% for note in notes %}
</div> <div class="h-[150px] shadow-sm p-5" style="background-color: {{note.color}}">
<p class="text-base text-slate-800">{{note.text}}</p>
<div class="w-[16.33%] h-[150px] shadow-xl bg-pink-200 top-90 right-10 p-5"> </div>
<p class="text-base text-slate-80">Contact the client.</p> {% endfor %}
</div> </div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-green-200 top-90 right-10 p-5"> <div class="w-full black lg:hidden">
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> <div class="swiper-container mt-5">
</div> <div class="swiper-wrapper">
{% for note in notes %}
<div class="w-[16.33%] h-[150px] shadow-xl bg-blue-200 top-90 right-10 p-5"> <div class="swiper-slide">
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> <div class="w-full h-[150px] p-3 flex justify-start items-start"
</div> style="background-color: {{note.color}}">
{{note.text}}
<div class="w-[16.33%] h-[150px] shadow-xl bg-purple-200 top-90 right-10 p-5"> </div>
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> </div>
</div> {% endfor %}
</div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-yellow-200 top-90 right-10 p-5"> </div>
<p class="text-base text-slate-80">Add daily report at the end of the day.</p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- BUSINESS DETAIL AND USERS ACTIVITY SECTION --> <!-- BUSINESS DETAIL AND USERS ACTIVITY SECTION -->
<div class="w-full flex justify-between gap-[2.5%] px-10 pb-5"> <div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5">
<!-- LEFT SIDE / BUSINESS DETAIL SECTION --> <!-- LEFT SIDE / BUSINESS DETAIL SECTION -->
<div class="w-[74.5%] bg-white h-fit rounded-md shadow-md p-5"> <div class="w-full xxlg1:w-[75%] bg-white h-fit rounded-md shadow-md p-5">
<div class="w-full bg-slate-700 rounded-t-md flex flex-col justify-center items-center py-2 gap-3 mt-[50px]"> <div class="w-full bg-slate-700 rounded-t-md flex flex-col justify-center items-center py-2 gap-3 mt-[50px]">
<div class="w-[100px] h-[100px] rounded-full mt-[-63px] border border-gray-300"> <div class="w-[70px] s:w-[100px] h-[70px] s:h-[100px] rounded-full mt-[-50px] s:mt-[-63px] border border-gray-300">
<img src="{{business.logo.url}}" alt="" class="w-full h-full object-cover rounded-full"> <img src="{{business.logo.url}}" alt="" class="w-full h-full object-cover rounded-full">
</div> </div>
<h1 class="text-3xl text-white font-semibold">{{business.name}}</h1> <h1 class="text-xl s:text-3xl text-white font-semibold">{{business.name}}</h1>
</div> </div>
<div class="w-full h-[70px] flex justify-end items-center bg-gray-100 shadow-md rounded-md px-3 py-1 mt-4"> <div class="w-full h-fit flex justify-end items-center bg-gray-100 shadow-md rounded-md px-3 py-3 mt-4">
<div class="flex justify-end items-center gap-3"> <div class="w-full s:w-fit flex flex-col s:flex-row justify-end items-center gap-3">
<button <button
class="w-fit text-base px-3 py-2 bg-red-500 text-white outline-none border border-red-500 rounded-md cursor-pointer hover:bg-white hover:text-red-500">Delete class="w-full s:w-fit text-base px-3 py-2 bg-red-500 text-white outline-none border border-red-500 rounded-md cursor-pointer hover:bg-white hover:text-red-500">Delete
Business</button> Business</button>
<a href="{% url 'editbusiness' business.business_id %}"> <a href="{% url 'editbusiness' business.business_id %}" class="w-full s:w-fit">
<button <button
class="w-fit text-base px-3 py-2 bg-blue-500 text-white outline-none border border-blue-500 rounded-md cursor-pointer hover:bg-white hover:text-blue-500">Edit class="w-full s:w-fit text-base px-3 py-2 bg-blue-500 text-white outline-none border border-blue-500 rounded-md cursor-pointer hover:bg-white hover:text-blue-500">Edit
Business</button> Business</button>
</a> </a>
</div> </div>
</div> </div>
<div class="w-full flex flex-col gap-4 mt-5"> <div class="w-full flex flex-col gap-4 mt-5">
<div> <div>
<p class="text-gray-500 text-xl">Name: <span class="text-slate-800 text-xl font-semibold">{{business.name}}</span> <p class="text-gray-500 text-xl">Name: <span class="text-slate-800 text-xl font-semibold">{{business.name}}</span>
@ -126,11 +146,11 @@
</div> </div>
<!-- RIGHT SIDE / USERS ACTIVITY --> <!-- RIGHT SIDE / USERS ACTIVITY -->
<div class="w-[23%] bg-white h-fit rounded-md shadow-md p-5"> <div class="hidden xxlg1:block w-[25%] bg-white h-[800px] overflow-y-auto overflow-hidden rounded-md shadow-md p-5">
<h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1> <h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1>
<div class="w-full h-fit mt-2" id="activitiesContainer"> <div class="w-full h-fit mt-2" id="activitiesContainer">
{% include 'recent-activities.html' %} {% include 'recent-activities.html' %}
</div> </div>
</div> </div>

@ -2,91 +2,113 @@
{%load static%} {%load static%}
{% block title %}My Projects{% endblock %} {% block title %}My Projects{% endblock %}
{% block content %} {% block content %}
<!-- USERS ACTIVITIES ON MOBILE -->
<div class="w-[55px] h-[55px] bg-slate-700 rounded-full fixed xxlg1:hidden bottom-3 right-3 p-2 flex justify-center items-center cursor-pointer usersActivityIcon z-20"
data-modal-url="{% url 'getupdatedactivities' %}">
<img src="{% static 'images/usersactivity.png' %}" alt="Users">
</div>
<!-- NOTES SECTION --> <!-- NOTES SECTION -->
<div class="w-full h-fit flex justify-between items-center px-10 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="relative w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex justify-between items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<p class="text-slate-700">Send an Email to Salim.</p> <p class="text-base text-gray-500">Recent Note:</p>
<div class="flex justify-start items-center gap-2">
<div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div>
</div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="flex justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
Notes</button> Notes</button>
<button <button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex justify-center items-center shadow-md" class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex justify-center items-center shadow-md addNoteButton"
id="addNoteButton"> data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i> <i class="fa fa-plus"></i>
</button> </button>
</div> </div>
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit relative hidden justify-start gap-3 items-center mt-5 overflow-hidden overflow-x-auto" <div class="w-full h-fit mt-5 hidden" id="notesContainer">
id="notesContainer">
<div class="w-[16.33%] h-[150px] shadow-xl bg-yellow-200 p-5">
<p class="text-base text-slate-800">Send an Email to Salim.</p>
</div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-pink-200 top-90 right-10 p-5">
<p class="text-base text-slate-80">Contact the client.</p>
</div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-green-200 top-90 right-10 p-5"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> {% for note in notes %}
</div> <div class="h-[150px] shadow-sm p-5" style="background-color: {{note.color}}">
<p class="text-base text-slate-800">{{note.text}}</p>
<div class="w-[16.33%] h-[150px] shadow-xl bg-blue-200 top-90 right-10 p-5"> </div>
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> {% endfor %}
</div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-purple-200 top-90 right-10 p-5">
<p class="text-base text-slate-80">Add daily report at the end of the day.</p>
</div> </div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-yellow-200 top-90 right-10 p-5"> <div class="w-full black lg:hidden">
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> <div class="swiper-container mt-5">
<div class="swiper-wrapper">
{% for note in notes %}
<div class="swiper-slide">
<div class="w-full h-[150px] p-3 flex justify-start items-start"
style="background-color: {{note.color}}">
{{note.text}}
</div>
</div>
{% endfor %}
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- CUSTOMER DETAIL AND USERS ACTIVITY SECTION --> <!-- CUSTOMER DETAIL AND USERS ACTIVITY SECTION -->
<div class="w-full flex justify-between gap-[2.5%] px-10 pb-5"> <div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5">
<!-- LEFT SIDE / CUSTOMER DETAIL SECTION --> <!-- LEFT SIDE / CUSTOMER DETAIL SECTION -->
<div class="w-[74.5%] bg-white h-fit rounded-md shadow-md p-5"> <div class="w-full xxlg1:w-[75%] bg-white h-fit rounded-md shadow-md p-5">
{% if customer.status == 'Active' %} {% if customer.status == 'Active' %}
<div class="w-full bg-green-700 rounded-t-md flex flex-col justify-center items-center py-2"> <div class="w-full bg-green-700 rounded-t-md flex flex-col justify-center items-center py-3">
<h1 class="text-3xl text-white font-semibold">{{customer.first_name}} {{customer.last_name}}</h1> <h1 class="text-3xl text-white font-semibold">{{customer.first_name}} {{customer.last_name}}</h1>
<p class="text-white text-base">{{customer.customer_id}}</p> <p class="text-white text-base">{{customer.customer_id}}</p>
</div> </div>
{% endif %} {% endif %}
{% if customer.status == 'Suspended' %} {% if customer.status == 'Suspended' %}
<div class="w-full bg-red-500 rounded-t-md flex flex-col justify-center items-center py-2"> <div class="w-full bg-red-500 rounded-t-md flex flex-col justify-center items-center py-3">
<h1 class="text-3xl text-white font-semibold">{{customer.first_name}} {{customer.last_name}}</h1> <h1 class="text-3xl text-white font-semibold">{{customer.first_name}} {{customer.last_name}}</h1>
<p class="text-white text-base">{{customer.customer_id}}</p> <p class="text-white text-base">{{customer.customer_id}}</p>
</div> </div>
{% endif %} {% endif %}
{% if customer.status == 'Terminated' %} {% if customer.status == 'Terminated' %}
<div class="w-full bg-gray-500 rounded-t-md flex flex-col justify-center items-center py-2"> <div class="w-full bg-gray-500 rounded-t-md flex flex-col justify-center items-center py-3">
<h1 class="text-3xl text-white font-semibold">{{customer.first_name}} {{customer.last_name}}</h1> <h1 class="text-3xl text-white font-semibold">{{customer.first_name}} {{customer.last_name}}</h1>
<p class="text-white text-base">{{customer.customer_id}}</p> <p class="text-white text-base">{{customer.customer_id}}</p>
</div> </div>
{% endif %} {% endif %}
<div class="w-full h-[70px] flex justify-end items-center bg-gray-100 shadow-md rounded-md px-3 py-1 mt-4">
<div class="flex justify-end items-center gap-3"> <div class="w-full h-fit flex justify-end items-center bg-gray-100 shadow-md rounded-md px-3 py-3 mt-3">
<div class="w-full s:w-fit flex flex-col s:flex-row justify-end items-center gap-3">
<button <button
class="w-fit text-base px-3 py-2 bg-red-500 text-white outline-none border border-red-500 rounded-md cursor-pointer hover:bg-white hover:text-red-500">Delete class="w-full s:w-fit text-base px-3 py-2 bg-red-500 text-white outline-none border border-red-500 rounded-md cursor-pointer hover:bg-white hover:text-red-500">Delete
Customer</button> Customer</button>
<a href="{% url 'editcustomer' customer.customer_id %}"> <a href="{% url 'editcustomer' customer.customer_id %}" class="w-full s:w-fit">
<button <button
class="w-fit text-base px-3 py-2 bg-blue-500 text-white outline-none border border-blue-500 rounded-md cursor-pointer hover:bg-white hover:text-blue-500">Edit class="w-full s:w-fit text-base px-3 py-2 bg-blue-500 text-white outline-none border border-blue-500 rounded-md cursor-pointer hover:bg-white hover:text-blue-500">Edit
Customer</button> Customer</button>
</a> </a>
</div> </div>
</div> </div>
<div class="w-full flex flex-col gap-4 mt-5"> <div class="w-full flex flex-col gap-4 mt-5">
<div> <div>
<p class="text-gray-500 text-xl">First Name: <span <p class="text-gray-500 text-xl">First Name: <span
@ -102,13 +124,13 @@
<p class="text-gray-500 text-xl">Email: <span <p class="text-gray-500 text-xl">Email: <span
class="text-slate-800 text-xl font-semibold">{{customer.user.email}}</span></p> class="text-slate-800 text-xl font-semibold">{{customer.user.email}}</span></p>
</div> </div>
{% if customer.personal_website %} {% if customer.personal_website %}
<div> <div>
<p class="text-gray-500 text-xl">Personal Website: <span <p class="text-gray-500 text-xl">Personal Website: <span
class="text-slate-800 text-xl font-semibold">{{customer.personal_website}}</span></p> class="text-slate-800 text-xl font-semibold">{{customer.personal_website}}</span></p>
</div> </div>
{% endif %} {% endif %}
{% if customer.status == 'Active' %} {% if customer.status == 'Active' %}
<div> <div>
@ -141,74 +163,101 @@
<!-- BUSINESS --> <!-- BUSINESS -->
<div class="mt-4"> <div class="mt-5 relative">
<p class="text-gray-500 text-xl">Business:</p> <div
<div class="w-full px-4"> class=" bg-slate-700 border border-slate-700 rounded-t-md flex justify-between items-center text-white text-xl font-bold h-[50px]">
<div class="w-full border-t border-x border-gray-300 rounded-t-md mt-3"> <div class="px-3">
<!-- HEADER --> <p class="text-white uppercase font-bold">Businesses</p>
<div class="w-full h-[60px] flex items-center justify-between"> </div>
<div class="w-[35%] h-full border-r border-gray-300 flex justify-center items-center">
<p class="text-sm">Name</p> <a href="{% url 'addbusiness' %}" class="h-full">
</div> <button
<div class="w-[30%] h-full border-r border-gray-300 flex justify-center items-center"> class="h-full rounded-tr-md px-4 bg-gray-300 text-slate-700 text-[18px] outline-none border-none cursor-pointer flex justify-center items-center">
<p class="text-sm">Business Type</p> <i class="fa fa-plus"></i>
</div> </button>
<div class="w-[20%] h-full border-r border-gray-300 flex justify-center items-center"> </a>
<p class="text-sm">Financial number</p> </div>
</div>
<div class="w-[15%] h-full flex justify-center items-center"> <div class="overflow-x-auto border border-gray-300 rounded-b-md">
<p class="text-sm">Actions</p> <table class="min-w-full divide-y">
</div> <!-- TABLE HEADER -->
</div> <thead class="bg-gray-50">
<tr>
<th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap">
Name
</th>
<th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap">
Business Type
</th>
<th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap">
Financial Number
</th>
<th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase whitespace-nowrap">
Actions
</th>
</tr>
</thead>
<!-- BODY --> <!-- TABLE BODY -->
<div class="w-full border-t border-gray-300"> <tbody class="bg-white divide-y divide-gray-200">
<!-- 1st row -->
{% if customer.business %} {% if customer.business %}
<!-- ROW --> <tr>
<div class="w-full h-[50px] flex justify-between items-center border-b border-gray-300"> <td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<div class="w-[35%] h-full border-r border-gray-300 flex justify-center items-center"> <p class="text-slate-800">{{customer.business.name}}</p>
<p class="text-sm">{{customer.business.name}}</p> </td>
</div>
<div class="w-[30%] h-full border-r border-gray-300 flex justify-center items-center"> <td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<p class="text-sm">{{customer.business.business_type}}</p> <p class="text-slate-800">{{customer.business.business_type}}</p>
</div> </td>
<div class="w-[20%] h-full border-r border-gray-300 flex justify-center items-center">
<p class="text-sm">{{customer.business.financial_number}}</p> <td class="px-6 py-4 text-center text-sm border-r border-gray-300">
</div> <p class="text-slate-800">{{customer.business.financial_number}}</p>
<div class="w-[15%] h-full flex justify-center items-center gap-3"> </td>
<a href="{% url 'businessdetails' customer.business.business_id %}">
<div class="text-[18px] text-blue-500 cursor-pointer"> <td class="px-6 py-4 text-center text-sm">
<i class="fa fa-eye"></i> <div class="flex justify-center items-center gap-3">
</div> <a href="{% url 'businessdetails' customer.business.business_id %}">
</a> <div class="text-[15px] text-blue-500 cursor-pointer">
<a href="{% url 'editbusiness' %}"> <i class="fa fa-edit"></i>
<div class="text-[18px] text-blue-500 cursor-pointer"> </div>
<i class="fa fa-edit"></i> </a>
<a href="{% url 'editbusiness' %}">
<div class="text-[15px] text-blue-500 cursor-pointer">
<i class="fa fa-edit"></i>
</div>
</a>
<div class="text-[15px] text-red-500 cursor-pointer">
<i class="fa fa-trash"></i>
</div> </div>
</a>
<div class="text-[18px] text-red-500 cursor-pointer">
<i class="fa fa-trash"></i>
</div> </div>
</div> </td>
</div> </tr>
{% else %}
<tr>
<td colspan="3" class="px-6 py-4 text-center text-sm text-slate-800">
No Business For {{customer.user.first_name}} {{customer.user.last_name}}
</td>
</tr>
{% endif %} {% endif %}
</div> </tbody>
<div class="w-full"> </table>
<a href="{% url 'addbusiness' %}">
<button class="w-full border-b border-gray-300 text-gray-500 py-3 bg-gray-100">ADD BUSINESS</button>
</a>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
<!-- RIGHT SIDE / USERS ACTIVITY --> <!-- RIGHT SIDE / USERS ACTIVITY -->
<div class="w-[23%] bg-white h-fit rounded-md shadow-md p-5"> <div class="hidden xxlg1:block w-[25%] bg-white h-[800px] overflow-y-auto overflow-hidden rounded-md shadow-md p-5">
<h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1> <h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1>
<div class="w-full h-fit mt-2" id="activitiesContainer"> <div class="w-full h-fit mt-2" id="activitiesContainer">
{% include 'recent-activities.html' %} {% include 'recent-activities.html' %}
</div> </div>
</div> </div>

@ -2,8 +2,8 @@
{%load static%} {%load static%}
{% block content %} {% block content %}
<!-- USERS ACTIVITIES ON MOBILE -->
<div class="w-[55px] h-[55px] bg-slate-700 rounded-full fixed xlg1:hidden bottom-3 right-3 p-2 flex justify-center items-center cursor-pointer usersActivityIcon z-20" <div class="w-[55px] h-[55px] bg-slate-700 rounded-full fixed xxlg1:hidden bottom-3 right-3 p-2 flex justify-center items-center cursor-pointer usersActivityIcon z-20"
data-modal-url="{% url 'getupdatedactivities' %}"> data-modal-url="{% url 'getupdatedactivities' %}">
<img src="{% static 'images/usersactivity.png' %}" alt="Users"> <img src="{% static 'images/usersactivity.png' %}" alt="Users">
</div> </div>
@ -80,7 +80,7 @@
<!-- PROJECT DETAIL AND USERS ACTIVITY SECTION --> <!-- PROJECT DETAIL AND USERS ACTIVITY SECTION -->
<div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5"> <div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5">
<!-- LEFT SIDE / PROJECT DETAIL SECTION --> <!-- LEFT SIDE / PROJECT DETAIL SECTION -->
<div class="w-full xlg1:w-[74.5%] bg-white h-fit rounded-md shadow-md p-5"> <div class="w-full xxlg1:w-[74.5%] bg-white h-fit rounded-md shadow-md p-5">
{% if project.status == 'Completed' %} {% if project.status == 'Completed' %}
<div class="w-full bg-green-700 rounded-t-md flex flex-col justify-center items-center py-2"> <div class="w-full bg-green-700 rounded-t-md flex flex-col justify-center items-center py-2">
<h1 class="text-3xl text-white font-semibold">{{project.name}}</h1> <h1 class="text-3xl text-white font-semibold">{{project.name}}</h1>
@ -453,7 +453,7 @@
<!-- RIGHT SIDE / USERS ACTIVITY --> <!-- RIGHT SIDE / USERS ACTIVITY -->
<div class="hidden xlg1:block w-[25%] bg-white h-fit rounded-md shadow-md p-5"> <div class="hidden xxlg1:block w-[25%] bg-white h-fit rounded-md shadow-md p-5">
<h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1> <h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1>
<div class="w-full h-fit mt-2" id="activitiesContainer"> <div class="w-full h-fit mt-2" id="activitiesContainer">

@ -2,76 +2,95 @@
{%load static%} {%load static%}
{% block title %}My Projects{% endblock %} {% block title %}My Projects{% endblock %}
{% block content %} {% block content %}
<!-- USERS ACTIVITIES ON MOBILE -->
<div class="w-[55px] h-[55px] bg-slate-700 rounded-full fixed xxlg1:hidden bottom-3 right-3 p-2 flex justify-center items-center cursor-pointer usersActivityIcon z-20"
data-modal-url="{% url 'getupdatedactivities' %}">
<img src="{% static 'images/usersactivity.png' %}" alt="Users">
</div>
<!-- NOTES SECTION --> <!-- NOTES SECTION -->
<div class="w-full h-fit flex justify-between items-center px-10 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="relative w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex justify-between items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<p class="text-slate-700">Send an Email to Salim.</p> <p class="text-base text-gray-500">Recent Note:</p>
<div class="flex justify-start items-center gap-2">
<div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div>
</div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="flex justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
Notes</button> Notes</button>
<button <button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex justify-center items-center shadow-md" class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex justify-center items-center shadow-md addNoteButton"
id="addNoteButton"> data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i> <i class="fa fa-plus"></i>
</button> </button>
</div> </div>
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit relative hidden justify-start gap-3 items-center mt-5 overflow-hidden overflow-x-auto" <div class="w-full h-fit mt-5 hidden" id="notesContainer">
id="notesContainer">
<div class="w-[16.33%] h-[150px] shadow-xl bg-yellow-200 p-5"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
<p class="text-base text-slate-800">Send an Email to Salim.</p> {% for note in notes %}
</div> <div class="h-[150px] shadow-sm p-5" style="background-color: {{note.color}}">
<p class="text-base text-slate-800">{{note.text}}</p>
<div class="w-[16.33%] h-[150px] shadow-xl bg-pink-200 top-90 right-10 p-5"> </div>
<p class="text-base text-slate-80">Contact the client.</p> {% endfor %}
</div> </div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-green-200 top-90 right-10 p-5"> <div class="w-full black lg:hidden">
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> <div class="swiper-container mt-5">
</div> <div class="swiper-wrapper">
{% for note in notes %}
<div class="w-[16.33%] h-[150px] shadow-xl bg-blue-200 top-90 right-10 p-5"> <div class="swiper-slide">
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> <div class="w-full h-[150px] p-3 flex justify-start items-start"
</div> style="background-color: {{note.color}}">
{{note.text}}
<div class="w-[16.33%] h-[150px] shadow-xl bg-purple-200 top-90 right-10 p-5"> </div>
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> </div>
</div> {% endfor %}
</div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-yellow-200 top-90 right-10 p-5"> </div>
<p class="text-base text-slate-80">Add daily report at the end of the day.</p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- USER DETAIL AND USERS ACTIVITY SECTION --> <!-- USER DETAIL AND USERS ACTIVITY SECTION -->
<div class="w-full flex justify-between gap-[2.5%] px-10 pb-5"> <div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5">
<!-- LEFT SIDE / USER DETAIL SECTION --> <!-- LEFT SIDE / USER DETAIL SECTION -->
<div class="w-[74.5%] bg-white h-fit rounded-md shadow-md p-5"> <div class="w-full xxlg1:w-[75%] bg-white h-fit rounded-md shadow-md p-5">
<div class="w-full bg-gray-300 rounded-t-md flex flex-col justify-center items-center py-2 gap-3 mt-[50px]"> <div class="w-full bg-gray-300 rounded-t-md flex flex-col justify-center items-center py-2 gap-3 mt-[50px]">
<div class="w-[100px] h-[100px] rounded-full mt-[-63px] border border-gray-300"> <div class="w-[70px] s:w-[100px] h-[70px] s:h-[100px] rounded-full mt-[-50px] border border-gray-300">
<img src="{{staff.image.url}}" alt="" class="w-full h-full object-cover rounded-full"> <img src="{{staff.image.url}}" alt="" class="w-full h-full object-cover rounded-full">
</div> </div>
<h1 class="text-3xl text-white font-semibold">{{staff.first_name}} {{staff.last_name}}</h1> <h1 class="text-3xl text-white font-semibold">{{staff.first_name}} {{staff.last_name}}</h1>
</div> </div>
<div class="w-full h-[70px] flex justify-end items-center bg-gray-100 shadow-md rounded-md px-3 py-1 mt-4"> <div class="w-full h-fit flex justify-end items-center bg-gray-100 shadow-md rounded-md px-3 py-3 mt-4">
<div class="flex justify-end items-center gap-3"> <div class="w-full s:w-fit flex flex-col s:flex-row justify-end items-center gap-3">
<button <button
class="w-fit text-base px-3 py-2 bg-red-500 text-white outline-none border border-red-500 rounded-md cursor-pointer hover:bg-white hover:text-red-500">Delete class="w-full s:w-fit text-base px-3 py-2 bg-red-500 text-white outline-none border border-red-500 rounded-md cursor-pointer hover:bg-white hover:text-red-500">Delete
User</button> User</button>
<a href="{% url 'editstaff' staff.staff_id %}"> <a href="{% url 'editstaff' staff.staff_id %}" class="w-full s:w-fit">
<button <button
class="w-fit text-base px-3 py-2 bg-blue-500 text-white outline-none border border-blue-500 rounded-md cursor-pointer hover:bg-white hover:text-blue-500">Edit class="w-full s:w-fit text-base px-3 py-2 bg-blue-500 text-white outline-none border border-blue-500 rounded-md cursor-pointer hover:bg-white hover:text-blue-500">Edit
User</button> User</button>
</a> </a>
</div> </div>
@ -100,10 +119,11 @@
<p class="text-gray-500 text-xl">Mobile Number: <span <p class="text-gray-500 text-xl">Mobile Number: <span
class="text-slate-800 text-xl font-semibold">{{staff.mobile_number}}</span></p> class="text-slate-800 text-xl font-semibold">{{staff.mobile_number}}</span></p>
</div> </div>
<div> <div>
<p class="text-gray-500 text-xl">Position: <span class="text-slate-800 text-xl font-semibold">{{staff.staff_position}}</span></p> <p class="text-gray-500 text-xl">Position: <span
class="text-slate-800 text-xl font-semibold">{{staff.staff_position}}</span></p>
</div> </div>
<div> <div>
@ -118,11 +138,11 @@
</div> </div>
<!-- RIGHT SIDE / USERS ACTIVITY --> <!-- RIGHT SIDE / USERS ACTIVITY -->
<div class="w-[23%] bg-white h-fit rounded-md shadow-md p-5"> <div class="hidden xxlg1:block w-[25%] bg-white h-[800px] overflow-y-auto overflow-hidden rounded-md shadow-md p-5">
<h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1> <h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1>
<div class="w-full h-fit mt-2" id="activitiesContainer"> <div class="w-full h-fit mt-2" id="activitiesContainer">
{% include 'recent-activities.html' %} {% include 'recent-activities.html' %}
</div> </div>
</div> </div>

@ -1,385 +1,390 @@
{% extends "main.html" %} {% extends "main.html" %}
{%load static%} {%load static%}
{% block content %} {% block content %}
<!-- NOTES SECTION -->
<div class="w-full h-fit flex justify-between items-center px-10 pb-5">
<div class="relative w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex justify-between items-center">
<div>
<p class="text-base text-gray-500">Recent Note:</p>
<p class="text-slate-700">Send an Email to Salim.</p>
</div>
<div class="flex justify-end items-center gap-4">
<button
class="w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show
Notes</button>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex justify-center items-center shadow-md"
id="addNoteButton">
<i class="fa fa-plus"></i>
</button>
</div>
</div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit relative hidden justify-start gap-3 items-center mt-5 overflow-hidden overflow-x-auto"
id="notesContainer">
<div class="w-[16.33%] h-[150px] shadow-xl bg-yellow-200 p-5">
<p class="text-base text-slate-800">Send an Email to Salim.</p>
</div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-pink-200 top-90 right-10 p-5"> <!-- USERS ACTIVITIES ON MOBILE -->
<p class="text-base text-slate-80">Contact the client.</p> <div class="w-[55px] h-[55px] bg-slate-700 rounded-full fixed xxlg1:hidden bottom-3 right-3 p-2 flex justify-center items-center cursor-pointer usersActivityIcon z-20"
</div> data-modal-url="{% url 'getupdatedactivities' %}">
<img src="{% static 'images/usersactivity.png' %}" alt="Users">
</div>
<!-- NOTES SECTION -->
<div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit flex justify-between items-center">
<div>
<p class="text-base text-gray-500">Recent Note:</p>
<div class="flex justify-start items-center gap-2">
<div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
<div class="w-[16.33%] h-[150px] shadow-xl bg-green-200 top-90 right-10 p-5">
<p class="text-base text-slate-80">Add daily report at the end of the day.</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div>
</div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div>
<div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show
Notes</button>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div>
</div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-blue-200 top-90 right-10 p-5"> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
</div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-purple-200 top-90 right-10 p-5"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> {% for note in notes %}
</div> <div class="h-[150px] shadow-sm p-5" style="background-color: {{note.color}}">
<p class="text-base text-slate-800">{{note.text}}</p>
</div>
{% endfor %}
</div>
<div class="w-[16.33%] h-[150px] shadow-xl bg-yellow-200 top-90 right-10 p-5"> <div class="w-full black lg:hidden">
<p class="text-base text-slate-80">Add daily report at the end of the day.</p> <div class="swiper-container mt-5">
<div class="swiper-wrapper">
{% for note in notes %}
<div class="swiper-slide">
<div class="w-full h-[150px] p-3 flex justify-start items-start"
style="background-color: {{note.color}}">
{{note.text}}
</div>
</div> </div>
{% endfor %}
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
</div>
<!-- TASK DETAIL AND USERS ACTIVITY SECTION -->
<div class="w-full flex justify-between gap-[2.5%] px-10 pb-5">
<!-- LEFT SIDE / TASK DETAIL SECTION -->
<div class="w-[74.5%] bg-white h-fit rounded-md shadow-md p-5">
{% if task.status == 'Open' %}
<div class="w-full bg-green-700 rounded-t-md flex flex-col justify-center items-center py-3">
<h1 class="text-3xl text-white font-semibold">{{task.name}}</h1>
</div>
{% endif %}
{% if task.status == 'Working On' %}
<div class="w-full bg-yellow-400 rounded-t-md flex flex-col justify-center items-center py-3">
<h1 class="text-3xl text-white font-semibold">{{task.name}}</h1>
</div>
{% endif %}
{% if task.status == 'Closed' %}
<div class="w-full bg-red-500 rounded-t-md flex flex-col justify-center items-center py-3">
<h1 class="text-3xl text-white font-semibold">{{task.name}}</h1>
</div>
{% endif %}
<div class="w-full h-[70px] flex justify-end items-center bg-gray-100 shadow-md rounded-md px-3 py-1 mt-4">
<div class="flex justify-end items-center gap-3">
<button
class="w-fit text-base px-3 py-2 bg-red-500 text-white outline-none border border-red-500 rounded-md cursor-pointer hover:bg-white hover:text-red-500">Delete
Task</button>
<a href="{% url 'edittask' task.task_id %}">
<button
class="w-fit text-base px-3 py-2 bg-blue-500 text-white outline-none border border-blue-500 rounded-md cursor-pointer hover:bg-white hover:text-blue-500">Edit
Task</button>
</a>
</div>
</div>
<div class="w-full flex flex-col gap-4 mt-5">
<div>
<p class="text-gray-500 text-xl">Project: <span
class="text-slate-800 text-xl font-semibold">{{task.project.name}}</span></p>
</div>
<div> <!-- TASK DETAIL AND USERS ACTIVITY SECTION -->
<p class="text-gray-500 text-xl">Start Date: <span <div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5">
class="text-slate-800 text-xl font-semibold">{{task.formatted_start_date}}</span></p> <!-- LEFT SIDE / TASK DETAIL SECTION -->
</div> <div class="w-full xxlg1:w-[75%] bg-white h-fit rounded-md shadow-md p-5">
{% if task.status == 'Open' %}
<div class="w-full bg-green-700 rounded-t-md flex flex-col justify-center items-center py-3">
<h1 class="text-3xl text-white font-semibold">{{task.name}}</h1>
</div>
{% endif %}
{% if task.status == 'Working On' %}
<div class="w-full bg-yellow-400 rounded-t-md flex flex-col justify-center items-center py-3">
<h1 class="text-3xl text-white font-semibold">{{task.name}}</h1>
</div>
{% endif %}
{% if task.status == 'Closed' %}
<div class="w-full bg-red-500 rounded-t-md flex flex-col justify-center items-center py-3">
<h1 class="text-3xl text-white font-semibold">{{task.name}}</h1>
</div>
{% endif %}
<div class="w-full h-fit flex justify-end items-center bg-gray-100 shadow-md rounded-md px-3 py-3 mt-4">
<div class="w-full s:w-fit flex flex-col s:flex-row justify-end items-center gap-3">
<button
class="w-full s:w-fit text-base px-3 py-2 bg-red-500 text-white outline-none border border-red-500 rounded-md cursor-pointer hover:bg-white hover:text-red-500">Delete
Task</button>
<a href="{% url 'edittask' task.task_id %}" class="w-full s:w-fit">
<button
class="w-full s:w-fit text-base px-3 py-2 bg-blue-500 text-white outline-none border border-blue-500 rounded-md cursor-pointer hover:bg-white hover:text-blue-500">Edit
Task</button>
</a>
</div>
</div>
<div>
<p class="text-gray-500 text-xl">End Date: <span
class="text-slate-800 text-xl font-semibold">{{task.formatted_end_date}}</span></p>
</div>
<div> <div class="w-full flex flex-col gap-4 mt-5">
<p class="text-gray-500 text-xl">Epic: <span <div>
class="text-slate-800 text-xl font-semibold">{{task.epic.title}}</span></p> <p class="text-gray-500 text-xl">Project: <span
</div> class="text-slate-800 text-xl font-semibold">{{task.project.name}}</span></p>
</div>
<div> <div>
<p class="text-gray-500 text-xl">Assigned To: <span <p class="text-gray-500 text-xl">Start Date: <span
class="text-slate-800 text-xl font-semibold">{{task.assigned_to.first_name}} {{task.assigned_to.last_name}}</span></p> class="text-slate-800 text-xl font-semibold">{{task.formatted_start_date}}</span></p>
</div> </div>
<div> <div>
<p class="text-gray-500 text-xl">Extra: <span <p class="text-gray-500 text-xl">End Date: <span
class="text-slate-800 text-xl font-semibold">{{task.extra}}</span></p> class="text-slate-800 text-xl font-semibold">{{task.formatted_end_date}}</span></p>
</div> </div>
<div> <div>
<p class="text-gray-500 text-xl">Status: <p class="text-gray-500 text-xl">Epic: <span
{% if task.status == 'Closed' %} class="text-slate-800 text-xl font-semibold">{{task.epic.title}}</span></p>
<span class="text-red-500 text-xl font-semibold">{{task.status}}</span> </div>
{% endif %}
{% if task.status == 'Open' %}
<span class="text-green-700 text-xl font-semibold">{{task.status}}</span>
{% endif %}
{% if project.status == 'Working on' %}
<span class="text-yellow-400 text-xl font-semibold">{{task.status}}</span>
{% endif %}
</p>
</div>
<div> <div>
<p class="text-gray-500 text-xl">Related Files: <span <p class="text-gray-500 text-xl">Assigned To: <span
class="text-slate-800 text-xl">Documentation.pdf, Project.doc</span> class="text-slate-800 text-xl font-semibold">{{task.assigned_to.first_name}}
</p> {{task.assigned_to.last_name}}</span></p>
</div> </div>
<div>
<p class="text-gray-500 text-xl">Extra: <span
class="text-slate-800 text-xl font-semibold">{{task.extra}}</span></p>
</div>
<div>
<p class="text-gray-500 text-xl">Status:
{% if task.status == 'Closed' %}
<span class="text-red-500 text-xl font-semibold">{{task.status}}</span>
{% endif %}
{% if task.status == 'Open' %}
<span class="text-green-700 text-xl font-semibold">{{task.status}}</span>
{% endif %}
{% if project.status == 'Working on' %}
<span class="text-yellow-400 text-xl font-semibold">{{task.status}}</span>
{% endif %}
</p>
</div>
<div>
<p class="text-gray-500 text-xl">Related Files: <span class="text-slate-800 text-xl">Documentation.pdf,
Project.doc</span>
</p>
</div>
<div>
<p class="text-gray-500 text-xl">Points:</p>
<div class="w-full px-4">
<div class="mt-5 relative">
<div
class=" bg-slate-700 border border-slate-700 rounded-t-md flex justify-between items-center text-white text-xl font-bold h-[50px]">
<div class="px-3">
<p class="text-white uppercase font-bold">Points</p>
</div>
{% for point in points %} <button
class="h-full rounded-tr-md px-4 bg-gray-300 text-slate-700 text-[18px] outline-none border-none cursor-pointer flex justify-center items-center addPointButton"
data-modal-url="{% url 'addpoint' task.task_id %}">
<i class="fa fa-plus"></i>
</button>
</div>
<div class="overflow-x-auto border border-gray-300 rounded-b-md">
<table class="min-w-full divide-y">
<!-- TABLE HEADER -->
<thead class="bg-gray-50">
<tr>
<th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap">
Point
</th>
<th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase whitespace-nowrap">
Status
</th>
</tr>
</thead>
<!-- TABLE BODY -->
<tbody class="bg-white divide-y divide-gray-200">
<!-- 1st row -->
{% if points %}
{% for point in points %}
<tr>
<td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<p class="text-slate-800">{{point.text}}</p>
</td>
{% if point.status == 'Not Completed' %} {% if point.status == 'Not Completed' %}
<div class="w-full flex justify-between items-center py-2 border-b border-gray-200"> <td class="px-6 py-4 text-center text-sm">
<div class="w-[380px]"> <div class="w-full flex justify-center items-center gap-2">
<p class="text-slate-800">{{point.text}}</p> <form method="post"
</div> action="{% url 'mark_point_working_on_task_page' point.id task.id %}">
<div class="flex justify-end items-center gap-2"> {% csrf_token %}
<form method="post" action="{% url 'mark_point_working_on_task_page' point.id task.id %}"> <button type="submit"
{% csrf_token %} class="w-[120px] px-2 py-2 bg-transparent border border-yellow-500 rounded-md text-yellow-500 hover:bg-yellow-500 hover:text-white">Working
<button type="submit" On</button>
class="w-[120px] px-2 py-1 bg-transparent border border-yellow-500 rounded-md text-yellow-500 hover:bg-yellow-500 hover:text-white">Working
On</button>
</form> </form>
<form method="post" action="{% url 'mark_point_completed_task_page' point.id task.id %}"> <form method="post"
action="{% url 'mark_point_completed_task_page' point.id task.id %}">
{% csrf_token %} {% csrf_token %}
<button type="submit" <button type="submit"
class="w-[120px] px-2 py-1 bg-transparent border border-blue-500 rounded-md text-blue-500 hover:bg-blue-500 hover:text-white">Complete</button> class="w-[120px] px-2 py-2 bg-transparent border border-blue-500 rounded-md text-blue-500 hover:bg-blue-500 hover:text-white">Complete</button>
</form> </form>
</div> </div>
</div> </td>
{% endif %} {% endif %}
{% if point.status == 'Completed' %} {% if point.status == 'Completed' %}
<div class="w-full flex justify-between items-center py-2 border-b border-gray-200"> <td class="px-6 py-4 text-center text-sm">
<div class="w-[380px]"> <button
<p class="text-slate-800 line-through">{{point.text}}</p> class="w-fit px-3 py-2 bg-blue-500 border border-blue-500 rounded-md text-white opacity-40"
</div> value="Completed" disabled>Completed</button>
<div class="w-[150px]"> </td>
<button class="w-full px-2 py-1 bg-blue-500 border border-blue-500 rounded-md text-white opacity-40"
value="Completed" disabled>Completed</button>
</div>
</div>
{% endif %} {% endif %}
{% if point.status == 'Working On' %} {% if point.status == 'Working On' %}
<div class="w-full flex justify-between items-center py-2 border-b border-gray-200"> <td class="px-6 py-4 text-center text-sm">
<div class="w-[380px]"> <div class="w-full flex justify-center items-center gap-2">
<p class="text-slate-800">{{point.text}}</p>
</div>
<div class="flex justify-end items-center gap-2">
<button <button
class="w-[120px] px-2 py-1 border border-yellow-500 rounded-md bg-yellow-500 text-white opacity-40" class="w-[120px] px-2 py-2 border border-yellow-500 rounded-md bg-yellow-500 text-white opacity-40"
disabled>Working On</button> disabled>Working On</button>
<form method="post" action="{% url 'mark_point_completed_task_page' point.id task.id %}"> <form method="post"
action="{% url 'mark_point_completed_task_page' point.id task.id %}">
{% csrf_token %} {% csrf_token %}
<button type="submit" <button type="submit"
class="w-[120px] px-2 py-1 bg-transparent border border-blue-500 rounded-md text-blue-500 hover:bg-blue-500 hover:text-white">Complete</button> class="w-[120px] px-2 py-2 bg-transparent border border-blue-500 rounded-md text-blue-500 hover:bg-blue-500 hover:text-white">Complete</button>
</form> </form>
</div> </div>
</div> </td>
{% endif %} {% endif %}
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan="3" class="px-6 py-4 text-center text-sm text-slate-800">
No Available Points
</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
</div>
{% endfor %} <div>
<div class="mt-5 relative">
<div
</div> class=" bg-slate-700 border border-slate-700 rounded-t-md flex justify-between items-center text-white text-xl font-bold h-[50px]">
<div class="px-3">
<div class="w-full px-4"> <p class="text-white uppercase font-bold">Timline</p>
<button class="w-full text-gray-500 py-3 bg-gray-100 addPointButton" data-modal-url="{% url 'addpoint' task.task_id %}">ADD POINT</button>
</button>
</div>
</div> </div>
<button
class="h-full rounded-tr-md px-4 bg-gray-300 text-slate-700 text-[18px] outline-none border-none cursor-pointer flex justify-center items-center addTimeButton"
data-modal-url="{% url 'addtime' %}">
<i class="fa fa-plus"></i>
</button>
</div>
<div class="overflow-x-auto border border-gray-300 rounded-b-md">
<table class="min-w-full divide-y">
<!-- TABLE HEADER -->
<thead class="bg-gray-50">
<tr>
<th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap">
Task Time: 300 min
</th>
<th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap">
User
</th>
<th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase whitespace-nowrap">
Date
</th>
<th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase whitespace-nowrap">
Total Time
</th>
</tr>
</thead>
<!-- TABLE BODY -->
<tbody class="bg-white divide-y divide-gray-200">
<!-- 1st row -->
<tr>
<td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<button
class="w-fit py-1 px-3 bg-red-500 border border-red-500 text-white text-base rounded-md">Delete</button>
</td>
<td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<a class="text-slate-800">Nataly</a>
</td>
<div> <td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<p class="text-gray-500 text-xl">Timeline:</p> <a class="text-slate-800">6-9-2023</a>
<div class="w-full px-4"> </td>
<div class="w-full border-t border-x border-gray-300 rounded-t-md mt-3">
<!-- HEADER --> <td class="px-6 py-4 text-center text-sm">
<div class="w-full h-[60px] flex items-center justify-between"> <a class="text-slate-800">50min</a>
<div </td>
class="w-[30%] h-full border-r border-gray-300 flex justify-center items-center"> </tr>
<p class="text-sm">Task Time: <span class="text-sm text-gray-500">560 <!-- <tr>
minutes</span></p> <td colspan="3" class="px-6 py-4 text-center text-sm text-slate-800">
</div> No Available Credentials
<div </td>
class="w-[25%] h-full border-r border-gray-300 flex justify-center items-center"> </tr> -->
<p class="text-sm">User</p> </tbody>
</div> </table>
<div </div>
class="w-[25%] h-full border-r border-gray-300 flex justify-center items-center"> </div>
<p class="text-sm">Date</p> </div>
</div>
<div class="w-[20%] h-full flex justify-center items-center">
<p class="text-sm">Total Time</p>
</div>
</div>
<!-- BODY --> <div class="mt-5">
<div class="w-full border-t border-gray-300"> <p class="text-gray-500 text-xl">Description:</p>
<!-- 1ST ROW --> <div class="w-full h-fit px-4 mt-1">
<div <p class="text-slate-700">
class="w-full h-[50px] flex justify-between items-center border-b border-gray-300"> {{task.description}}
<div </p>
class="w-[30%] h-full border-r border-gray-300 flex justify-center items-center"> </div>
<button </div>
class="w-fit py-1 px-3 bg-red-500 border border-red-500 text-white text-base rounded-md">Delete</button>
</div>
<div
class="w-[25%] h-full border-r border-gray-300 flex justify-center items-center">
<p class="text-sm">Nataly</p>
</div>
<div
class="w-[25%] h-full border-r border-gray-300 flex justify-center items-center">
<p class="text-sm">6-9-2023</p>
</div>
<div class="w-[20%] h-full flex justify-center items-center">
<p class="text-sm">360 minutes</p>
</div>
</div>
<!-- 2ND ROW -->
<div
class="w-full h-[50px] flex justify-between items-center border-b border-gray-300">
<div
class="w-[30%] h-full border-r border-gray-300 flex justify-center items-center">
<button
class="w-fit py-1 px-3 bg-red-500 border border-red-500 text-white text-base rounded-md">Delete</button>
</div>
<div
class="w-[25%] h-full border-r border-gray-300 flex justify-center items-center">
<p class="text-sm">Salim</p>
</div>
<div
class="w-[25%] h-full border-r border-gray-300 flex justify-center items-center">
<p class="text-sm">12-9-2023</p>
</div>
<div class="w-[20%] h-full flex justify-center items-center">
<p class="text-sm">200 minutes</p>
</div>
</div>
<!-- 3RD ROWS -->
<div
class="w-full h-[50px] flex justify-between items-center border-b border-gray-300">
<div
class="w-[30%] h-full border-r border-gray-300 flex justify-center items-center">
<button
class="w-fit py-1 px-3 bg-red-500 border border-red-500 text-white text-base rounded-md">Delete</button>
</div>
<div
class="w-[25%] h-full border-r border-gray-300 flex justify-center items-center">
<p class="text-sm">Salim</p>
</div>
<div
class="w-[25%] h-full border-r border-gray-300 flex justify-center items-center">
<p class="text-sm">12-9-2023</p>
</div>
<div class="w-[20%] h-full flex justify-center items-center">
<p class="text-sm">200 minutes</p>
</div>
</div>
<!-- 4TH ROW -->
<div
class="w-full h-[50px] flex justify-between items-center border-b border-gray-300">
<div
class="w-[30%] h-full border-r border-gray-300 flex justify-center items-center">
<button
class="w-fit py-1 px-3 bg-red-500 border border-red-500 text-white text-base rounded-md">Delete</button>
</div>
<div
class="w-[25%] h-full border-r border-gray-300 flex justify-center items-center">
<p class="text-sm">Reine</p>
</div>
<div
class="w-[25%] h-full border-r border-gray-300 flex justify-center items-center">
<p class="text-sm">12-9-2023</p>
</div>
<div class="w-[20%] h-full flex justify-center items-center">
<p class="text-sm">200 minutes</p>
</div>
</div>
</div>
<div class="w-full">
<button class="w-full border-b border-gray-300 text-gray-500 py-3 bg-gray-100 addTimeButton" data-modal-url="{% url 'addtime' %}">ADD TIMELINE</button>
</div>
</div>
</div>
</div>
<div> <div>
<p class="text-gray-500 text-xl">Description:</p> <p class="text-gray-500 text-xl">Tags:</p>
<div class="w-full h-fit px-4 mt-1"> <div class="w-full h-fit px-4 mt-2 flex flex-wrap justify-start items-center gap-3">
<p class="text-slate-700"> <button
{{task.description}} class="text-sm text-gray-400 border border-gray-400 rounded-md w-fit py-2 px-3 outline-none cursor-pointer">Media
</p> Streaming</button>
</div>
</div>
<div> <button
<p class="text-gray-500 text-xl">Tags:</p> class="text-sm text-gray-400 border border-gray-400 rounded-md w-fit py-2 px-3 outline-none cursor-pointer">Live
<div class="w-full h-fit px-4 mt-1 flex flex-wrap justify-start items-center gap-3"> Streaming</button>
<button
class="text-sm text-gray-400 border border-gray-400 rounded-md w-fit py-2 px-3 outline-none cursor-pointer">Media
Streaming</button>
<button <button
class="text-sm text-gray-400 border border-gray-400 rounded-md w-fit py-2 px-3 outline-none cursor-pointer">Live class="text-sm text-gray-400 border border-gray-400 rounded-md w-fit py-2 px-3 outline-none cursor-pointer">Audio
Streaming</button> On Demand</button>
</div>
</div>
<button </div>
class="text-sm text-gray-400 border border-gray-400 rounded-md w-fit py-2 px-3 outline-none cursor-pointer">Audio </div>
On Demand</button>
</div>
</div>
</div>
</div>
<!-- RIGHT SIDE / USERS ACTIVITY -->
<div class="w-[23%] bg-white h-fit rounded-md shadow-md p-5">
<h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1>
<div class="w-full h-fit mt-2" id="activitiesContainer">
{% include 'recent-activities.html' %} <!-- RIGHT SIDE / USERS ACTIVITY -->
<div class="hidden xxlg1:block w-[25%] bg-white h-[800px] overflow-y-auto overflow-hidden rounded-md shadow-md p-5">
<h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1>
<div class="w-full h-fit mt-2" id="activitiesContainer">
</div> {% include 'recent-activities.html' %}
</div>
</div>
</div>
<!-- POPUP MODAL -->
<div class="w-full h-full bg-black bg-opacity-40 z-20 fixed justify-center items-center hidden" id="popUpModal">
<div class="w-[95%] md:w-fit h-fit bg-white rounded-md p-9 relative">
<button class="absolute top-3 right-5 text-slate-800 text-xl cursor-pointer outline-none border-none"
id="closeModalButton">
<i class="fa fa-close"></i>
</button>
<iframe id="popupModalFrame" frameborder="0"></iframe>
</div>
</div> </div>
<script type="text/javascript" src='{% static "js/pop-modals.js" %}'></script> </div>
</div>
</div>
<!-- POPUP MODAL -->
<div class="w-full h-full bg-black bg-opacity-40 z-20 fixed justify-center items-center hidden" id="popUpModal">
<div class="w-[95%] md:w-fit h-fit bg-white rounded-md p-9 relative">
<button class="absolute top-3 right-5 text-slate-800 text-xl cursor-pointer outline-none border-none"
id="closeModalButton">
<i class="fa fa-close"></i>
</button>
<iframe id="popupModalFrame" frameborder="0"></iframe>
</div>
</div>
<script type="text/javascript" src='{% static "js/pop-modals.js" %}'></script>
</div> </div>
<!---------------------- JS SCRIPTS --------------------> <!---------------------- JS SCRIPTS -------------------->
<!-- TO SHOW ALL THE ADDED NOTES BY THE USER WHEN CLICKING ON THE SHOW NOTES BUTTON --> <!-- TO SHOW ALL THE ADDED NOTES BY THE USER WHEN CLICKING ON THE SHOW NOTES BUTTON -->
<script type="text/javascript" src='{% static "js/show-notes.js" %}'></script> <script type="text/javascript" src='{% static "js/show-notes.js" %}'></script>
{% endblock content %} {% endblock content %}

@ -14,17 +14,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -38,7 +45,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -61,7 +68,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -71,7 +78,7 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

@ -13,17 +13,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -37,7 +44,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -60,7 +67,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -70,7 +77,7 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

@ -14,17 +14,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -38,7 +45,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -61,7 +68,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -71,7 +78,7 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

@ -13,17 +13,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -37,7 +44,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -60,7 +67,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -70,14 +77,13 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- CUSTOMERS AND USERS ACTIVITY SECTION --> <!-- CUSTOMERS AND USERS ACTIVITY SECTION -->
<div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5"> <div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5">
<!-- LEFT SIDE / CUSTOMERS SECTION --> <!-- LEFT SIDE / CUSTOMERS SECTION -->

@ -13,17 +13,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -37,7 +44,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -60,7 +67,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -70,7 +77,7 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>
@ -144,28 +151,6 @@
</div> </div>
{% endfor %} {% endfor %}
<script>
document.addEventListener("DOMContentLoaded", function () {
// Get references to all showReportButton and reportContainer elements
var showReportButtons = document.querySelectorAll(".showReportButton");
// Iterate through each button and attach the click event
showReportButtons.forEach(function (button) {
button.addEventListener("click", function () {
// Find the related reportContainer based on the button's parent
var reportContainer = button.closest(".daily-report").querySelector(".reportContainer");
// Toggle the visibility of the report container
reportContainer.classList.toggle("hidden");
});
});
});
</script>
</div> </div>
</div> </div>
@ -201,4 +186,8 @@
<!-- TO SHOW ALL THE ADDED NOTES BY THE USER WHEN CLICKING ON THE SHOW NOTES BUTTON --> <!-- TO SHOW ALL THE ADDED NOTES BY THE USER WHEN CLICKING ON THE SHOW NOTES BUTTON -->
<script type="text/javascript" src='{% static "js/show-notes.js" %}'></script> <script type="text/javascript" src='{% static "js/show-notes.js" %}'></script>
<!-- TO DISPLAY THE DAILY REPORT CONTENT -->
<script type="text/javascript" src='{% static "js/daily-reports.js" %}'></script>
{% endblock content %} {% endblock content %}

@ -13,17 +13,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -37,7 +44,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -60,7 +67,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -70,13 +77,14 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- PROJECT TYPES LISTING AND USERS ACTIVITY SECTION --> <!-- PROJECT TYPES LISTING AND USERS ACTIVITY SECTION -->
<div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5"> <div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5">
<!-- LEFT SIDE / PROJECT TYPES SECTION --> <!-- LEFT SIDE / PROJECT TYPES SECTION -->

@ -14,17 +14,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -38,7 +45,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -61,7 +68,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -71,7 +78,7 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

@ -13,17 +13,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -37,7 +44,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -60,7 +67,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -70,7 +77,7 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

@ -14,17 +14,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -38,7 +45,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -61,7 +68,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -71,13 +78,14 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- USERS AND USERS ACTIVITY SECTION --> <!-- USERS AND USERS ACTIVITY SECTION -->
<div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5"> <div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5">
<!-- LEFT SIDE / USERS SECTION --> <!-- LEFT SIDE / USERS SECTION -->

@ -14,17 +14,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -38,7 +45,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -61,7 +68,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -71,7 +78,7 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

@ -13,17 +13,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -37,7 +44,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -60,7 +67,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -70,7 +77,7 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

@ -12,17 +12,24 @@
<div class="w-full px-5 s:px-9 pb-5"> <div class="w-full px-5 s:px-9 pb-5">
<div class="w-full h-fit bg-white shadow-md rounded-md p-5"> <div class="w-full h-fit bg-white shadow-md rounded-md p-5">
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center"> <div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
<div class="w-full s:w-fit"> <div class="w-full s:w-fit flex justify-between items-center">
<p class="text-base text-gray-500">Recent Note:</p> <div>
<div class="flex justify-start items-center gap-2"> <p class="text-base text-gray-500">Recent Note:</p>
<div class="w-[13px] h-[13px] bg-red-200 rounded-full" <div class="flex justify-start items-center gap-2">
style="background-color: {{ last_note_color }};"> <div class="w-[13px] h-[13px] bg-red-200 rounded-full"
style="background-color: {{ recent_note.color }};">
</div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<p class="text-slate-700">{{recent_note.text}}</p>
</div> </div>
<button
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
data-modal-url="{% url 'addnote' %}">
<i class="fa fa-plus"></i>
</button>
</div> </div>
<div class="w-full s:w-fit flex justify-start s:justify-end items-center gap-4"> <div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
<button <button
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800" class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
id="showNotesButton">Show id="showNotesButton">Show
@ -36,7 +43,7 @@
</div> </div>
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) --> <!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
<div class="w-full h-fit hidden mt-5" id="notesContainer"> <div class="w-full h-fit mt-5 hidden" id="notesContainer">
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3"> <div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
{% for note in notes %} {% for note in notes %}
@ -59,7 +66,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="flex justify-center items-center gap-3 mt-5"> <!-- <div class="flex justify-center items-center gap-3 mt-5">
<div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10" <div class="w-[35px] h-[35px] bg-slate-700 b rounded-md text-white flex justify-center items-center text-[18px] cursor-pointer z-10"
id="sliderLeft"> id="sliderLeft">
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
@ -69,7 +76,7 @@
id="sliderRight"> id="sliderRight">
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

@ -337,11 +337,8 @@
<div class="bg-white shadow-md rounded-md p-5 cursor-pointer"> <div class="bg-white shadow-md rounded-md p-5 cursor-pointer">
<div class="w-full h-full flex flex-col gap-3 items-center"> <div class="w-full h-full flex flex-col gap-3 items-center">
<div class="w-full flex justify-between items-center"> <div class="w-full flex justify-between items-center">
<p class="text-[22px] text-slate-800 font-bold uppercase">Connected Users</p> <p class="text-[22px] text-slate-800 font-bold uppercase"><span class="text-green-700">14</span> Connected</p>
<div <i class="fa fa-users" style="font-size: 30px; color: green;"></i>
class="w-[40px] h-[40px] bg-white border-2 rounded-full border-green-700 flex justify-center items-center">
<p class="text-green-700 font-semibold">14</p>
</div>
</div> </div>
<div class="w-full flex flex-wrap gap-2"> <div class="w-full flex flex-wrap gap-2">

Loading…
Cancel
Save