From 567b90a35c9f8b3cef35fc311c24463fab514d4b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 3 May 2014 20:14:47 +0200 Subject: [PATCH] Improve user option search Searching certain user options can be enabled/disabled making it possible to search for "empty" user options. --- .../multiSelectSearchableOptionType.tpl | 21 ++++++++++++++++++ .../radioButtonSearchableOptionType.tpl | 19 ++++++++++++++++ .../templates/selectSearchableOptionType.tpl | 22 +++++++++++++++++++ .../templates/textSearchableOptionType.tpl | 17 ++++++++++++++ com.woltlab.wcf/userOption.xml | 2 +- .../multiSelectSearchableOptionType.tpl | 21 ++++++++++++++++++ .../radioButtonSearchableOptionType.tpl | 19 ++++++++++++++++ .../templates/selectSearchableOptionType.tpl | 22 +++++++++++++++++++ .../templates/textSearchableOptionType.tpl | 17 ++++++++++++++ .../files/lib/form/UserSearchForm.class.php | 5 +++++ .../option/BirthdayOptionType.class.php | 19 +++++++++++----- .../option/MultiSelectOptionType.class.php | 16 +++++++++++++- .../option/RadioButtonOptionType.class.php | 8 ++++--- .../system/option/SelectOptionType.class.php | 14 +++++++++--- .../system/option/TextOptionType.class.php | 21 ++++++++++++++---- wcfsetup/install/lang/de.xml | 3 +++ wcfsetup/install/lang/en.xml | 3 +++ 17 files changed, 232 insertions(+), 17 deletions(-) create mode 100644 com.woltlab.wcf/templates/multiSelectSearchableOptionType.tpl create mode 100644 com.woltlab.wcf/templates/radioButtonSearchableOptionType.tpl create mode 100644 com.woltlab.wcf/templates/selectSearchableOptionType.tpl create mode 100644 com.woltlab.wcf/templates/textSearchableOptionType.tpl create mode 100644 wcfsetup/install/files/acp/templates/multiSelectSearchableOptionType.tpl create mode 100644 wcfsetup/install/files/acp/templates/radioButtonSearchableOptionType.tpl create mode 100644 wcfsetup/install/files/acp/templates/selectSearchableOptionType.tpl create mode 100644 wcfsetup/install/files/acp/templates/textSearchableOptionType.tpl diff --git a/com.woltlab.wcf/templates/multiSelectSearchableOptionType.tpl b/com.woltlab.wcf/templates/multiSelectSearchableOptionType.tpl new file mode 100644 index 0000000000..67531cfdb2 --- /dev/null +++ b/com.woltlab.wcf/templates/multiSelectSearchableOptionType.tpl @@ -0,0 +1,21 @@ + + + + diff --git a/com.woltlab.wcf/templates/radioButtonSearchableOptionType.tpl b/com.woltlab.wcf/templates/radioButtonSearchableOptionType.tpl new file mode 100644 index 0000000000..b52bcd6d84 --- /dev/null +++ b/com.woltlab.wcf/templates/radioButtonSearchableOptionType.tpl @@ -0,0 +1,19 @@ + +{foreach from=$selectOptions key=key item=selectOption} + +{/foreach} + + diff --git a/com.woltlab.wcf/templates/selectSearchableOptionType.tpl b/com.woltlab.wcf/templates/selectSearchableOptionType.tpl new file mode 100644 index 0000000000..cb54c0476f --- /dev/null +++ b/com.woltlab.wcf/templates/selectSearchableOptionType.tpl @@ -0,0 +1,22 @@ + + + + diff --git a/com.woltlab.wcf/templates/textSearchableOptionType.tpl b/com.woltlab.wcf/templates/textSearchableOptionType.tpl new file mode 100644 index 0000000000..945e8366e7 --- /dev/null +++ b/com.woltlab.wcf/templates/textSearchableOptionType.tpl @@ -0,0 +1,17 @@ + + + + diff --git a/com.woltlab.wcf/userOption.xml b/com.woltlab.wcf/userOption.xml index 08a21e0feb..331acd191e 100644 --- a/com.woltlab.wcf/userOption.xml +++ b/com.woltlab.wcf/userOption.xml @@ -81,7 +81,7 @@