From bb07e67d53b2c1ac6a67d66e7ead61b2e0a5df48 Mon Sep 17 00:00:00 2001 From: Matthew Grotke Date: Sun, 7 Jun 2026 20:19:37 -0400 Subject: [PATCH] Development --- .../app/pages/clientcredentials/content.json | 60 +++++++++++-------- docker/routlin-portal/app/main.py | 2 +- .../app/{pages/portal => }/page.py | 0 .../app/pages/portal/__init__.py | 0 4 files changed, 35 insertions(+), 27 deletions(-) rename docker/routlin-portal/app/{pages/portal => }/page.py (100%) delete mode 100644 docker/routlin-portal/app/pages/portal/__init__.py diff --git a/docker/routlin-dash/app/pages/clientcredentials/content.json b/docker/routlin-dash/app/pages/clientcredentials/content.json index cddc301..8b2492b 100644 --- a/docker/routlin-dash/app/pages/clientcredentials/content.json +++ b/docker/routlin-dash/app/pages/clientcredentials/content.json @@ -95,6 +95,40 @@ "name": "enabled", "input_type": "checkbox" }, + { + "type": "raw_html", + "html": "" + }, + { + "type": "field", + "label": "User Type", + "name": "user_type", + "input_type": "select", + "options": [ + {"value": "", "label": "-- Select User Type --"}, + {"value": "0", "label": "Captive Portal"}, + {"value": "1", "label": "802.1X Supplicant"} + ] + }, + { + "type": "raw_html", + "html": "
" + }, + { + "type": "field", + "label": "VLAN", + "name": "vlan", + "input_type": "select", + "options": "%VLAN_OPTIONS%", + "hint": "VLAN to assign after 802.1X authentication." + }, + { + "type": "raw_html", + "html": "
" + }, + { + "type": "hr" + }, { "type": "field_row", "cols": 2, @@ -126,32 +160,6 @@ { "type": "hr" }, - { - "type": "field", - "label": "User Type", - "name": "user_type", - "input_type": "select", - "options": [ - {"value": "", "label": "-- Select User Type --"}, - {"value": "0", "label": "Captive Portal"}, - {"value": "1", "label": "802.1X Supplicant"} - ] - }, - { - "type": "raw_html", - "html": "" - }, - { - "type": "field", - "label": "VLAN", - "name": "vlan", - "input_type": "select", - "options": "%VLAN_OPTIONS%", - "hint": "VLAN to assign after 802.1X authentication." - }, - { - "type": "hr" - }, { "type": "field_row", "cols": 2, diff --git a/docker/routlin-portal/app/main.py b/docker/routlin-portal/app/main.py index ccd8638..ae9bfca 100644 --- a/docker/routlin-portal/app/main.py +++ b/docker/routlin-portal/app/main.py @@ -1,5 +1,5 @@ from flask import Flask -from pages.portal.page import bp as portal_bp +from page import bp as portal_bp app = Flask(__name__) app.register_blueprint(portal_bp) diff --git a/docker/routlin-portal/app/pages/portal/page.py b/docker/routlin-portal/app/page.py similarity index 100% rename from docker/routlin-portal/app/pages/portal/page.py rename to docker/routlin-portal/app/page.py diff --git a/docker/routlin-portal/app/pages/portal/__init__.py b/docker/routlin-portal/app/pages/portal/__init__.py deleted file mode 100644 index e69de29..0000000