Owen Leonard
380564e534
This patch converts the toolbar include file used to create the "New patron" menu to Bootstrap, replacing YUI button and menu code with Bootstrap markup. To test, view any page which uses patron-toolbar.inc (members-home.pl or circulation.pl after searching for a non-existent patron). Button and menu should look correct and work correctly with the AddPatronLists preference in both states. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Comment: Works as described. No errors. Looks very good! Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works nicely, no problems found. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
19 lines
No EOL
1.3 KiB
HTML
19 lines
No EOL
1.3 KiB
HTML
[% UNLESS ( no_add ) %]
|
|
<div id="toolbar" class="btn-toolbar">
|
|
<div class="btn-group">
|
|
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New patron <span class="caret"></span></button>
|
|
<ul class="dropdown-menu">
|
|
[% IF ( AddPatronLists_categorycode ) %]
|
|
[% FOREACH categorie IN categories %]<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=[% categorie.categorycode %]">[% categorie.description %]</a></li>[% END %]
|
|
[% ELSE %]
|
|
<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=A">Adult patron</a></li>
|
|
<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=C">Child patron</a></li>
|
|
<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=P">Professional patron</a></li>
|
|
<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=I">Organization</a></li>
|
|
<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=S">Staff patron</a></li>
|
|
<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=X">Statistical patron</a></li>
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
[% END %] |