Koha/koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc
Ryan Higgins e4788e8a97 Add 'Staff' category_type to new dropdown, add category_type to GetMemberDetails retval
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-12 08:03:02 -06:00

46 lines
1.7 KiB
HTML

<div id="toolbar">
<script type="text/javascript">
//<![CDATA[
// prepare DOM for YUI Toolbar
$(document).ready(function() {
$("#addchild").parent().remove();
$("#addprofessional").parent().remove();
$("#addorganisation").parent().remove();
$("#addstaff").parent().remove();
$("#newmenuc").empty();
yuiToolbar();
});
// YUI Toolbar Functions
function yuiToolbar() {
var newmenu = [
{ text: "Adult Patron", url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=A" },
{ text: "Child Patron", url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=C" },
{ text: "Professional Patron", url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=P" },
{ text: "Organisation", url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=I" },
{ text: "Staff", url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=S" },
]
new YAHOO.widget.Button({
type: "menu",
label: "New",
name: "newmenubutton",
menu: newmenu,
container: "newmenuc"
});
}
//]]>
</script>
<ul class="toolbar">
<li id="newmenuc"><a id="addadult" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=A">Adult</a></li>
<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=C">Child</a></li>
<li><a id="addprofessional" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=P">Professional</a></li>
<li><a id="addorganisation" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=I">Organisation</a></li>
<li><a id="addstaff" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=S">Staff</a></li>
</ul></div>