aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-08-03 15:48:38 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-08-03 15:48:38 -0400
commit9411855a99061fa29a82c2ca7941584fb7f7ca4d (patch)
tree514d44b5e6b041da67c1d08170ceccc25f6709c9
parentdf85755853b7264fdfd12092dad08c6bd576ef11 (diff)
downloadpfsense-packages-9411855a99061fa29a82c2ca7941584fb7f7ca4d.tar.gz
pfsense-packages-9411855a99061fa29a82c2ca7941584fb7f7ca4d.tar.bz2
pfsense-packages-9411855a99061fa29a82c2ca7941584fb7f7ca4d.zip
Adding field sorting and filtering support
-rw-r--r--config/tinydns/tinydns.xml12
-rw-r--r--config/tinydns/tinydns_domains.xml61
2 files changed, 67 insertions, 6 deletions
diff --git a/config/tinydns/tinydns.xml b/config/tinydns/tinydns.xml
index 1586bdba..1bca6e8c 100644
--- a/config/tinydns/tinydns.xml
+++ b/config/tinydns/tinydns.xml
@@ -180,13 +180,13 @@
<type>checkbox</type>
</field>
<field>
- <fielddescr>Interface to listen</fielddescr>
- <fieldname>interface</fieldname>
- <type>interfaces_selection</type>
- <multiple>on</multiple>
- <size>4</size>
+ <fielddescr>Interface to listen</fielddescr>
+ <fieldname>interface</fieldname>
+ <type>interfaces_selection</type>
+ <multiple>on</multiple>
+ <size>4</size>
<required>on</required>
- </field>
+ </field>
<field>
<fielddescr>Register DHCP static mappings with server</fielddescr>
<fieldname>regdhcpstatic</fieldname>
diff --git a/config/tinydns/tinydns_domains.xml b/config/tinydns/tinydns_domains.xml
index d7c4c987..01211a97 100644
--- a/config/tinydns/tinydns_domains.xml
+++ b/config/tinydns/tinydns_domains.xml
@@ -97,6 +97,67 @@
</adddeleteeditpagefields>
<fields>
<field>
+ <type>sorting</type>
+ <include_filtering_inputbox/>
+ <display_maximum_rows>200</display_maximum_rows>
+ <sortablefields>
+ <item>
+ <name>Domain</name>
+ <fieldname>hostname</fieldname>
+ <regex>
+ <![CDATA[
+ /^.*\.%FILTERTEXT%.*$/
+ ]]>
+ </regex>
+ </item>
+ <item>
+ <name>Hostname</name>
+ <fieldname>hostname</fieldname>
+ <regex>
+ <![CDATA[
+ /^%FILTERTEXT%.*$/
+ ]]>
+ </regex>
+ </item>
+ <item>
+ <name>A Records</name>
+ <fieldname>recordtype</fieldname>
+ <regex>
+ <![CDATA[
+ /^A$/
+ ]]>
+ </regex>
+ </item>
+ <item>
+ <name>MX Records</name>
+ <fieldname>recordtype</fieldname>
+ <regex>
+ <![CDATA[
+ /^MX$/
+ ]]>
+ </regex>
+ </item>
+ <item>
+ <name>PTR Records</name>
+ <fieldname>recordtype</fieldname>
+ <regex>
+ <![CDATA[
+ /^PTR$/
+ ]]>
+ </regex>
+ </item>
+ <item>
+ <name>SOA Records</name>
+ <fieldname>recordtype</fieldname>
+ <regex>
+ <![CDATA[
+ /^SOA$/
+ ]]>
+ </regex>
+ </item>
+ </sortablefields>
+ </field>
+ <field>
<type>listtopic</type>
<name>General</name>
<fieldname>temp</fieldname>