f95c7845fe
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>
30 lines
1.5 KiB
HTML
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&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&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 %]
|