add edit button to task page
This commit is contained in:
@@ -18,12 +18,20 @@
|
||||
<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"
|
||||
<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 %}
|
Reference in New Issue
Block a user