Lines 235-251
Link Here
|
235 |
[% INCLUDE 'html-customization-help.inc' %] |
235 |
[% INCLUDE 'html-customization-help.inc' %] |
236 |
</li> |
236 |
</li> |
237 |
[% UNLESS my_branch_as_staff %] |
237 |
[% UNLESS my_branch_as_staff %] |
238 |
<li> |
238 |
<li> |
239 |
<label for="branchcode">Library: </label> |
239 |
<label for="branchcode">Library: </label> |
240 |
<select id="branchcode" name="branchcode"> |
240 |
<select id="branchcode" name="branchcode"> |
241 |
[% IF additional_content.branchcode == '' %] |
241 |
[% IF additional_content.branchcode == '' %] |
242 |
<option value="" selected="selected">All libraries</option> |
242 |
<option value="" selected="selected">All libraries</option> |
243 |
[% ELSE %] |
243 |
[% ELSE %] |
244 |
<option value="">All libraries</option> |
244 |
<option value="">All libraries</option> |
245 |
[% END %] |
245 |
[% END %] |
246 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => additional_content.branchcode, unfiltered => 1, ) %] |
246 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => additional_content.branchcode, unfiltered => 1, ) %] |
247 |
</select> |
247 |
</select> |
248 |
</li> |
248 |
</li> |
249 |
[% END %] |
249 |
[% END %] |
250 |
[% UNLESS languages.size %] |
250 |
[% UNLESS languages.size %] |
251 |
<li> |
251 |
<li> |
Lines 402-410
Link Here
|
402 |
[% SET default_localization = c.default_localization %] |
402 |
[% SET default_localization = c.default_localization %] |
403 |
<tr [% IF c.is_expired %]class="expired"[% END %]> |
403 |
<tr [% IF c.is_expired %]class="expired"[% END %]> |
404 |
<td> |
404 |
<td> |
405 |
[% UNLESS ( my_branch_as_staff && my_branch_as_staff != c.branchcode ) %] |
405 |
[% UNLESS ( my_branch_as_staff && my_branch_as_staff != c.branchcode ) %] |
406 |
<input type="checkbox" name="ids" value="[% c.id | html %]" /> |
406 |
<input type="checkbox" name="ids" value="[% c.id | html %]" /> |
407 |
[% END %] |
407 |
[% END %] |
408 |
</td> |
408 |
</td> |
409 |
<td> |
409 |
<td> |
410 |
[% IF c.category == 'news' || c.category == 'pages' %] |
410 |
[% IF c.category == 'news' || c.category == 'pages' %] |
Lines 468-493
Link Here
|
468 |
</div> |
468 |
</div> |
469 |
</td> |
469 |
</td> |
470 |
<td class="actions"> |
470 |
<td class="actions"> |
471 |
[% UNLESS ( my_branch_as_staff && my_branch_as_staff != c.branchcode ) %] |
471 |
[% UNLESS ( my_branch_as_staff && my_branch_as_staff != c.branchcode ) %] |
472 |
<div class="btn-group dropup"> |
472 |
<div class="btn-group dropup"> |
473 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&id=[% c.id | uri %]&editmode=[% editmode | uri %]" class="btn btn-default btn-xs"> <i class="fa-solid fa-pencil"></i> Edit</a |
473 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&id=[% c.id | uri %]&editmode=[% editmode | uri %]" class="btn btn-default btn-xs"> <i class="fa-solid fa-pencil"></i> Edit</a |
474 |
><button class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"> </button> |
474 |
><button class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"> </button> |
475 |
<ul class="dropdown-menu"> |
475 |
<ul class="dropdown-menu"> |
476 |
<li> |
476 |
<li> |
477 |
[% IF ( wysiwyg ) %] |
477 |
[% IF ( wysiwyg ) %] |
478 |
<a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&id=[% c.id | uri %]&editmode=text"><i class="fa-solid fa-pencil"></i> Edit with text editor</a> |
478 |
<a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&id=[% c.id | uri %]&editmode=text" |
479 |
[% ELSE %] |
479 |
><i class="fa-solid fa-pencil"></i> Edit with text editor</a |
480 |
<a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&id=[% c.id | uri %]&editmode=wysiwyg" |
480 |
> |
481 |
><i class="fa-solid fa-pencil"></i> Edit with WYSIWYG editor</a |
481 |
[% ELSE %] |
482 |
> |
482 |
<a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&id=[% c.id | uri %]&editmode=wysiwyg" |
483 |
[% END %] |
483 |
><i class="fa-solid fa-pencil"></i> Edit with WYSIWYG editor</a |
484 |
</li> |
484 |
> |
485 |
</ul> |
485 |
[% END %] |
486 |
</div> |
486 |
</li> |
487 |
<div class="btn-group"> |
487 |
</ul> |
488 |
<a href="#" class="delete_news btn btn-default btn-xs" data-id="[% c.id | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
488 |
</div> |
489 |
</div> |
489 |
<div class="btn-group"> |
490 |
[% END %] |
490 |
<a href="#" class="delete_news btn btn-default btn-xs" data-id="[% c.id | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
|
|
491 |
</div> |
492 |
[% END %] |
491 |
</td> |
493 |
</td> |
492 |
</tr> |
494 |
</tr> |
493 |
[% END %] |
495 |
[% END %] |
494 |
- |
|
|