From 6f8caf22ba22395b0e038989bfdc2726cc4c2342 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 17 Jun 2014 11:11:44 +0000 Subject: feature 3093: search form, ability to select the list of properties on which the search terms applies. feature 3094: minor redesign on search form. git-svn-id: http://piwigo.org/svn/trunk@28709 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/search.tpl | 54 +++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'themes/default/template') diff --git a/themes/default/template/search.tpl b/themes/default/template/search.tpl index 34b8f3625..21c61e8f7 100644 --- a/themes/default/template/search.tpl +++ b/themes/default/template/search.tpl @@ -31,39 +31,46 @@ jQuery(document).ready(function() { - {'Filter'|@translate} - {'Search for words'|@translate} - - - - - {'Search for all terms'|@translate} - - - {'Search for any term'|@translate} - - - {'Search for Author'|@translate} + {'Search for words'|@translate} + + + + {'Search for all terms'|@translate} + {'Search for any term'|@translate} + + + + {'Apply on properties'|translate} + {'Photo title'|translate} + {'Photo description'|translate} + {'File name'|translate} + + + + + + {'Search for Author'|@translate} + {foreach from=$AUTHORS item=author} {$author.author|strip_tags:false} ({$author.counter|translate_dec:'%d photo':'%d photos'}) {/foreach} - + {if isset($TAGS)} {'Search tags'|@translate} - + {foreach from=$TAGS item=tag} {$tag.name} ({$tag.counter|translate_dec:'%d photo':'%d photos'}) {/foreach} - {'All tags'|@translate} {'Any tag'|@translate} + {/if} @@ -120,20 +127,13 @@ jQuery(document).ready(function() { {'Search in albums'|@translate} - {'Albums'|@translate} + {html_options options=$category_options selected=$category_options_selected} - - - {'Search in sub-albums'|@translate} - - {'Yes'|@translate} - - - {'No'|@translate} - - + + {'Search in sub-albums'|@translate} +
+ + + {'Search for all terms'|@translate} + {'Search for any term'|@translate} +
+ {'Apply on properties'|translate} + {'Photo title'|translate} + {'Photo description'|translate} + {'File name'|translate} +
{foreach from=$AUTHORS item=author} {$author.author|strip_tags:false} ({$author.counter|translate_dec:'%d photo':'%d photos'}) {/foreach} - +
{foreach from=$TAGS item=tag} {$tag.name} ({$tag.counter|translate_dec:'%d photo':'%d photos'}) {/foreach} - {'All tags'|@translate} {'Any tag'|@translate} +
{html_options options=$category_options selected=$category_options_selected} -
-- cgit v1.2.3