You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
323 lines
16 KiB
HTML
323 lines
16 KiB
HTML
{% extends "main.html" %}
|
|
{%load static%}
|
|
{% block content %}
|
|
|
|
|
|
<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-blue-500 rounded-t-md flex flex-col justify-center items-center py-3">
|
|
<h1 class="text-xl md:text-3xl text-white font-semibold text-center">{{task.name}}</h1>
|
|
</div>
|
|
{% endif %}
|
|
{% if task.status == 'Working On' %}
|
|
<div class="w-full bg-yellow-500 rounded-t-md flex flex-col justify-center items-center py-3">
|
|
<h1 class="text-xl md:text-3xl text-white font-semibold text-center">{{task.name}}</h1>
|
|
</div>
|
|
{% endif %}
|
|
{% if task.status == 'Closed' %}
|
|
<div class="w-full bg-green-700 rounded-t-md flex flex-col justify-center items-center py-3">
|
|
<h1 class="text-xl md:text-3xl text-white font-semibold text-center">{{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 duration-300 deleteTaskButton"
|
|
data-modal-url="{% url 'deletetaskmodal' task.id %}">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-secondosiblue text-white outline-none border border-secondosiblue rounded-md cursor-pointer hover:bg-white hover:text-secondosiblue duration-300">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>
|
|
<p class="text-gray-500 text-xl">Start Date: <span
|
|
class="text-slate-800 text-xl font-semibold">{{task.start_date}}</span></p>
|
|
</div>
|
|
|
|
<div>
|
|
<p class="text-gray-500 text-xl">End Date: <span
|
|
class="text-slate-800 text-xl font-semibold">{{task.end_date}}</span></p>
|
|
</div>
|
|
|
|
<div>
|
|
<p class="text-gray-500 text-xl">Epic: <span
|
|
class="text-slate-800 text-xl font-semibold">{{task.epic.title}}</span></p>
|
|
</div>
|
|
|
|
<div>
|
|
<p class="text-gray-500 text-xl">Assigned To: <span
|
|
class="text-slate-800 text-xl font-semibold">{{task.assigned_to.user.first_name}}
|
|
{{task.assigned_to.user.last_name}}</span></p>
|
|
</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>
|
|
|
|
|
|
<!-- POINTS -->
|
|
<div class="mt-5 relative">
|
|
<div
|
|
class=" bg-osiblue 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>
|
|
|
|
<button
|
|
class="h-full rounded-tr-md px-4 bg-gray-300 text-osiblue text-[18px] outline-none border-none cursor-pointer flex justify-center items-center addPointButton"
|
|
data-modal-url="{% url 'addpointmodal' 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' %}
|
|
<td class="px-6 py-4 text-center text-sm">
|
|
<div class="w-full flex justify-center items-center gap-2">
|
|
<form method="post"
|
|
action="{% url 'mark_point_working_on_task_page' point.id task.id %}">
|
|
{% csrf_token %}
|
|
<button type="submit"
|
|
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
|
|
On</button>
|
|
</form>
|
|
<form method="post"
|
|
action="{% url 'mark_point_completed_task_page' point.id task.id %}">
|
|
{% csrf_token %}
|
|
<button type="submit"
|
|
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 method="post" action="{% url 'deletetaskpointmodal' point.id task.id %}">
|
|
{% csrf_token %}
|
|
<button type="submit"
|
|
class="w-fit px-3 py-2 bg-white border border-red-500 rounded-md text-red-500 hover:bg-red-500 hover:text-white cursor-pointer">
|
|
<i class="fa fa-trash"></i>
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</td>
|
|
{% endif %}
|
|
|
|
{% if point.status == 'Completed' %}
|
|
<td class="px-6 py-4 text-center text-sm">
|
|
<button
|
|
class="w-fit px-3 py-2 bg-blue-500 border border-blue-500 rounded-md text-white opacity-40"
|
|
value="Completed" disabled>Completed</button>
|
|
</td>
|
|
{% endif %}
|
|
|
|
{% if point.status == 'Working On' %}
|
|
<td class="px-6 py-4 text-center text-sm">
|
|
<div class="w-full flex justify-center items-center gap-2">
|
|
<button
|
|
class="w-[120px] px-2 py-2 border border-yellow-500 rounded-md bg-yellow-500 text-white opacity-40"
|
|
disabled>Working On</button>
|
|
<form method="post"
|
|
action="{% url 'mark_point_completed_task_page' point.id task.id %}">
|
|
{% csrf_token %}
|
|
<button type="submit"
|
|
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 method="post" action="{% url 'deletetaskpointmodal' point.id task.id %}">
|
|
{% csrf_token %}
|
|
<button type="submit"
|
|
class="w-fit px-3 py-2 bg-white border border-red-500 rounded-md text-red-500 hover:bg-red-500 hover:text-white cursor-pointer">
|
|
<i class="fa fa-trash"></i>
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</td>
|
|
{% 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>
|
|
|
|
|
|
|
|
<!-- TIMLINE -->
|
|
<div>
|
|
<div class="mt-5 relative">
|
|
<div
|
|
class=" bg-osiblue 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">Timline</p>
|
|
</div>
|
|
|
|
<button
|
|
class="h-full rounded-tr-md px-4 bg-gray-300 text-osiblue text-[18px] outline-none border-none cursor-pointer flex justify-center items-center">
|
|
<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>
|
|
|
|
<td class="px-6 py-4 text-center text-sm border-r border-gray-300">
|
|
<a class="text-slate-800">6-9-2023</a>
|
|
</td>
|
|
|
|
<td class="px-6 py-4 text-center text-sm">
|
|
<a class="text-slate-800">50min</a>
|
|
</td>
|
|
</tr>
|
|
<!-- <tr>
|
|
<td colspan="3" class="px-6 py-4 text-center text-sm text-slate-800">
|
|
No Available Credentials
|
|
</td>
|
|
</tr> -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- DESCRIPTION -->
|
|
<div class="mt-5">
|
|
<p class="text-gray-500 text-xl">Description:</p>
|
|
<div class="w-full h-fit px-4 mt-1">
|
|
<p class="text-slate-700">
|
|
{{task.description}}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- TAGS -->
|
|
<div>
|
|
<p class="text-gray-500 text-xl">Tags:</p>
|
|
<div class="w-full h-fit px-4 mt-3 flex flex-wrap justify-start items-center gap-3">
|
|
<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
|
|
class="text-sm text-gray-400 border border-gray-400 rounded-md w-fit py-2 px-3 outline-none cursor-pointer">Live
|
|
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">Audio
|
|
On Demand</button>
|
|
</div>
|
|
</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>
|
|
|
|
|
|
{% endblock content %} |