|
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> |