Bug 9043 [QA Followup] - Don't show "More options" are there aren't any

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Kyle Hall 2014-09-12 09:59:12 -04:00 committed by Tomas Cohen Arazi
parent 6b0d183973
commit b143d68534

View file

@ -359,10 +359,12 @@
<p> <p>
<input class="btn btn-success" type="submit" accesskey="s" name="do" title="Search" value="Search" /> <input class="btn btn-success" type="submit" accesskey="s" name="do" title="Search" value="Search" />
[% IF expanded_options %] [% IF OpacAdvSearchMoreOptions.size > 0 %]
<a href="/cgi-bin/koha/opac-search.pl?expanded_options=0" class="btn btn-default more-less-options">Fewer options</a> [% IF expanded_options %]
[% ELSIF not expanded_options %] <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0" class="btn btn-default more-less-options">Fewer options</a>
<a href="/cgi-bin/koha/opac-search.pl?expanded_options=1" class="btn btn-default more-less-options">More options</a> [% ELSIF not expanded_options %]
<a href="/cgi-bin/koha/opac-search.pl?expanded_options=1" class="btn btn-default more-less-options">More options</a>
[% END %]
[% END %] [% END %]
<a href="/cgi-bin/koha/opac-search.pl?do=Clear" class="btn btn-default new-search">New search</a> <a href="/cgi-bin/koha/opac-search.pl?do=Clear" class="btn btn-default new-search">New search</a>