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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-1 / +35 lines)
Lines 4078-4087 div#makechart ol li { Link Here
4078
    list-style: none;
4078
    list-style: none;
4079
}
4079
}
4080
4080
4081
@media (min-width: 200px) {
4081
/* Sortable table styling */
4082
4082
4083
.handle {
4084
    background: #FCFCFC url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMAQMAAABoTh6ZAAAABlBMVEVMaXHExMQ/ZYtiAAAAAXRSTlMAQObYZgAAABNJREFUeNpjYGBgMDYAIQjAxgYAKfECU0ml038AAAAASUVORK5CYII=") repeat-y;
4085
    cursor: move;
4086
    padding: 0 1em;
4083
}
4087
}
4084
4088
4089
tr {
4090
    &.ui-sortable-helper {
4091
        td {
4092
            border-bottom: 2px solid #85CA11;
4093
            border-top: 2px solid #85CA11;
4094
4095
            &:first-child {
4096
                border-left: 2px solid #85CA11;
4097
            }
4098
4099
            &:last-child {
4100
                border-right: 2px solid #85CA11;
4101
            }
4102
        }
4103
    }
4104
}
4105
4106
.table-sort-placeholder {
4107
    height: 2.5em;
4108
    width: 100%;
4109
4110
    td {
4111
        background-color: #FFC;
4112
        border-color: #85CA11;
4113
        min-width: 3em;
4114
    }
4115
}
4116
4117
/* End sortable table styling */
4118
4085
@media (max-width: 767px) {
4119
@media (max-width: 767px) {
4086
    .header-menu-link {
4120
    .header-menu-link {
4087
        display: inline-block;
4121
        display: inline-block;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-5 / +24 lines)
Lines 1-7 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
<table>
2
<table id="existing_holdst">
3
    <thead>
3
    <tr>
4
    <tr>
4
        [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
5
        [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
6
            <th>&nbsp;</th>
5
            <th>Priority</th>
7
            <th>Priority</th>
6
            <th>&nbsp;</th>
8
            <th>&nbsp;</th>
7
        [% ELSE %]
9
        [% ELSE %]
Lines 19-40 Link Here
19
        <th>&nbsp;</th>
21
        <th>&nbsp;</th>
20
        [% IF SuspendHoldsIntranet %]<th>&nbsp;</th><!-- Suspend Holds Column Header -->[% END %]
22
        [% IF SuspendHoldsIntranet %]<th>&nbsp;</th><!-- Suspend Holds Column Header -->[% END %]
21
    </tr>
23
    </tr>
22
24
    </thead>
25
    <tbody>
23
    [% SET first_priority = 0 %]
26
    [% SET first_priority = 0 %]
24
    [% SET last_priority  = holds.last.priority %]
27
    [% SET last_priority  = holds.last.priority %]
25
28
26
    [% FOREACH hold IN holds %]
29
    [% FOREACH hold IN holds %]
27
    [% IF !hold.found && first_priority == 0 %][% first_priority = hold.priority %][% END %]
30
    [% IF !hold.found && first_priority == 0 %][% first_priority = hold.priority %][% END %]
28
        <tr>
31
        [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
32
            [% IF ( hold.found ) %]
33
                <tr class="no-sort">
34
                    <td>&nbsp;</td>
35
            [% ELSE %]
36
                [% IF ( hold.lowestPriority ) %]
37
                    <tr class="no-sort">
38
                        <td>&nbsp;</td>
39
                [% ELSE %]
40
                    <tr>
41
                        <td class="handle">&nbsp;</td>
42
                [% END %]
43
            [% END %]
44
        [% ELSE %]
45
            <tr class="no-sort">
46
        [% END %]
29
            <td>
47
            <td>
30
                <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
48
                <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
31
                <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
49
                <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
32
                <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
50
                <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
33
                [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
51
                [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
34
                    <select name="rank-request">
52
                    <select class="rank-request" id="rank-request_[% hold.reserve_id | html %]" name="rank-request">
35
                [% ELSE %]
53
                [% ELSE %]
36
                    <input type="hidden" name="rank-request" value="[% hold.priority | html %]">
54
                    <input type="hidden" name="rank-request" value="[% hold.priority | html %]">
37
                    <select name="rank-request" disabled="disabled">
55
                    <select class="rank-request" name="rank-request" disabled="disabled">
38
                [% END %]
56
                [% END %]
39
                    [% IF ( hold.found ) %]
57
                    [% IF ( hold.found ) %]
40
                        [% IF ( hold.intransit ) %]
58
                        [% IF ( hold.intransit ) %]
Lines 210-213 Link Here
210
        </tr>
228
        </tr>
211
229
212
    [% END %]
230
    [% END %]
231
    </tbody>
213
</table>
232
</table>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 / +13 lines)
Lines 967-972 Link Here
967
                [% END %]
967
                [% END %]
968
            [% END %]
968
            [% END %]
969
969
970
            // Sortable table of existing holds
971
            // #existing_holdst is found in holds_table.inc
972
            $("#existing_holdst tbody").sortable({
973
                cursor: "move", // Cursor style
974
                handle: ".handle", // Elements with this class will serve as "handle" for dragging
975
                items: "tr:not(.no-sort)", // Only these elements will be draggable
976
                placeholder: "table-sort-placeholder",
977
                update: function( event, ui ){
978
                    $(".rank-request:enabled").each(function( index ){
979
                        $(this).val( index + 1 ); // Update the priority of the sortable holds based on the order
980
                    });
981
                }
982
            });
970
        });
983
        });
971
    </script>
984
    </script>
972
[% END %]
985
[% END %]
973
- 

Return to bug 23501