Jonathan Druart
5825026448
This patch has been generated with the script provided on bug 21576. It only affects variable used in the href attribute of a link *when* href it the first attribute of the node (grep "a href") Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
27 lines
1.5 KiB
HTML
27 lines
1.5 KiB
HTML
[% INCLUDE 'blocking_errors.inc' %]
|
|
[% USE Categories %]
|
|
[% USE Koha %]
|
|
[% SET categories = Categories.all %]
|
|
|
|
[% UNLESS ( no_add ) %]
|
|
<div id="toolbar" class="btn-toolbar">
|
|
<div class="btn-group" id="new-patron-button">
|
|
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New patron <span class="caret"></span></button>
|
|
<ul class="dropdown-menu">
|
|
[% FOREACH category IN categories %]<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=[% category.categorycode | uri %]">[% category.description | html %]</a></li>[% END %]
|
|
</ul>
|
|
</div>
|
|
[% IF Koha.Preference('PatronQuickAddFields') || Koha.Preference('BorrowerMandatoryField') %]
|
|
<div class="btn-group" id="quick-add-new-patron-button">
|
|
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> Quick add new patron <span class="caret"></span></button>
|
|
<ul class="dropdown-menu">
|
|
[% FOREACH category IN categories %]<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=[% category.categorycode | uri %]&quickadd=true">[% category.description | html %]</a></li>[% END %]
|
|
</ul>
|
|
</div>
|
|
[% END %]
|
|
[% IF CAN_user_tools_manage_patron_lists %]
|
|
<a class="btn btn-default btn-sm" href="/cgi-bin/koha/patron_lists/lists.pl" id="patron-lists-button"><i class="fa fa-edit"></i> Patron lists</a>
|
|
[% END %]
|
|
|
|
</div>
|
|
[% END %]
|