More UI work
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user