Пример #1
0
def select_lesson(id):
    members = booking_repository.select_members_in_class(id)
    lesson = lesson_repository.select(id)
    slots = slot_repository.select_all()
    return render_template("lessons/lesson_info.html",
                           lesson=lesson,
                           slots=slots,
                           members=members)
Пример #2
0
def new_booking(lesson_id):
    slots = slot_repository.select_all()
    lesson = lesson_repository.select(lesson_id)
    members = member_repository.select_all()
    return render_template('/bookings/new.html',
                           lesson=lesson,
                           members=members,
                           slots=slots)
Пример #3
0
def edit_lesson(id):
    lesson = lesson_repository.select(id)
    slots = slot_repository.select_all()
    return render_template('lessons/update.html', lesson=lesson, slots=slots)
Пример #4
0
def new_lesson():
    slots = slot_repository.select_all()
    return render_template('lessons/new.html', slots=slots)
Пример #5
0
def lessons():
    lessons = lesson_repository.select_all()
    slots = slot_repository.select_all()
    return render_template("lessons/index.html", lessons=lessons, slots=slots)
Пример #6
0
def class_info(lesson_id):
    lesson = lesson_repository.select(lesson_id)
    slots = slot_repository.select_all()
    return render_template('/members/class_info.html', lesson = lesson, slots = slots)