refactor to make way for dockerization

This commit is contained in:
2022-11-19 16:44:50 -05:00
parent 400c870056
commit ab63eeff96
25 changed files with 1 additions and 1 deletions

35
app/templates/task.html Normal file
View File

@@ -0,0 +1,35 @@
{% extends 'base.html' %}
{% set createdTime = datetime.fromtimestamp(task.created_timestamp) %}
{% set createdTime = datetime.strptime(str(createdTime), '%Y-%m-%d %H:%M:%S') %}
{% block content %}
<span><h1>{% block title %} {{ task.title }} {% endblock %}</h1></span>
<div>
<div>
<div>
<br>
<p>{{ task.description }}</p>
</div>
<div>
<p>Created: {{ createdTime.strftime('%Y-%m-%d %I:%M %p') }} </p>
</div>
<div>
<p>Due: {{ task.due_timestamp }}</p>
</div>
<p>
<a class="btn btn-primary" href="/task/{{task.id}}/edit">Edit Task</a>
<span>
</span>
</p>
<p>
<form method="POST"
action="{{url_for('delete_task',
task_id=task.id) }}">
<input class="btn btn-danger" type="submit" value="Delete Task"
onclick="return confirm('Are you sure you want to delete this task?')">
</form>
</p>
</div>
</div>
{% endblock %}