|
|
|
@ -34,7 +34,7 @@
|
|
|
|
|
<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>
|
|
|
|
|
<div class="hidden md:block">
|
|
|
|
|
<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] rounded-full" style="background-color: {{ recent_note.color }};">
|
|
|
|
@ -42,13 +42,19 @@
|
|
|
|
|
<p class="text-slate-700 truncate max-w-xs l:max-w-xl">{{recent_note.text}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<button
|
|
|
|
|
class="w-[30px] h-[30px] rounded-full p-2 bg-gray-300 text-white text-[18px] 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 class="w-full flex justify-between items-center md:hidden">
|
|
|
|
|
<p class="text-base text-gray-500">My Notes</p>
|
|
|
|
|
|
|
|
|
|
<button
|
|
|
|
|
class="w-[30px] h-[30px] rounded-full p-2 bg-gray-300 text-white text-[18px] 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 hidden s:flex justify-start s:justify-end items-center gap-4">
|
|
|
|
|
|
|
|
|
|
<div class="w-full s:w-fit hidden md: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
|
|
|
|
@ -62,7 +68,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- ALL NOTES CONTAINER (appears when clicking on the "Show notes" button) -->
|
|
|
|
|
<div class="w-full h-fit mt-5 hidden" id="notesContainer">
|
|
|
|
|
<div class="w-full h-fit hidden" id="notesContainer">
|
|
|
|
|
|
|
|
|
|
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
|
|
|
|
|
{% for note in notes %}
|
|
|
|
@ -77,8 +83,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- MOBILE NOTES IN SLIDER -->
|
|
|
|
|
<div class="w-full black lg:hidden">
|
|
|
|
|
<div class="swiper-container mt-5">
|
|
|
|
|
<div class="w-full block lg:hidden">
|
|
|
|
|
<div class="swiper-container mt-3">
|
|
|
|
|
<div class="swiper-wrapper">
|
|
|
|
|
{% for note in notes %}
|
|
|
|
|
<div class="swiper-slide cursor-pointer">
|
|
|
|
@ -105,26 +111,26 @@
|
|
|
|
|
<div class="w-full xxlg1:w-[74.5%] bg-white h-fit rounded-md shadow-md p-5">
|
|
|
|
|
{% if project.status == 'Completed' %}
|
|
|
|
|
<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>
|
|
|
|
|
<p class="text-white text-base">{{project.project_id}}</p>
|
|
|
|
|
<h1 class="text-xl md:text-3xl text-white font-semibold text-center">{{project.name}}</h1>
|
|
|
|
|
<p class="text-white text-center text-base">{{project.project_id}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if project.status == 'Cancelled' %}
|
|
|
|
|
<div class="w-full bg-red-500 rounded-t-md flex flex-col justify-center items-center py-2">
|
|
|
|
|
<h1 class="text-3xl text-white font-semibold">{{project.name}}</h1>
|
|
|
|
|
<p class="text-white text-base">{{project.project_id}}</p>
|
|
|
|
|
<h1 class="text-xl md:text-3xl text-white font-semibold text-center">{{project.name}}</h1>
|
|
|
|
|
<p class="text-white text-center text-base">{{project.project_id}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if project.status == 'Active' %}
|
|
|
|
|
<div class="w-full bg-orange-500 rounded-t-md flex flex-col justify-center items-center py-2">
|
|
|
|
|
<h1 class="text-3xl text-white font-semibold">{{project.name}}</h1>
|
|
|
|
|
<p class="text-white text-base">{{project.project_id}}</p>
|
|
|
|
|
<h1 class="text-xl md:text-3xl text-white font-semibold text-center">{{project.name}}</h1>
|
|
|
|
|
<p class="text-white text-center text-base">{{project.project_id}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if project.status == 'Pending' %}
|
|
|
|
|
<div class="w-full bg-yellow-400 rounded-t-md flex flex-col justify-center items-center py-2">
|
|
|
|
|
<h1 class="text-3xl text-white font-semibold">{{project.name}}</h1>
|
|
|
|
|
<p class="text-white text-base">{{project.project_id}}</p>
|
|
|
|
|
<h1 class="text-xl md:text-3xl text-white font-semibold text-center">{{project.name}}</h1>
|
|
|
|
|
<p class="text-white text-center text-base">{{project.project_id}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<div class="w-full rounded-b-md flex xll:hidden items-center">
|
|
|
|
@ -305,8 +311,8 @@
|
|
|
|
|
<div class="w-full flex justify-center items-center gap-3">
|
|
|
|
|
<a href="{% url 'createuserstorytask' %}">
|
|
|
|
|
<button
|
|
|
|
|
class="w-fit py-2 px-3 bg-green-700 border border-green-700 text-white rounded-md cursor-pointer hover:bg-white hover:text-green-700">Add
|
|
|
|
|
Task</button>
|
|
|
|
|
class="w-fit py-2 px-3 bg-green-700 border border-green-700 text-white rounded-md cursor-pointer hover:bg-white hover:text-green-700">Add
|
|
|
|
|
Task</button>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a href="">
|
|
|
|
@ -479,7 +485,7 @@
|
|
|
|
|
|
|
|
|
|
<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 addProjectNoteButton"
|
|
|
|
|
data-modal-url="{% url 'addprojectnote' %}">
|
|
|
|
|
data-modal-url="{% url 'addprojectnote' project.project_id %}">
|
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
@ -510,30 +516,35 @@
|
|
|
|
|
<!-- TABLE BODY -->
|
|
|
|
|
<tbody class="bg-white divide-y divide-gray-200">
|
|
|
|
|
<!-- 1st row -->
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
{% for note in project_notes %}
|
|
|
|
|
<tr style="background-color: {{note.color}}">
|
|
|
|
|
<td class="px-6 py-4 text-center text-sm border-r border-gray-300">
|
|
|
|
|
<p class="text-slate-800">Note Content</p>
|
|
|
|
|
<p class="text-gray-500">{{ note.text }}</p>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="px-6 py-4 text-center text-sm border-r border-gray-300">
|
|
|
|
|
<p class="text-slate-800">2-11-2023</p>
|
|
|
|
|
<p class="text-gray-500">{{ note.date }}</p>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="px-6 py-4 text-center text-sm border-r border-gray-300">
|
|
|
|
|
<p class="text-slate-800">Nataly Abi Wajeh</p>
|
|
|
|
|
<p class="text-gray-500">{{ note.user.username }}</p>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="px-6 py-4 text-center text-sm">
|
|
|
|
|
<button
|
|
|
|
|
class="w-full py-2 px-3 bg-red-500 border border-red-500 text-white cursor-pointer rounded-md hover:bg-white hover:text-red-500">Delete</button>
|
|
|
|
|
class="w-full py-2 px-3 bg-transparent border border-gray-500 text-gray-500 cursor-pointer rounded-md deleteProjectNoteButton" data-modal-url="{% url 'deleteprojectnotemodal' note.id %}">Delete</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
<!-- <tr>
|
|
|
|
|
<td colspan="3" class="px-6 py-4 text-center text-sm text-slate-800">
|
|
|
|
|
{% if project_notes.count == 0 %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="4" class="px-6 py-4 text-center text-sm text-slate-800">
|
|
|
|
|
No Available Notes
|
|
|
|
|
</td>
|
|
|
|
|
</tr> -->
|
|
|
|
|
</tr>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
@ -618,7 +629,8 @@
|
|
|
|
|
|
|
|
|
|
<!-- RIGHT SIDE / USERS ACTIVITY -->
|
|
|
|
|
{% if latest_statuses_time_ago %}
|
|
|
|
|
<div class="hidden xxlg1:block w-[25%] bg-white h-[1283px] overflow-y-auto overflow-hidden rounded-md shadow-md p-5">
|
|
|
|
|
<div
|
|
|
|
|
class="hidden xxlg1:block w-[25%] bg-white h-[1283px] 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">
|
|
|
|
|
|
|
|
|
|