From 9965b1117178f5264845e0cb98688281517fe8a9 Mon Sep 17 00:00:00 2001
From: Maxime Pelletier <maxime.pelletier@libeo.com>
Date: Mon, 4 Mar 2013 16:12:15 -0500
Subject: [PATCH] Bug 9744Add a column "Fund name" the the acquisition home.

It also includes css to move the table below the content if the table is too big to fit in the page.

Sponsored-by: CCSR
---
 koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css        |   11 +++++++++++
 koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt |    6 +++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
index c98c4ae..ce6344d 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
@@ -2280,3 +2280,14 @@ div#acqui_order_supplierlist > div.supplier > div.baskets {
 .contents .r {
     display: inline;
 }
+
+#BudgetsAndFundsWrapper {
+    display: block;
+    float: left;
+    width: auto;
+}
+
+#acqui_acqui_home_order {
+    margin-right: 50px;
+    min-width: 780px;
+}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt
index f0e2942..7179962 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt
@@ -75,7 +75,7 @@ $(document).ready(function() {
 
 </div>
 
-<div class="yui-u">
+<div class="yui-u" id="BudgetsAndFundsWrapper">
 
         [% IF ( loop_budget ) %]
 
@@ -91,6 +91,7 @@ $(document).ready(function() {
         <thead>
         <tr>
             <th>Fund</th>
+	    <th>Fund name</th>
             <th>Owner</th>
             <th>Library</th>
             <th>Amount</th>
@@ -104,6 +105,7 @@ $(document).ready(function() {
             <th>Total</th>
             <th>&nbsp;</th>
             <th>&nbsp;</th>
+            <th>&nbsp;</th>
             <th align="right" ><span class="bu_active" style="display : none;">[% total %]</span><span class="bu_inactive" >[% total_active %]</span></th>
             <th align="right" ><span class="bu_active" style="display : none;">[% totordered %]</span><span class="bu_inactive" >[% totordered_active %]</span></th>
             <th align="right" ><span class="bu_active" style="display : none;">[% totspent %]</span><span class="bu_inactive" >[% totspent_active %]</span></th>
@@ -119,6 +121,7 @@ $(document).ready(function() {
                 <tr class="highlight">
             [% END %]
                 <td align="center">[% loop_budge.budget_code %]</td>
+                <td>[% loop_budge.budget_name %]</td>
                 <td align="center">[% loop_budge.budget_owner %]</td>
                 <td align="center">[% loop_budge.budget_branchname %]</td>
                 <td align="right" >[% loop_budge.budget_amount %]</td>
@@ -133,6 +136,7 @@ $(document).ready(function() {
                 <tr class="highlight" id = "b_inactive" style="display : none;">
             [% END %]
             <td align="center" >[% loop_budge.budget_code %]</td>
+                <td>[% loop_budge.budget_name %]</td>
                 <td align="center">[% loop_budge.budget_owner %]</td>
                 <td align="center">[% loop_budge.budget_branchname %]</td>
                 <td align="right" >[% loop_budge.budget_amount %]</td>
-- 
1.7.10.4