Commit d9dfdc44 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(proxy) add filter to model and form

(cherry picked from commit 60138461)
parent 048b953a
...@@ -17,6 +17,14 @@ ...@@ -17,6 +17,14 @@
<type>text</type> <type>text</type>
<help>Enter an url to fetch the blacklist from.</help> <help>Enter an url to fetch the blacklist from.</help>
</field> </field>
<field>
<id>blacklist.filter</id>
<label>filter list</label>
<type>text</type>
<type>select_multiple</type>
<style>tokenize</style>
<help><![CDATA[select categories to use, leave empty for all. Categories are visible after initial download.]]></help>
</field>
<field> <field>
<id>blacklist.description</id> <id>blacklist.description</id>
<label>Description</label> <label>Description</label>
......
...@@ -237,6 +237,12 @@ ...@@ -237,6 +237,12 @@
<Required>Y</Required> <Required>Y</Required>
<ValidationMessage>This does not look like a valid url.</ValidationMessage> <ValidationMessage>This does not look like a valid url.</ValidationMessage>
</url> </url>
<filter type="JsonKeyValueStoreField">
<Required>N</Required>
<SourceField>filename</SourceField>
<SourceFile>/tmp/%s.index</SourceFile>
<SelectAll>Y</SelectAll>
</filter>
<description type="TextField"> <description type="TextField">
<Required>Y</Required> <Required>Y</Required>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask> <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