Bug 24201: (follow-up) Rework Desks Plugin
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / patron-toolbar.inc
blob4626a406c9227b95535d28978762e5c50ce7a7b0
1 [% INCLUDE 'blocking_errors.inc' %]
2 [% USE Categories %]
3 [% USE Koha %]
4 [% SET categories = Categories.all %]
6 [% UNLESS ( no_add ) %]
7 <div id="toolbar" class="btn-toolbar">
8     <div class="btn-group" id="new-patron-button">
9         <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New patron <span class="caret"></span></button>
10             <ul class="dropdown-menu">
11                 [% FOREACH category IN categories %]<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;categorycode=[% category.categorycode | uri %]">[% category.description | html %]</a></li>[% END %]
12             </ul>
13     </div>
14     [% IF Koha.Preference('PatronQuickAddFields') || Koha.Preference('BorrowerMandatoryField') %]
15     <div class="btn-group" id="quick-add-new-patron-button">
16         <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> Quick add new patron <span class="caret"></span></button>
17             <ul class="dropdown-menu">
18                 [% FOREACH category IN categories %]<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;categorycode=[% category.categorycode | uri %]&amp;quickadd=true">[% category.description | html %]</a></li>[% END %]
19             </ul>
20     </div>
21     [% END %]
22     [% IF CAN_user_tools_manage_patron_lists %]
23         <a class="btn btn-default" href="/cgi-bin/koha/patron_lists/lists.pl" id="patron-lists-button"><i class="fa fa-edit"></i> Patron lists</a>
24     [% END %]
26 </div>
27 [% END %]