Commit dd2aa490 authored by Ad Schellevis's avatar Ad Schellevis

(captiveportal, new) add allowedMACAddresses to model and form

parent 808a2604
......@@ -65,6 +65,16 @@
<help><![CDATA[Avoid authentication for the addresses and subnets in this list]]></help>
<allownew>true</allownew>
</field>
<field>
<id>zone.allowedMACAddresses</id>
<label>allowed MAC addresses</label>
<type>text</type>
<type>select_multiple</type>
<style>tokenize</style>
<help><![CDATA[Avoid authentication for the physical addresses in this list]]></help>
<allownew>true</allownew>
<advanced>true</advanced>
</field>
<field>
<id>zone.description</id>
<label>description</label>
......
......@@ -60,7 +60,13 @@
<allowedAddresses type="CSVListField">
<Required>N</Required>
<mask>/^([\/0-9.,])*/u</mask>
<ValidationMessage>Please enter valid addresses</ValidationMessage>
</allowedAddresses>
<allowedMACAddresses type="CSVListField">
<Required>N</Required>
<mask>/^([0-9a-fA-F:,])*/u</mask>
<ValidationMessage>Please enter valid mac addresses</ValidationMessage>
</allowedMACAddresses>
<description type="TextField">
<Required>Y</Required>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment