Re-add flavor and steps to wizard.

main
Alexander Graf 2 years ago
parent b3f534a6ac
commit 7828115102
No known key found for this signature in database
GPG Key ID: B8A9DC143E075629

@ -78,7 +78,12 @@ def build_app(path):
@prefix_bp.route("/") @prefix_bp.route("/")
@root_bp.route("/") @root_bp.route("/")
def wizard(): def wizard():
return flask.render_template('wizard.html', subnet6=random_ipv6_subnet()) return flask.render_template(
'wizard.html',
flavor="compose",
steps=sorted(os.listdir(os.path.join(path, "templates", "steps", "compose"))),
subnet6=random_ipv6_subnet()
)
@prefix_bp.route("/submit", methods=["POST"]) @prefix_bp.route("/submit", methods=["POST"])
@root_bp.route("/submit", methods=["POST"]) @root_bp.route("/submit", methods=["POST"])

Loading…
Cancel
Save