View | Details | Raw Unified | Return to bug 25033
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-20 / +17 lines)
Lines 424-439 Link Here
424
        </ol>
424
        </ol>
425
    </fieldset>
425
    </fieldset>
426
    <fieldset class="rows"> <legend>Acquisition information</legend><ol>
426
    <fieldset class="rows"> <legend>Acquisition information</legend><ol>
427
        <li><label for="branchcode">Library:</label>
428
            <select name="branchcode" id="branchcode">
429
                <option value="">Any</option>
430
                [% IF branchfilter %]
431
                    [% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter ) %]
432
                [% ELSE %]
433
                    [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
434
                [% END %]
435
            </select>
436
        </li>
437
        <li><label for="budgetid">Fund:</label>
427
        <li><label for="budgetid">Fund:</label>
438
            <select name="budgetid" id="budgetid">
428
            <select name="budgetid" id="budgetid">
439
                <option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %]
429
                <option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %]
Lines 495-500 Link Here
495
485
496
<h1>Suggestions management</h1>
486
<h1>Suggestions management</h1>
497
487
488
<label for="branchcode">Viewing suggestions for library:</label>
489
<select name="branchcode" id="branchcode">
490
    <option value="">Any</option>
491
    [% IF branchfilter %]
492
        [% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter ) %]
493
    [% ELSE %]
494
        [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
495
    [% END %]
496
</select>
497
498
498
499
[% FOR m IN messages %]
499
[% FOR m IN messages %]
500
    <div class="dialog [% m.type | html %]">
500
    <div class="dialog [% m.type | html %]">
Lines 734-739 Link Here
734
            <aside>
734
            <aside>
735
735
736
<form name="suggestionfilter" action="suggestion.pl" method="get">
736
<form name="suggestionfilter" action="suggestion.pl" method="get">
737
    <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
737
<fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label>
738
<fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label>
738
                <select name="displayby" id="displayby" style="width:auto;">
739
                <select name="displayby" id="displayby" style="width:auto;">
739
                    [% IF ( displayby == "STATUS" ) %]
740
                    [% IF ( displayby == "STATUS" ) %]
Lines 864-878 Link Here
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 %]
865
                        [% 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 %]
866
                        [% END %]
866
                    </select></li>
867
                    </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>
876
                </fieldset>
868
                </fieldset>
877
            </form>
869
            </form>
878
        [% INCLUDE 'acquisitions-menu.inc' %]
870
        [% INCLUDE 'acquisitions-menu.inc' %]
Lines 975-980 Link Here
975
                    [% END %]
967
                    [% END %]
976
                [% END %]
968
                [% END %]
977
969
970
                $("#branchcode").on('change',function(){
971
                    let branchcode = $(this).val();
972
                    if( branchcode == '' ){ branchcode = "__ANY__" }
973
                    $('input[name="branchcode"]').val( branchcode );
974
                    $('form[name="suggestionfilter"]').submit();
975
                });
978
                $(".checkall").click(function(e){
976
                $(".checkall").click(function(e){
979
                    e.preventDefault();
977
                    e.preventDefault();
980
                    $(this).parents('form').checkCheckboxes();
978
                    $(this).parents('form').checkCheckboxes();
981
- 

Return to bug 25033