More UI work

This commit is contained in:
Jonathan Carter
2025-08-16 14:22:13 +02:00
parent 3dade195a5
commit 9f8f89fde2
8 changed files with 160 additions and 17 deletions

View File

@@ -1,5 +1,10 @@
from applets.main import bp
from applets.welcome import bp
from flask import Flask, request, session, redirect, \
url_for, render_template, flash, Blueprint
# we use this neat little trick to get config data from the main app
from flask import current_app
import gettext
import dmm.lsblk as lsblk
@bp.route('/')
def index():
@@ -19,3 +24,26 @@ def apihome():
"""
return ("0")
@bp.route('/main/help',methods=['GET', 'POST', 'PUT'])
def main_welcome():
"""
Manages the main help system.
"""
return render_template('help.html')
@bp.route('/main/quit',methods=['GET', 'POST', 'PUT'])
def main_quit():
"""
Manages the quit dialog.
"""
return render_template('quit.html')
@bp.route('/main/menu',methods=['GET', 'POST', 'PUT'])
def main_menu():
"""
Manages the main menu.
"""
return render_template('menu.html')