(captiveportal, new) add list of allowed Addresses to model and form

This commit is contained in:
Ad Schellevis 2015-10-13 21:49:04 +02:00
parent 85b38f6778
commit 12bcf31ddd
2 changed files with 13 additions and 0 deletions

View File

@ -56,6 +56,15 @@
<type>text</type>
<help><![CDATA[Hostname (of this machine) to redirect login page to, leave blank to use this interface IP address, otherwise make sure the client can access DNS to resolve this location. When using a SSL certificate, make sure both this name and the cert name are equal.]]></help>
</field>
<field>
<id>zone.allowedAddresses</id>
<label>allowed addresses</label>
<type>text</type>
<type>select_multiple</type>
<style>tokenize</style>
<help><![CDATA[Avoid authentication for the addresses and subnets in this list]]></help>
<allownew>true</allownew>
</field>
<field>
<id>zone.description</id>
<label>description</label>

View File

@ -57,6 +57,10 @@
<mask>/^([0-9a-zA-Z.,_\-]){0,1024}$/u</mask>
<ValidationMessage>Please enter a valid servername, ip address or leave this option blank</ValidationMessage>
</servername>
<allowedAddresses type="CSVListField">
<Required>N</Required>
<mask>/^([\/0-9.,])*/u</mask>
</allowedAddresses>
<description type="TextField">
<Required>Y</Required>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask>