Added task deletion. GUI still ugly, though.

This commit is contained in:
2016-09-23 13:58:14 +02:00
parent 971b8e6392
commit 3925c044d5
6 changed files with 115 additions and 3 deletions

View File

@@ -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):