[MT2343] Hide "Edit budget period" in the menu if no root budget selected
authorJean-André Santoni <jeanandre.santoni@biblibre.com>
Wed, 2 Dec 2009 14:04:44 +0000 (15:04 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Sun, 20 Dec 2009 13:31:13 +0000 (14:31 +0100)
koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin.inc

index fb57f88..27cbccb 100644 (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"),  },
                 ]