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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-8 / +21 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.allow_change_from_others %]<option value="2" selected="selected">Anyone seeing this list</option>[% ELSE %]<option value="2">Anyone seeing this list</option>[% END %]
26
27
        </select>
28
        &emsp; <span id="anyone_remark" style="color:red;">The Anyone permission has no actual effect while this list is strictly private.</span>
29
    </li>
30
[% END %]
31
12
[% IF print %]
32
[% IF print %]
13
<script type="text/javascript">
33
<script type="text/javascript">
14
    $( document ).ready(function() {
34
    $( document ).ready(function() {
Lines 549-562 function placeHold () { Link Here
549
                [% END %]
569
                [% END %]
550
                           </select></li>
570
                           </select></li>
551
571
552
            <li>
572
            [% 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
573
561
        </ol>
574
        </ol>
562
    </fieldset>
575
    </fieldset>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-4 / +12 lines)
Lines 14-23 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.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
20
        </select>
28
        </select>
29
        &emsp; <span id="anyone_remark" style="color:red;">The Anyone permission has no actual effect while this list is strictly private.</span>
21
    </li>
30
    </li>
22
[% END %]
31
[% END %]
23
32
24
- 

Return to bug 18980