[MT2343] Hide "Edit budget period" in the menu if no root budget selected

This commit is contained in:
Jean-André Santoni 2009-12-02 15:04:44 +01:00 committed by Henri-Damien LAURENT
parent 5b8d8af2b4
commit 43ebd20604
1 changed files with 2 additions and 0 deletions

View File

@ -23,7 +23,9 @@
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" },
<!-- TMPL_IF NAME="budget_period_id" -->
{ text: _("Edit root budget '<!-- TMPL_VAR NAME="budget_period_description" -->'"), url: "/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form&budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->" },
<!-- /TMPL_IF -->
{ text: _("Duplicate root budget"), },
]