|
|
|
@ -61,7 +61,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- TASK FILTERING -->
|
|
|
|
|
<div class="w-full py-4 px-3 bg-gray-200 rounded-md shadow-md mt-4 flex justify-between items-center">
|
|
|
|
|
<div class="flex justify-start items-center gap-5">
|
|
|
|
|
<div class="flex justify-start items-center gap-3">
|
|
|
|
|
<div class="relative h-fit w-fit flex items-center">
|
|
|
|
|
<input type="text" placeholder="Enter Project Name"
|
|
|
|
|
class="py-2 px-3 border border-gray-300 rounded-md outline-none w-[300px] h-[40px] relative">
|
|
|
|
@ -102,44 +102,79 @@
|
|
|
|
|
<!-- TASKS TABLE -->
|
|
|
|
|
|
|
|
|
|
{% for task in my_tasks %}
|
|
|
|
|
<div class="w-full h-fit bg-white p-3 rounded-md shadow-md mt-5">
|
|
|
|
|
<div class="w-full bg-white h-fit rounded-md border border-gray-300">
|
|
|
|
|
{% for task in my_tasks %}
|
|
|
|
|
<div class="w-full h-fit bg-white p-3 rounded-md shadow-md mb-5">
|
|
|
|
|
<div class="w-full bg-white h-fit rounded-md border border-gray-200">
|
|
|
|
|
<!-- TABLE HEADER -->
|
|
|
|
|
<div class="w-full flex h-[70px] rounded-t-md">
|
|
|
|
|
{% if task.status == 'Open' %}
|
|
|
|
|
<div class="w-full h-[70px] rounded-t-md grid grid-cols-2">
|
|
|
|
|
<div
|
|
|
|
|
class="w-[55%] flex justify-center items-center border-r border-b border-gray-300 bg-green-700 rounded-tl-md">
|
|
|
|
|
<p class="text-xl text-white">{{task.name}}</p>
|
|
|
|
|
class="flex justify-center items-center border-r border-b border-gray-200 bg-slate-600 rounded-tl-md text-xl text-white font-semibold">
|
|
|
|
|
<p>{{task.name}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="grid grid-cols-3">
|
|
|
|
|
{% if task.status == 'Closed' %}
|
|
|
|
|
<div class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-green-700">
|
|
|
|
|
<p>{{task.status}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if task.status == 'Open' %}
|
|
|
|
|
<div class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-red-500">
|
|
|
|
|
<p>{{task.status}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if task.status == 'Working On' %}
|
|
|
|
|
<div
|
|
|
|
|
class="w-[55%] flex justify-center items-center border-r border-b border-gray-300 bg-yellow-400 rounded-tl-md">
|
|
|
|
|
<p class="text-xl text-white">{{task.name}}</p>
|
|
|
|
|
<div class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-orange-500">
|
|
|
|
|
<p>{{task.status}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if task.status == 'Closed' %}
|
|
|
|
|
<div
|
|
|
|
|
class="w-[55%] flex justify-center items-center border-r border-b border-gray-300 bg-red-500 rounded-tl-md">
|
|
|
|
|
<p class="text-xl text-white">{{task.name}}</p>
|
|
|
|
|
<div class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-green-700">
|
|
|
|
|
<p>{{task.formatted_start_date}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<div class="w-[15%] flex justify-center items-center border-r border-b border-gray-300">
|
|
|
|
|
<p class="text-slate-700">{{task.status}}</p>
|
|
|
|
|
{% if task.status == 'Open' %}
|
|
|
|
|
<div class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-red-500">
|
|
|
|
|
<p>{{task.formatted_start_date}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="w-[15%] flex justify-center items-center border-r border-b border-gray-300">
|
|
|
|
|
<p class="text-slate-700">{{task.formatted_start_date}}</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if task.status == 'Working On' %}
|
|
|
|
|
<div class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-orange-500">
|
|
|
|
|
<p>{{task.formatted_start_date}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="w-[15%] flex justify-center items-center border-b border-gray-300">
|
|
|
|
|
<p class="text-slate-700">{{task.formatted_end_date}}</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if task.status == 'Closed' %}
|
|
|
|
|
<div class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-green-700">
|
|
|
|
|
<p>{{task.formatted_end_date}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if task.status == 'Open' %}
|
|
|
|
|
<div class="flex justify-center items-center border-b border-gray-200 text-white bg-red-500 rounded-tr-md">
|
|
|
|
|
<p>{{task.formatted_end_date}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if task.status == 'Working On' %}
|
|
|
|
|
<div class="flex justify-center items-center border-b border-gray-200 text-white bg-orange-500 rounded-tr-md">
|
|
|
|
|
<p>{{task.formatted_end_date}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- TABLE BODY -->
|
|
|
|
|
<div class="w-full h-fit flex">
|
|
|
|
|
<div class="w-full h-fit grid grid-cols-2">
|
|
|
|
|
<!-- LEFT SIDE OF TABLE BODY -->
|
|
|
|
|
<div class="w-[55%] h-fit bg-white p-3 rounded-bl-md">
|
|
|
|
|
<div class="h-fit bg-white p-3 rounded-bl-md">
|
|
|
|
|
<!-- 1st row -->
|
|
|
|
|
<div class="w-full flex flex-col gap-2">
|
|
|
|
|
<div class="flex justify-start items-center gap-2">
|
|
|
|
@ -154,8 +189,8 @@
|
|
|
|
|
|
|
|
|
|
<div class="flex justify-start items-center gap-2">
|
|
|
|
|
<p class="text-gray-400 text-base">Assigned To:</p>
|
|
|
|
|
<p class="text-slate-700 text-base">{{task.assigned_to.first_name}}
|
|
|
|
|
{{task.assigned_to.last_name}}</p>
|
|
|
|
|
<p class="text-slate-700 text-base">{{task.assigned_to.user.first_name}}
|
|
|
|
|
{{task.assigned_to.user.last_name}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="flex justify-start items-center gap-2">
|
|
|
|
@ -175,44 +210,53 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- RIGHT SIDE OF TABLE BODY -->
|
|
|
|
|
<div class="w-[45%] h-fit bg-white flex flex-wrap justify-start rounded-br-md">
|
|
|
|
|
<div class="h-fit bg-white grid grid-cols-3 rounded-br-md">
|
|
|
|
|
<button
|
|
|
|
|
class="w-[33.33%] p-2 border border-gray-200 text-base h-[70px] bg-gray-300 text-gray-500">Close</button>
|
|
|
|
|
class="p-2 border border-gray-200 text-base h-[70px] bg-gray-100 text-gray-500">Close</button>
|
|
|
|
|
|
|
|
|
|
<button
|
|
|
|
|
class="w-[33.33%] p-2 border border-gray-200 text-base h-[70px] bg-gray-300 text-gray-500 updateStatusButton"
|
|
|
|
|
class="p-2 border border-gray-200 text-base h-[70px] bg-gray-100 text-gray-500 updateStatusButton"
|
|
|
|
|
data-modal-url="{% url 'updatestatus' task.task_id %}">Update
|
|
|
|
|
Status</button>
|
|
|
|
|
|
|
|
|
|
<button
|
|
|
|
|
class="w-[33.33%] p-2 border border-gray-200 text-base h-[70px] bg-gray-300 text-gray-500 addTimeButton"
|
|
|
|
|
class="p-2 border border-gray-200 text-base h-[70px] bg-gray-100 text-gray-500 addTimeButton"
|
|
|
|
|
data-modal-url="{% url 'addtime' %}">Add
|
|
|
|
|
Time</button>
|
|
|
|
|
|
|
|
|
|
<button
|
|
|
|
|
class="w-[33.33%] p-2 border border-gray-200 text-base h-[70px] bg-red-500 text-white deleteTaskButton"
|
|
|
|
|
class="p-2 border border-gray-200 text-base h-[70px] bg-gray-100 text-gray-500 deleteTaskButton"
|
|
|
|
|
data-modal-url="{% url 'deletetask' %}">Delete</button>
|
|
|
|
|
<a href="{% url 'edittask' %}" class="w-[33.33%]">
|
|
|
|
|
|
|
|
|
|
<a href="{% url 'edittask' %}">
|
|
|
|
|
<button
|
|
|
|
|
class="w-full p-2 border border-gray-200 text-base h-[70px] bg-blue-500 text-white">Edit</button>
|
|
|
|
|
class="w-full p-2 border border-gray-200 text-base h-[70px] bg-gray-100 text-gray-500">Edit</button>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<button
|
|
|
|
|
class="w-[33.33%] p-2 border border-gray-200 text-base h-[70px] bg-gray-300 text-gray-500 showPointsButton"
|
|
|
|
|
class="p-2 border border-gray-200 text-base h-[70px] bg-gray-100 text-gray-500 showPointsButton"
|
|
|
|
|
data-modal-url="{% url 'showpoints' task.task_id %}">Show
|
|
|
|
|
Points</button>
|
|
|
|
|
|
|
|
|
|
<button
|
|
|
|
|
class="w-[33.33%] p-2 border border-gray-200 text-base h-[70px] bg-gray-300 text-gray-500 addPointButton"
|
|
|
|
|
class="p-2 border border-gray-200 text-base h-[70px] bg-gray-100 text-gray-500 addPointButton"
|
|
|
|
|
data-modal-url="{% url 'addpoint' task.task_id %}">Add
|
|
|
|
|
Point</button>
|
|
|
|
|
<a href="{% url 'detailed-task' task.task_id %}" class="w-[33.33%]">
|
|
|
|
|
|
|
|
|
|
<a href="{% url 'detailed-task' task.task_id %}">
|
|
|
|
|
<button
|
|
|
|
|
class="w-full p-2 border border-gray-200 text-base h-[70px] bg-gray-300 text-gray-500">Details</button>
|
|
|
|
|
class="w-full p-2 border border-gray-200 text-base h-[70px] bg-gray-100 text-gray-500">Details</button>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<button
|
|
|
|
|
class="w-[33.33%] p-2 border border-gray-200 text-base h-[70px] bg-gray-300 text-gray-500 rounded-br-md timelineButton"
|
|
|
|
|
class="p-2 border border-gray-200 text-base h-[70px] bg-gray-100 text-gray-500 rounded-br-md timelineButton"
|
|
|
|
|
data-modal-url="{% url 'timeline' %}">Timeline</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|