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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-6 / +9 lines)
Lines 113-118 Link Here
113
        .rank-request {
113
        .rank-request {
114
            width: 50px;
114
            width: 50px;
115
        }
115
        }
116
        #cancellation-reason-div {
117
            display: flex;
118
            align-items: center;
119
        }
116
    </style>
120
    </style>
117
[% END %]
121
[% END %]
118
</head>
122
</head>
Lines 1231-1237 Link Here
1231
                    <div class="btn-group">
1235
                    <div class="btn-group">
1232
                        <button class="btn cancel_selected_holds" data-bulk="true"></button>
1236
                        <button class="btn cancel_selected_holds" data-bulk="true"></button>
1233
                    </div>
1237
                    </div>
1234
                    <fieldset id="cancellation-reason-fieldset" class="action" style="display:none">
1238
                    <div id="cancellation-reason-div" style="display:none">
1235
                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
1239
                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
1236
                        [% IF hold_cancellation.count %]
1240
                        [% IF hold_cancellation.count %]
1237
                            <label for="cancellation-reason">Cancellation reason: </label>
1241
                            <label for="cancellation-reason">Cancellation reason: </label>
Lines 1242-1248 Link Here
1242
                                [% END %]
1246
                                [% END %]
1243
                            </select>
1247
                            </select>
1244
                        [% END %]
1248
                        [% END %]
1245
                    </fieldset>
1249
                    </div>
1246
                </div>
1250
                </div>
1247
                <div class="page-section">
1251
                <div class="page-section">
1248
                    [% FOREACH biblioloo IN biblioloop %]
1252
                    [% FOREACH biblioloo IN biblioloop %]
Lines 1440-1451 Link Here
1440
        $.fn.select2.defaults.set("dropdownAutoWidth", true );
1444
        $.fn.select2.defaults.set("dropdownAutoWidth", true );
1441
1445
1442
        $(document).ready(function() {
1446
        $(document).ready(function() {
1443
            $('#cancellation-reason-fieldset').hide();
1447
            $('#cancellation-reason-div').hide();
1444
            $('.rank-request').on('change', function() {
1448
            $('.rank-request').on('change', function() {
1445
                if ( $(".rank-request option:selected[value='del']").length ) {
1449
                if ( $(".rank-request option:selected[value='del']").length ) {
1446
                    $('#cancellation-reason-fieldset').show();
1450
                    $('#cancellation-reason-div').show();
1447
                } else {
1451
                } else {
1448
                    $('#cancellation-reason-fieldset').hide();
1452
                    $('#cancellation-reason-div').hide();
1449
                }
1453
                }
1450
            });
1454
            });
1451
1455
1452
- 

Return to bug 40679