def show_task(id):

    # capture the id parameter from the url
    # find the right task in the db by the id
    task = task_repository.select(id)
    # render an html view with the task details
    return render_template('tasks/show.html', selected_task=task)
def edit(id):
    task = task_repository.select(id)
    users = user_repository.select_all()
    return render_template("tasks/edit.html", task=task, all_users=users)
def show_task(id):
    # find the right task in the database by the id
    task = task_repository.select(id)
    # render the html view with the task details
    return render_template('tasks/show.html', selected_task=task)
Example #4
0
def show_task(id):
    task = task_repository.select(id)
    return render_template('tasks/show.html', task = task)