Added task deletion. GUI still ugly, though.
This commit is contained in:
@@ -22,6 +22,16 @@ def index():
|
||||
return render_template('attract/tasks/index.html')
|
||||
|
||||
|
||||
@blueprint.route('/<task_id>', methods=['DELETE'])
|
||||
def delete(task_id):
|
||||
log.info('Deleting task %s', task_id)
|
||||
|
||||
etag = request.form['etag']
|
||||
current_attract.task_manager.delete_task(task_id, etag)
|
||||
|
||||
return '', 204
|
||||
|
||||
|
||||
@perproject_blueprint.route('/', endpoint='index')
|
||||
@attract_project_view()
|
||||
def for_project(project, task_id=None):
|
||||
|
Reference in New Issue
Block a user