|
Lines 1-4
Link Here
|
| 1 |
[% USE KohaDates %] |
1 |
[% USE KohaDates %] |
|
|
2 |
[% USE To %] |
| 2 |
{ |
3 |
{ |
| 3 |
"sEcho": [% sEcho %], |
4 |
"sEcho": [% sEcho %], |
| 4 |
"iTotalRecords": [% iTotalRecords %], |
5 |
"iTotalRecords": [% iTotalRecords %], |
|
Lines 28-36
Link Here
|
| 28 |
} |
29 |
} |
| 29 |
|
30 |
|
| 30 |
[% BLOCK action_form -%] |
31 |
[% BLOCK action_form -%] |
| 31 |
[%- IF can_manage_shelf OR can_delete_shelf-%] |
32 |
[%~ SET action_block = '' ~%] |
| 32 |
[% IF can_manage_shelf %]<form action='shelves.pl' method='get'><input type='hidden' name='shelfnumber' value='[% shelfnumber %]' /><input type='hidden' name='op' value='modif' /><input type='submit' class='editshelf' value='Edit' /></form>[% END %][% IF can_manage_shelf OR can_delete_shelf %]<form action='shelves.pl' method='post'><input type='hidden' name='shelfoff' value='[% shelfoff %]' /><input type='hidden' name='shelves' value='1' /><input type='hidden' name='DEL-[% shelfnumber %]' value='1' /><input type='hidden' name='CONFIRM-[% shelfnumber %]' value='1' />[% IF type == 1 %]<input type='hidden' name='display' value='privateshelves' />[% ELSE %]<input type='hidden' name='display' value='publicshelves' />[% END %]<input type='submit' class='deleteshelf' onclick='return confirmDelete(MSG_CONFIRM_DELETE_LIST)' value='Delete' /></form>[% END %] |
33 |
[%~ IF can_manage_shelf OR can_delete_shelf ~%] |
| 33 |
[%- ELSE -%] |
34 |
[%~ IF can_manage_shelf ~%] |
| 34 |
None |
35 |
[%~ action_block = '<form action="shelves.pl" method="get">' ~%] |
| 35 |
[%- END -%] |
36 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' ~%] |
| 36 |
[%- END %] |
37 |
[%~ action_block = action_block _ '<input type="hidden" name="op" value="modif" />' ~%] |
|
|
38 |
[%~ action_block = action_block _ '<input type="submit" class="editshelf" value="Edit" />' ~%] |
| 39 |
[%~ action_block = action_block _ '</form>' ~%] |
| 40 |
[%~ END ~%] |
| 41 |
[%~ IF can_manage_shelf OR can_delete_shelf ~%] |
| 42 |
[%~ action_block = action_block _ '<form action="shelves.pl" method="post">' ~%] |
| 43 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfoff" value="' _ shelfoff _ '" />' ~%] |
| 44 |
[%~ action_block = action_block _ '<input type="hidden" name="shelves" value="1" />' ~%] |
| 45 |
[%~ action_block = action_block _ '<input type="hidden" name="DEL-' _ shelfnumber _ '" value="1" />' ~%] |
| 46 |
[%~ action_block = action_block _ '<input type="hidden" name="CONFIRM-' _ shelfnumber _ '" value="1" />' ~%] |
| 47 |
[%~ IF type == 1 ~%] |
| 48 |
[%~ action_block = action_block _ '<input type="hidden" name="display" value="privateshelves" />' ~%] |
| 49 |
[%~ ELSE ~%] |
| 50 |
[%~ action_block = action_block _ '<input type="hidden" name="display" value="publicshelves" />' ~%] |
| 51 |
[%~ END ~%] |
| 52 |
[%~ action_block = action_block _ '<input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" value="Delete" />' ~%] |
| 53 |
[%~ action_block = action_block _ '</form>' ~%] |
| 54 |
[%~ END ~%] |
| 55 |
[%~ ELSE ~%] |
| 56 |
[%~ SET action_block = 'None' ~%] |
| 57 |
[%~ END ~%] |
| 58 |
[%~ To.json(action_block) ~%] |
| 59 |
[%~ END ~%] |
| 37 |
- |
|
|