[biblibre-newacq] (bug #3611) improve aqbudgetperiods

Adds New Budget button periods list.
Show "Budgets" and "Budget Planning" menus only if we're in a budget period
This commit is contained in:
Nahuel ANGELINETTI 2009-09-14 15:56:28 +02:00 committed by Henri-Damien LAURENT
parent 90396d6fc5
commit 502d50830d
2 changed files with 4 additions and 3 deletions

View file

@ -28,10 +28,10 @@
]
// IF THERE IS NO BUDGETS DEFINED YET, THEN DISPLAY PERIOD BUTTON *ONLY*
<!-- TMPL_UNLESS NAME="period_button_only" -->
<!-- TMPL_IF NAME="budget_period_id" -->
var budgets_menu = [
{ text: _("Display budgets"), url: "/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->" },
{ text: _("Display budgets"), url: "/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->" },
{ text: _("New budget for '<!-- TMPL_VAR NAME="budget_period_description" -->'"), url: "/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->"
<!-- TMPL_IF NAME="budget_period_locked" -->, id:'disabled' <!-- /TMPL_IF -->
<!-- TMPL_UNLESS NAME="CAN_user_acquisition_budget_add_del" -->, id:'disabled' <!-- /TMPL_UNLESS -->
@ -67,7 +67,7 @@
<!-- /TMPL_UNLESS -->
<!-- /TMPL_IF -->
new YAHOO.widget.Button({
type: "menu",

View file

@ -297,6 +297,7 @@
<a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&amp;budget_period_id=<!-- TMPL_VAR name="budget_period_id" escape="HTML" -->">Edit</a>
<a href="<!-- TMPL_VAR name="script_name"-->?op=delete_confirm&amp;budget_period_id=<!-- TMPL_VAR name="budget_period_id" -->">Delete</a>
<a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=<!-- TMPL_VAR name="budget_period_id" -->">Budgets</a>
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->">Add Budget</a>
</td>
</tr>
<!-- /TMPL_LOOP -->