bug 4205 remove extra 'plan by' option
authorNicole Engard <nengard@bywatersolutions.com>
Mon, 31 May 2010 23:56:23 +0000 (19:56 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Fri, 4 Jun 2010 00:04:23 +0000 (20:04 -0400)
There wasn't a conditional in place to stop the planning
pull down from showing a blank 'plan by' option.

This patch also makes the other 'plan by' options look
cleaner by removing the all caps.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc

index f0c041c..c3ec018 100644 (file)
 
                var planning_menu = [
 
-                        { text: _("Plan by MONTHS"),
+                        { text: _("Plan by Months"),
                             url: "/cgi-bin/koha/admin/aqplan.pl?budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->&authcat=MONTHS"
                             <!-- TMPL_UNLESS NAME="CAN_user_acquisition_planning_manage" -->,  id:'disabled' <!-- /TMPL_UNLESS  -->
                         },
 
-                        { text: _("Plan by BRANCHES"),
+                        { text: _("Plan by Branches"),
                             url: "/cgi-bin/koha/admin/aqplan.pl?budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->&authcat=BRANCHES"
                             <!-- TMPL_UNLESS NAME="CAN_user_acquisition_planning_manage" -->,  id:'disabled' <!-- /TMPL_UNLESS  -->
                         },
 
-                        { text: _("Plan by ITEMTYPES"),
+                        { text: _("Plan by Item Types"),
                             url: "/cgi-bin/koha/admin/aqplan.pl?budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->&authcat=ITEMTYPES"
                             <!-- TMPL_UNLESS NAME="CAN_user_acquisition_planning_manage" -->,  id:'disabled' <!-- /TMPL_UNLESS  -->
                         },
-
+           <!-- TMPL_IF NAME="authcat" -->
                 <!-- TMPL_LOOP NAME="auth_cats_loop" -->
                         { text: _("Plan by <!-- TMPL_VAR NAME="authcat" -->    "),
                             url: "/cgi-bin/koha/admin/aqplan.pl?budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->&authcat=<!-- TMPL_VAR NAME="authcat" -->"
                             <!-- TMPL_UNLESS NAME="CAN_user_acquisition_planning_manage" -->,  id:'disabled' <!-- /TMPL_UNLESS  -->
                         },
                 <!-- /TMPL_LOOP -->
+           <!-- /TMPL_IF -->
                 ]
 
                    new YAHOO.widget.Button({