Development
This commit is contained in:
parent
fef78d7115
commit
bb07e67d53
4 changed files with 35 additions and 27 deletions
|
|
@ -95,6 +95,40 @@
|
||||||
"name": "enabled",
|
"name": "enabled",
|
||||||
"input_type": "checkbox"
|
"input_type": "checkbox"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "raw_html",
|
||||||
|
"html": "<script id=\"captive-vlan-data\" type=\"application/json\">%CAPTIVE_VLAN_OPTIONS%</script><script id=\"page-flags\" type=\"application/json\">{\"pro\": %PRO_LICENSE_JS%}</script>"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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": "<div id=\"vlan-row\">"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"label": "VLAN",
|
||||||
|
"name": "vlan",
|
||||||
|
"input_type": "select",
|
||||||
|
"options": "%VLAN_OPTIONS%",
|
||||||
|
"hint": "VLAN to assign after 802.1X authentication."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "raw_html",
|
||||||
|
"html": "</div>"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "hr"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "field_row",
|
"type": "field_row",
|
||||||
"cols": 2,
|
"cols": 2,
|
||||||
|
|
@ -126,32 +160,6 @@
|
||||||
{
|
{
|
||||||
"type": "hr"
|
"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": "<script id=\"captive-vlan-data\" type=\"application/json\">%CAPTIVE_VLAN_OPTIONS%</script><script id=\"page-flags\" type=\"application/json\">{\"pro\": %PRO_LICENSE_JS%}</script>"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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",
|
"type": "field_row",
|
||||||
"cols": 2,
|
"cols": 2,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
from pages.portal.page import bp as portal_bp
|
from page import bp as portal_bp
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.register_blueprint(portal_bp)
|
app.register_blueprint(portal_bp)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue