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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-14 / +15 lines)
Lines 14-37 Link Here
14
    <li>
14
    <li>
15
        <label for="allow_add">Permissions: </label>
15
        <label for="allow_add">Permissions: </label>
16
        <select name="allow_add" id="allow_add">
16
        <select name="allow_add" id="allow_add">
17
            [% IF allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
17
            [% IF shelf.allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
18
            [% IF allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
18
            [% IF shelf.allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
19
        </select>
19
        </select>
20
        &nbsp;<span>anyone else to add entries.
20
        &nbsp;<span>anyone else to add entries.</span>
21
    </li>
21
    </li>
22
    <li>
22
    <li>
23
        <label>&nbsp;</label>
23
        <label>&nbsp;</label>
24
        <select name="allow_delete_own" id="allow_delete_own">
24
        <select name="allow_delete_own" id="allow_delete_own">
25
            [% IF allow_delete_own %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
25
            [% IF shelf.allow_delete_own %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
26
            [% IF allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
26
            [% IF shelf.allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
27
        </select>
27
        </select>
28
        &nbsp;<span>anyone to remove his own contributed entries.</span>
28
        &nbsp;<span>anyone to remove his own contributed entries.</span>
29
    </li>
29
    </li>
30
    <li>
30
    <li>
31
        <label>&nbsp;</label>
31
        <label>&nbsp;</label>
32
        <select name="allow_delete_other" id="allow_delete_other">
32
        <select name="allow_delete_other" id="allow_delete_other">
33
            [% IF allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
33
            [% IF shelf.allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
34
            [% IF allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
34
            [% IF shelf.allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
35
        </select>
35
        </select>
36
        &nbsp;<span>anyone to remove other contributed entries.</span>
36
        &nbsp;<span>anyone to remove other contributed entries.</span>
37
    </li>
37
    </li>
Lines 46-67 Link Here
46
        [% END %]
46
        [% END %]
47
47
48
        [% IF op != 'list' %]
48
        [% IF op != 'list' %]
49
            <a href="/cgi-bin/koha/cgi-bin/koha/opac-shelves.pl">Lists</a>
49
            <li><a href="/cgi-bin/koha/cgi-bin/koha/opac-shelves.pl">Lists</a></li>
50
        [% ELSE %]
50
        [% ELSE %]
51
            Lists
51
            <li>Lists</li>
52
        [% END %]
52
        [% END %]
53
53
54
        [% IF shelf and shelf.category == PRIVATE %] &rsaquo;
54
        [% IF shelf and shelf.category == PRIVATE %] &rsaquo;
55
            [% IF op == 'view' OR op == 'edit_form' %]
55
            [% IF op == 'view' OR op == 'edit_form' %]
56
                <a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=[% PRIVATE %]">Your lists</a>
56
                <li><a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=[% PRIVATE %]">Your lists</a></li>
57
            [% ELSE %]
57
            [% ELSE %]
58
                Your lists
58
                <li>Your lists</li>
59
            [% END %]
59
            [% END %]
60
        [% ELSIF shelf AND shelf.category == PUBLIC %] &rsaquo;
60
        [% ELSIF shelf AND shelf.category == PUBLIC %] &rsaquo;
61
            [% IF op == 'view' %]
61
            [% IF op == 'view' %]
62
                <a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=[% PUBLIC %]">Public lists</a>
62
                <li><a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=[% PUBLIC %]">Public lists</a></li>
63
            [% ELSE %]
63
            [% ELSE %]
64
                Public lists
64
                <li>Public lists</li>
65
            [% END %]
65
            [% END %]
66
        [% END %]
66
        [% END %]
67
67
Lines 705-710 Link Here
705
                                    <p>No private lists.</p>
705
                                    <p>No private lists.</p>
706
                                [% END %]
706
                                [% END %]
707
                            [% END %]
707
                            [% END %]
708
                            <div> [%# privateshelves or publicshelves %]
709
                            </div> [%# <div class="toptabs ui-tabs ui-widget ui-widget-content ui-corner-all"> %]
708
                        [% ELSIF NOT loggedinusernumber %]
710
                        [% ELSIF NOT loggedinusernumber %]
709
                            [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
711
                            [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
710
                                <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
712
                                <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
711
- 

Return to bug 14544