Lines 495-500
Link Here
|
495 |
|
495 |
|
496 |
<h1>Suggestions management</h1> |
496 |
<h1>Suggestions management</h1> |
497 |
|
497 |
|
|
|
498 |
<label for="branchcode">Viewing suggestions for library:</label> |
499 |
<select name="branchcode" id="branchcode"> |
500 |
<option value="">Any</option> |
501 |
[% IF branchfilter %] |
502 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter ) %] |
503 |
[% ELSE %] |
504 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %] |
505 |
[% END %] |
506 |
</select> |
507 |
|
498 |
|
508 |
|
499 |
[% FOR m IN messages %] |
509 |
[% FOR m IN messages %] |
500 |
<div class="dialog [% m.type | html %]"> |
510 |
<div class="dialog [% m.type | html %]"> |
Lines 734-739
Link Here
|
734 |
<aside> |
744 |
<aside> |
735 |
|
745 |
|
736 |
<form name="suggestionfilter" action="suggestion.pl" method="get"> |
746 |
<form name="suggestionfilter" action="suggestion.pl" method="get"> |
|
|
747 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
737 |
<fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label> |
748 |
<fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label> |
738 |
<select name="displayby" id="displayby" style="width:auto;"> |
749 |
<select name="displayby" id="displayby" style="width:auto;"> |
739 |
[% IF ( displayby == "STATUS" ) %] |
750 |
[% IF ( displayby == "STATUS" ) %] |
Lines 863-877
Link Here
|
863 |
[% FOREACH budgetsloo IN budgetsloop %] |
874 |
[% FOREACH budgetsloo IN budgetsloop %] |
864 |
[% 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 %] |
875 |
[% 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 %] |
865 |
[% END %] |
876 |
[% END %] |
866 |
</select></li> |
|
|
867 |
<li><label for="branchcode">Library:</label> |
868 |
<select name="branchcode" id="branchcode"> |
869 |
<option value="__ANY__">Any</option> |
870 |
[% IF branchfilter %] |
871 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter ) %] |
872 |
[% ELSE %] |
873 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %] |
874 |
[% END %] |
875 |
</select></li><li><input type="submit" value="Go" /></li></ol> |
877 |
</select></li><li><input type="submit" value="Go" /></li></ol> |
876 |
</fieldset> |
878 |
</fieldset> |
877 |
</form> |
879 |
</form> |
Lines 975-980
Link Here
|
975 |
[% END %] |
977 |
[% END %] |
976 |
[% END %] |
978 |
[% END %] |
977 |
|
979 |
|
|
|
980 |
$("#branchcode").on('change',function(){ |
981 |
let branchcode = $(this).val(); |
982 |
if( branchcode == '' ){ branchcode = "__ANY__" } |
983 |
$('input[name="branchcode"]').val( branchcode ); |
984 |
$('form[name="suggestionfilter"]').submit(); |
985 |
}); |
978 |
$(".checkall").click(function(e){ |
986 |
$(".checkall").click(function(e){ |
979 |
e.preventDefault(); |
987 |
e.preventDefault(); |
980 |
$(this).parents('form').checkCheckboxes(); |
988 |
$(this).parents('form').checkCheckboxes(); |
981 |
- |
|
|