delete tasks
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
rows="5"> </textarea>
|
||||
</p>
|
||||
<p>
|
||||
<button type="submit">Add Task</button>
|
||||
<button class="btn btn-primary" type="submit">Add Task</button>
|
||||
</p>
|
||||
</form>
|
||||
{% endblock %}
|
@@ -18,7 +18,12 @@
|
||||
<div>
|
||||
<p>Due: {{ task.due_timestamp }}</p>
|
||||
</div>
|
||||
<hr>
|
||||
<form method="POST"
|
||||
action="{{url_for('delete_task',
|
||||
task_id=task.id) }}">
|
||||
<input class="btn btn-primary" type="submit" value="Delete Task"
|
||||
onclick="return confirm('Are you sure you want to delete this task?')">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
@@ -14,7 +14,7 @@
|
||||
{{ task.description }}
|
||||
</b>
|
||||
<div>
|
||||
<p>Created: {{ createdTime }}</p>
|
||||
<p>Created: {{ createdTime.strftime('%Y-%m-%d %I:%M %p') }}</p>
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user