From 12bcf31ddda26f90a563bf6b9af0ff1983a44bb5 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 13 Oct 2015 21:49:04 +0200 Subject: [PATCH] (captiveportal, new) add list of allowed Addresses to model and form --- .../OPNsense/CaptivePortal/forms/dialogZone.xml | 9 +++++++++ .../app/models/OPNsense/CaptivePortal/CaptivePortal.xml | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/forms/dialogZone.xml b/src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/forms/dialogZone.xml index 8c1900690..6826b4564 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/forms/dialogZone.xml +++ b/src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/forms/dialogZone.xml @@ -56,6 +56,15 @@ text + + zone.allowedAddresses + + text + select_multiple + + + true + zone.description diff --git a/src/opnsense/mvc/app/models/OPNsense/CaptivePortal/CaptivePortal.xml b/src/opnsense/mvc/app/models/OPNsense/CaptivePortal/CaptivePortal.xml index 6366916dc..7020d6cae 100644 --- a/src/opnsense/mvc/app/models/OPNsense/CaptivePortal/CaptivePortal.xml +++ b/src/opnsense/mvc/app/models/OPNsense/CaptivePortal/CaptivePortal.xml @@ -57,6 +57,10 @@ /^([0-9a-zA-Z.,_\-]){0,1024}$/u Please enter a valid servername, ip address or leave this option blank + + N + /^([\/0-9.,])*/u + Y /^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u