Lines 216-221
Link Here
|
216 |
[% PROCESS locations_options location => additional_content.location %] |
216 |
[% PROCESS locations_options location => additional_content.location %] |
217 |
</select> |
217 |
</select> |
218 |
</li> |
218 |
</li> |
|
|
219 |
[% UNLESS my_branch %] |
219 |
<li> |
220 |
<li> |
220 |
<label for="branchcode">Library: </label> |
221 |
<label for="branchcode">Library: </label> |
221 |
<select id="branchcode" name="branchcode"> |
222 |
<select id="branchcode" name="branchcode"> |
Lines 227-232
Link Here
|
227 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => additional_content.branchcode, unfiltered => 1, ) %] |
228 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => additional_content.branchcode, unfiltered => 1, ) %] |
228 |
</select> |
229 |
</select> |
229 |
</li> |
230 |
</li> |
|
|
231 |
[% END %] |
230 |
[% UNLESS languages.size %] |
232 |
[% UNLESS languages.size %] |
231 |
<li> |
233 |
<li> |
232 |
[% IF category == 'news' %] |
234 |
[% IF category == 'news' %] |
Lines 366-372
Link Here
|
366 |
[% FOREACH c IN additional_contents%] |
368 |
[% FOREACH c IN additional_contents%] |
367 |
[% IF ( c.is_expired ) %]<tr class="expired">[% ELSE %]<tr>[% END %] |
369 |
[% IF ( c.is_expired ) %]<tr class="expired">[% ELSE %]<tr>[% END %] |
368 |
<td> |
370 |
<td> |
|
|
371 |
[% UNLESS ( my_branch && my_branch != c.branchcode ) %] |
369 |
<input type="checkbox" name="ids" value="[% c.idnew | html %]" /> |
372 |
<input type="checkbox" name="ids" value="[% c.idnew | html %]" /> |
|
|
373 |
[% END %] |
370 |
</td> |
374 |
</td> |
371 |
<td> |
375 |
<td> |
372 |
[% IF c.category == 'news' || c.category == 'pages' %] |
376 |
[% IF c.category == 'news' || c.category == 'pages' %] |
Lines 410-416
Link Here
|
410 |
[% END %] |
414 |
[% END %] |
411 |
<td> |
415 |
<td> |
412 |
<div class="btn-group"> |
416 |
<div class="btn-group"> |
413 |
<a class="preview_news btn btn-default btn-xs" data-number="[% loop.count | html %]"><i class="fa-solid fa-eye aria-hidden="true"></i> Preview content</a> |
417 |
<a class="preview_news btn btn-default btn-xs" data-number="[% loop.count | html %]"><i class="fa-solid fa-eye" aria-hidden="true"></i> Preview content</a> |
414 |
</div> |
418 |
</div> |
415 |
<div id="contentModal[% loop.count | html %]" class="modal" tabindex="-1" role="dialog" data-number="[% loop.count | html %]"> |
419 |
<div id="contentModal[% loop.count | html %]" class="modal" tabindex="-1" role="dialog" data-number="[% loop.count | html %]"> |
416 |
<div class="modal-dialog" role="document"> |
420 |
<div class="modal-dialog" role="document"> |
Lines 428-433
Link Here
|
428 |
</div> |
432 |
</div> |
429 |
</td> |
433 |
</td> |
430 |
<td class="actions"> |
434 |
<td class="actions"> |
|
|
435 |
[% UNLESS ( my_branch && my_branch != c.branchcode ) %] |
431 |
<div class="btn-group dropup"> |
436 |
<div class="btn-group dropup"> |
432 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&id=[% c.idnew | uri %]&editmode=[% editmode | uri %]" class="btn btn-default btn-xs"> <i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a><button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"> |
437 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&id=[% c.idnew | uri %]&editmode=[% editmode | uri %]" class="btn btn-default btn-xs"> <i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a><button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"> |
433 |
<span class="caret"></span> |
438 |
<span class="caret"></span> |
Lines 445-450
Link Here
|
445 |
<div class="btn-group"> |
450 |
<div class="btn-group"> |
446 |
<a href="#" class="delete_news btn btn-default btn-xs" data-idnew="[% c.idnew | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
451 |
<a href="#" class="delete_news btn btn-default btn-xs" data-idnew="[% c.idnew | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
447 |
</div> |
452 |
</div> |
|
|
453 |
[% END %] |
448 |
</td> |
454 |
</td> |
449 |
</tr> |
455 |
</tr> |
450 |
[% END %] |
456 |
[% END %] |
Lines 452-458
Link Here
|
452 |
</table> |
458 |
</table> |
453 |
<input type="hidden" name="op" value="delete_confirmed" /> |
459 |
<input type="hidden" name="op" value="delete_confirmed" /> |
454 |
<input type="hidden" name="category" value="[% category | html %]" /> |
460 |
<input type="hidden" name="category" value="[% category | html %]" /> |
455 |
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Delete selected" /></fieldset> |
461 |
<fieldset class="action">ssss<input type="submit" class="btn btn-primary" value="Delete selected" /></fieldset> |
456 |
</form> |
462 |
</form> |
457 |
<form action="/cgi-bin/koha/tools/additional-contents.pl" method="post" id="delete_single"> |
463 |
<form action="/cgi-bin/koha/tools/additional-contents.pl" method="post" id="delete_single"> |
458 |
[% INCLUDE 'csrf-token.inc' %] |
464 |
[% INCLUDE 'csrf-token.inc' %] |