diff --git a/app/__init__.py b/app/__init__.py index 50f946be..41b3eeb1 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -102,4 +102,7 @@ def create_app(config: Config = Config) -> Flask: default_breadcrumb_root(users_blueprint, '.users') app.register_blueprint(users_blueprint, url_prefix='/users') + from .workshops import bp as workshops_blueprint + app.register_blueprint(workshops_blueprint, url_prefix='/workshops') + return app diff --git a/app/templates/workshops/_fgho_sommerschule_2023/_aufgaben.html.j2 b/app/templates/workshops/_fgho_sommerschule_2023/_aufgaben.html.j2 new file mode 100644 index 00000000..dcdee8e1 --- /dev/null +++ b/app/templates/workshops/_fgho_sommerschule_2023/_aufgaben.html.j2 @@ -0,0 +1,131 @@ +

Workshop Aufgaben

+

Hallo liebe Inga

+ +

Aufgabe 1

+

+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. +

+ + +

Aufgabe 2

+

+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. +

+ + +

Aufgabe 3

+

+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. +

+ diff --git a/app/templates/workshops/_fgho_sommerschule_2023/_vorbereitungen.html.j2 b/app/templates/workshops/_fgho_sommerschule_2023/_vorbereitungen.html.j2 new file mode 100644 index 00000000..d888bb3d --- /dev/null +++ b/app/templates/workshops/_fgho_sommerschule_2023/_vorbereitungen.html.j2 @@ -0,0 +1 @@ +

Vorbereitungen

diff --git a/app/templates/workshops/fgho_sommerschule_2023.html.j2 b/app/templates/workshops/fgho_sommerschule_2023.html.j2 new file mode 100644 index 00000000..46ae8d7a --- /dev/null +++ b/app/templates/workshops/fgho_sommerschule_2023.html.j2 @@ -0,0 +1,19 @@ +{% extends "base.html.j2" %} + +{% block page_content %} +
+
+
+

{{ title }}

+
+ +
+ {% include "workshops/_fgho_sommerschule_2023/_vorbereitungen.html.j2" %} +
+ +
+ {% include "workshops/_fgho_sommerschule_2023/_aufgaben.html.j2" %} +
+
+
+{% endblock page_content %} diff --git a/app/workshops/__init__.py b/app/workshops/__init__.py new file mode 100644 index 00000000..25dffcc6 --- /dev/null +++ b/app/workshops/__init__.py @@ -0,0 +1,5 @@ +from flask import Blueprint + + +bp = Blueprint('workshops', __name__) +from . import routes diff --git a/app/workshops/routes.py b/app/workshops/routes.py new file mode 100644 index 00000000..95e24875 --- /dev/null +++ b/app/workshops/routes.py @@ -0,0 +1,10 @@ +from flask import render_template +from . import bp + + +@bp.route('/fgho_sommerschule_2023') +def index(): + return render_template( + 'workshops/fgho_sommerschule_2023.html.j2', + title='FGHO Sommerschule 2023', + )