Owen Leonard
4800a515c5
Correcting Budgets-related includes. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
<div id="toolbar"><script type="text/javascript">
|
|
//<![CDATA[
|
|
|
|
// prepare DOM for YUI Toolbar
|
|
$(document).ready(function() {
|
|
$("#periods_menuc").empty();
|
|
$("#budgets_menuc").empty();
|
|
$("#planning_menuc").empty();
|
|
|
|
yuiToolbar();
|
|
});
|
|
|
|
// YUI Toolbar Functions
|
|
function yuiToolbar() {
|
|
var periods_menu = [
|
|
{ text: _("Display all root budgets"), url: "/cgi-bin/koha/admin/aqbudgetperiods.pl" },
|
|
{ text: _("New root budget"), url: "/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form" },
|
|
{ text: _("Duplicate root budget"), },
|
|
]
|
|
new YAHOO.widget.Button({
|
|
type: "menu",
|
|
label: _("Root budgets"),
|
|
name: "periods_button",
|
|
menu: periods_menu,
|
|
container: "periods_menuc"
|
|
});
|
|
}
|
|
|
|
//]]>
|
|
</script>
|
|
<ul class="toolbar">
|
|
<li id="periods_menuc"><a id="periods_menu" href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form">Budgets</a></li>
|
|
<li id="budgets_menuc"><a id="budgets_menu" href="/cgi-bin/koha/cataloguing/aqbudgets.pl">Funds</a></li>
|
|
<li id="planning_menuc"><a id="planning_menu" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id %]">Budget planning</a></li>
|
|
|
|
</ul>
|
|
</div>
|