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.
106 lines
5.1 KiB
HTML
106 lines
5.1 KiB
HTML
{% load static %}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Osina</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href='{% static "dist/output.css" %}'>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
|
</head>
|
|
|
|
|
|
<body>
|
|
<div id="hiddenContent">
|
|
<h1 class="text-slate-800 text-2xl font-semibold text-center mb-1">Points</h1>
|
|
|
|
<div class="w-full pr-4">
|
|
{% for point in points %}
|
|
|
|
<div class="w-full flex flex-col gap-1">
|
|
<div class="w-full flex justify-between items-end py-2 border-b border-gray-200">
|
|
<div class="w-[380px]">
|
|
{% if point.status == 'Completed' %}
|
|
<p class="text-slate-800 line-through">{{point.text}}</p>
|
|
{% else %}
|
|
<p class="text-slate-800">{{point.text}}</p>
|
|
{% endif %}
|
|
</div>
|
|
<div class="flex justify-end items-center gap-2">
|
|
{% if point.status == 'Not Completed' or point.status == 'Paused' and not point.status == 'Completed' %}
|
|
<a href="{% url 'mark_point_working_on' point.id task.id %}"><button
|
|
class="w-[40px] h-[40px] rounded-full bg-gray-50 shadow-md text-gray-500 border border-gray-100 flex justify-center items-center hover:scale-105 transition-transform duration-300"
|
|
id="startPointButton">
|
|
<i class="fa fa-play"></i>
|
|
</button></a>
|
|
{% endif %}
|
|
|
|
{% if point.status == 'Working On' and not point.status == 'Completed' %}
|
|
<a href="{% url 'mark_point_paused' point.id task.id %}"><button
|
|
class="w-[40px] h-[40px] rounded-full bg-gray-50 shadow-md text-gray-500 border border-gray-100 justify-center items-center hover:scale-105 transition-transform duration-300"
|
|
id="pausePointButton">
|
|
<i class="fa fa-pause"></i>
|
|
</button></a>
|
|
{% endif %}
|
|
|
|
{% if not point.status == 'Completed' and not point.status == 'Paused' %}
|
|
<a href="{% url 'mark_point_completed' point.id task.id %}"><button
|
|
class="w-[40px] h-[40px] rounded-full bg-green-700 shadow-md text-white border border-green-700 flex justify-center items-center hover:scale-105 transition-transform duration-300">
|
|
<i class="fa fa-check"></i></a>
|
|
</button>
|
|
{% endif %}
|
|
|
|
|
|
{% if point.status == 'Completed' %}
|
|
<button
|
|
class="w-[40px] h-[40px] rounded-full bg-green-700 shadow-md text-white border border-green-700 flex justify-center items-center opacity-20 cursor-default">
|
|
<i class="fa fa-check"></i>
|
|
</button>
|
|
{% endif %}
|
|
|
|
<form method="post" action="{% url 'deletepointmodal' point.id task.id %}">
|
|
{% csrf_token %}
|
|
<button type="submit"
|
|
class="w-[40px] h-[40px] bg-red-500 border border-red-500 rounded-full text-white flex justify-center items-center shadow-md hover:scale-105 transition-transform duration-300">
|
|
<i class="fa fa-trash"></i>
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="w-full">
|
|
<p class="text-gray-500 text-sm">Total Time:
|
|
<span class="font-semibold pointTotalTime text-red-500">
|
|
{% if point.total_time.0 > 0 %}
|
|
{{ point.total_time.0 }}hr
|
|
{% if point.total_time.1 > 0 %}
|
|
,
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if point.total_time.1 > 0 %}
|
|
{{ point.total_time.1 }}min
|
|
{% if point.total_time.2 > 0 %}
|
|
,
|
|
{%endif%}
|
|
{% endif %}
|
|
|
|
{% if point.total_time.2 > 0 %}
|
|
{{ point.total_time.2 }}sec
|
|
{% endif %}
|
|
</span>
|
|
</p>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<!---------------------- JS SCRIPTS -------------------->
|
|
|
|
</body>
|
|
|
|
</html> |