Koha/koha-tmpl/intranet-tmpl/prog/en/includes/ill-toolbar.inc
Andrew Isherwood f95c7845fe Bug 20515: (follow-up) Add missing CAN_user_ill
This follow up patch adds two missing CAN_user_ill tests in templates

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-04-16 13:59:34 -03:00

30 lines
1.5 KiB
HTML

[% USE Koha %]
[% IF Koha.Preference('ILLModule ') && CAN_user_ill %]
<div id="toolbar" class="btn-toolbar">
[% IF backends_available %]
[% IF backends.size > 1 %]
<div class="dropdown btn-group">
<button class="btn btn-sm btn-default dropdown-toggle" type="button" id="ill-backend-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-plus"></i> New ILL request <span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="ill-backend-dropdown">
[% FOREACH backend IN backends %]
<li><a href="/cgi-bin/koha/ill/ill-requests.pl?method=create&amp;backend=[% backend %]">[% backend %]</a></li>
[% END %]
</ul>
</div>
[% ELSE %]
<a id="ill-new" class="btn btn-sm btn-default" href="/cgi-bin/koha/ill/ill-requests.pl?method=create&amp;backend=[% backends.0 %]">
<i class="fa fa-plus"></i> New ILL request
</a>
[% END %]
[% ELSE %]
<a id="ill-new" class="btn btn-sm btn-default disabled" href="">
<i class="fa fa-plus"></i> New ILL request
</a>
[% END %]
<a id="ill-list" class="btn btn-sm btn-default btn-group" href="/cgi-bin/koha/ill/ill-requests.pl">
<i class="fa fa-list"></i> List requests
</a>
</div>
[% END %]