add edit button to task page
This commit is contained in:
@@ -18,12 +18,20 @@
|
|||||||
<div>
|
<div>
|
||||||
<p>Due: {{ task.due_timestamp }}</p>
|
<p>Due: {{ task.due_timestamp }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
<p>
|
||||||
|
<a class="btn btn-primary" href="/task/{{task.id}}/edit">Edit Task</a>
|
||||||
|
<span>
|
||||||
|
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
<form method="POST"
|
<form method="POST"
|
||||||
action="{{url_for('delete_task',
|
action="{{url_for('delete_task',
|
||||||
task_id=task.id) }}">
|
task_id=task.id) }}">
|
||||||
<input class="btn btn-danger" type="submit" value="Delete Task"
|
<input class="btn btn-danger" type="submit" value="Delete Task"
|
||||||
onclick="return confirm('Are you sure you want to delete this task?')">
|
onclick="return confirm('Are you sure you want to delete this task?')">
|
||||||
</form>
|
</form>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
Reference in New Issue
Block a user