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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-8 / +22 lines)
Lines 9-14 Link Here
9
[% INCLUDE 'datatables.inc' %]
9
[% INCLUDE 'datatables.inc' %]
10
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
10
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
11
11
12
[% BLOCK list_permissions %]
13
    <li>
14
        <label for="allow_changes_from">Allow changes to contents from: </label>
15
        <select name="allow_changes_from" id="allow_changes_from">
16
17
            [% IF shelf.allow_change_from_owner %]<option value="0">Nobody</option>[% ELSE %]<option value="0" selected="selected">Nobody</option>[% END %]
18
19
            [% IF shelf.allow_change_from_owner && (( !shelf.is_public && !shelf.is_shared ) || !shelf.allow_change_from_others ) %]
20
                <option value="1" selected="selected">Owner only</option>
21
            [% ELSE %]
22
                <option value="1">Owner only</option>
23
            [% END %]
24
25
            [% IF shelf.is_public || shelf.is_shared %]
26
                [% IF shelf.allow_change_from_others %]<option value="2" selected="selected">Anyone seeing this list</option>[% ELSE %]<option value="2">Anyone seeing this list</option>[% END %]
27
            [% END %]
28
29
        </select>
30
    </li>
31
[% END %]
32
12
[% IF print %]
33
[% IF print %]
13
<script type="text/javascript">
34
<script type="text/javascript">
14
    $( document ).ready(function() {
35
    $( document ).ready(function() {
Lines 549-562 function placeHold () { Link Here
549
                [% END %]
570
                [% END %]
550
                           </select></li>
571
                           </select></li>
551
572
552
            <li>
573
            [% INCLUDE list_permissions %]
553
                <label for="allow_changes_from">Allow changes to contents from: </label>
554
                <select name="allow_changes_from" id="allow_changes_from">
555
                    [% IF !shelf.allow_change_from_owner %]<option value="0">Nobody</option>[% ELSE %]<option value="0" selected="selected">Nobody</option>[% END %]
556
                    [% IF shelf.allow_change_from_owner && !shelf.allow_change_from_others %]<option value="1" selected="selected">Owner only</option>[% ELSE %]<option value="1">Owner only</option>[% END %]
557
                    [% IF shelf.allow_change_from_owner && shelf.allow_change_from_others %]<option value="2" selected="selected">Anyone seeing this list</option>[% ELSE %]<option value="2">Anyone seeing this list</option>[% END %]
558
                </select>
559
            </li>
560
574
561
        </ol>
575
        </ol>
562
    </fieldset>
576
    </fieldset>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-4 / +13 lines)
Lines 14-22 Link Here
14
    <li>
14
    <li>
15
        <label for="allow_changes_from">Allow changes to contents from: </label>
15
        <label for="allow_changes_from">Allow changes to contents from: </label>
16
        <select name="allow_changes_from" id="allow_changes_from">
16
        <select name="allow_changes_from" id="allow_changes_from">
17
            [% IF !shelf.allow_change_from_owner %]<option value="0">Nobody</option>[% ELSE %]<option value="0" selected="selected">Nobody</option>[% END %]
17
18
            [% IF shelf.allow_change_from_owner && !shelf.allow_change_from_others %]<option value="1" selected="selected">Owner only</option>[% ELSE %]<option value="1">Owner only</option>[% END %]
18
            [% IF shelf.allow_change_from_owner %]<option value="0">Nobody</option>[% ELSE %]<option value="0" selected="selected">Nobody</option>[% END %]
19
            [% IF shelf.allow_change_from_owner && shelf.allow_change_from_others %]<option value="2" selected="selected">Anyone seeing this list</option>[% ELSE %]<option value="2">Anyone seeing this list</option>[% END %]
19
20
            [% IF shelf.allow_change_from_owner && (( !shelf.is_public && !shelf.is_shared ) || !shelf.allow_change_from_others ) %]
21
                <option value="1" selected="selected">Owner only</option>
22
            [% ELSE %]
23
                <option value="1">Owner only</option>
24
            [% END %]
25
26
            [% IF shelf.is_public || shelf.is_shared %]
27
                [% IF shelf.allow_change_from_others %]<option value="2" selected="selected">Anyone seeing this list</option>[% ELSE %]<option value="2">Anyone seeing this list</option>[% END %]
28
            [% END %]
29
20
        </select>
30
        </select>
21
    </li>
31
    </li>
22
[% END %]
32
[% END %]
23
- 

Return to bug 18834