Lines 498-503
Link Here
|
498 |
|
498 |
|
499 |
<h1>Suggestions management</h1> |
499 |
<h1>Suggestions management</h1> |
500 |
|
500 |
|
|
|
501 |
<label for="branchcode">Viewing suggestions for library:</label> |
502 |
<select name="branchcode" id="branchcode"> |
503 |
<option value="">Any</option> |
504 |
[% IF branchfilter %] |
505 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter ) %] |
506 |
[% ELSE %] |
507 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %] |
508 |
[% END %] |
509 |
</select> |
510 |
|
501 |
|
511 |
|
502 |
[% FOR m IN messages %] |
512 |
[% FOR m IN messages %] |
503 |
<div class="dialog [% m.type | html %]"> |
513 |
<div class="dialog [% m.type | html %]"> |
Lines 751-756
Link Here
|
751 |
<aside> |
761 |
<aside> |
752 |
|
762 |
|
753 |
<form name="suggestionfilter" action="suggestion.pl" method="get"> |
763 |
<form name="suggestionfilter" action="suggestion.pl" method="get"> |
|
|
764 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
754 |
<fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label> |
765 |
<fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label> |
755 |
<select name="displayby" id="displayby" style="width:auto;"> |
766 |
<select name="displayby" id="displayby" style="width:auto;"> |
756 |
[% IF ( displayby == "STATUS" ) %] |
767 |
[% IF ( displayby == "STATUS" ) %] |
Lines 897-911
Link Here
|
897 |
[% IF ( budgetsloo.selected ) %]<option value="[% budgetsloo.budget_id | html %]" selected="selected">[% budgetsloo.budget_name | html %]</option>[% ELSE %]<option value="[% budgetsloo.budget_id | html %]">[% budgetsloo.budget_name | html %]</option>[% END %] |
908 |
[% IF ( budgetsloo.selected ) %]<option value="[% budgetsloo.budget_id | html %]" selected="selected">[% budgetsloo.budget_name | html %]</option>[% ELSE %]<option value="[% budgetsloo.budget_id | html %]">[% budgetsloo.budget_name | html %]</option>[% END %] |
898 |
[% END %] |
909 |
[% END %] |
899 |
</select></li> |
910 |
</select></li> |
900 |
<li><label for="branchcode">Library:</label> |
|
|
901 |
<select name="branchcode" id="branchcode"> |
902 |
<option value="__ANY__">Any</option> |
903 |
[% IF branchfilter %] |
904 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter ) %] |
905 |
[% ELSE %] |
906 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %] |
907 |
[% END %] |
908 |
</select></li> |
909 |
<li> |
911 |
<li> |
910 |
<input type="submit" value="Go" /> |
912 |
<input type="submit" value="Go" /> |
911 |
</li> |
913 |
</li> |
Lines 1012-1017
Link Here
|
1012 |
[% END %] |
1014 |
[% END %] |
1013 |
[% END %] |
1015 |
[% END %] |
1014 |
|
1016 |
|
|
|
1017 |
$("#branchcode").on('change',function(){ |
1018 |
let branchcode = $(this).val(); |
1019 |
if( branchcode == '' ){ branchcode = "__ANY__" } |
1020 |
$('input[name="branchcode"]').val( branchcode ); |
1021 |
$('form[name="suggestionfilter"]').submit(); |
1022 |
}); |
1015 |
$(".checkall").click(function(e){ |
1023 |
$(".checkall").click(function(e){ |
1016 |
e.preventDefault(); |
1024 |
e.preventDefault(); |
1017 |
$(this).parents('form').checkCheckboxes(); |
1025 |
$(this).parents('form').checkCheckboxes(); |
1018 |
- |
|
|