X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Facqui%2Facqui-home.tt;h=a3b08063c6d556a7440a7cb7757a29da3e131574;hb=3e3b27f87dc5c7be117f117113a75de0dad7fef6;hp=3c1df1020e4935ddb565d89426ae862672b6330f;hpb=4bdc80312017732dfa6d21671382cdc89ef4e0ad;p=srvgit 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 3c1df1020e..a3b08063c6 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 @@ -1,95 +1,79 @@ +[% USE raw %] +[% USE Asset %] [% USE Price %] +[% USE Branches %] +[% USE TablesSettings %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Acquisitions - +Acquisitions › Koha [% INCLUDE 'doc-head-close.inc' %] -[% INCLUDE 'datatables.inc' %] - - +[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") | $raw %] - -[% INCLUDE 'header.inc' %] -[% INCLUDE 'acquisitions-search.inc' %] - + +[% WRAPPER 'header.inc' %] + [% INCLUDE 'acquisitions-search.inc' %] +[% END %] -
+[% WRAPPER 'sub-header.inc' %] + [% WRAPPER breadcrumbs %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Acquisitions + [% END %] + [% END #/ WRAPPER breadcrumbs %] +[% END %] -
-
-
+
+
+
+
[% INCLUDE 'acquisitions-toolbar.inc' %]

Acquisitions

+ [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %] [% UNLESS ( loop_budget ) %] [% IF ( CAN_user_acquisition_period_manage ) %] -
You must define a budget in Administration
+ [% ELSE %]
Your administrator must define a budget in Administration
[% END %] [% END %] -
-
+
+ [% IF ( suggestions_count || all_pendingsuggestions ) %] +
+ [% ELSE %] +
+ [% END %]
Manage orders

- +

-[% IF ( suggestion && suggestions_count ) %] -
+[% IF ( CAN_user_suggestions_suggestions_manage && ( suggestions_count || all_pendingsuggestions ) ) %] +
Pending suggestions -

[% suggestions_count %] suggestions waiting. Manage suggestions.

+

+ Manage suggestions: + + [% Branches.GetLoggedInBranchname | html %]: [% suggestions_count | html %] + + [% IF (all_pendingsuggestions > 0) %] + / + + All libraries: [% all_pendingsuggestions | html %] + + [% END %] +

@@ -99,96 +83,211 @@ $(document).ready(function() { [% IF ( loop_budget ) %] -

All available funds[% IF ( branchname ) %] for [% branchname %][% END %]

+
+

All available funds

-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - [% FOREACH loop_budge IN loop_budget %] - [% IF ( loop_budge.budget_period_active ) %] - - - - - - - - - - - - [% ELSE %] - - - - - + + + + + + + + + + + [% END %] + +
FundFund nameActiveOwnerLibraryAmountOrderedSpentAvail
Total    [% total %][% total_active | $Price %][% totordered %][% totordered_active | $Price %][% totspent %][% totspent_active | $Price %][% totavail %][% totavail_active | $Price %]
- [% IF ( CAN_user_acquisition_budget_manage ) %] - [% loop_budge.budget_code %] - [% ELSE %] - [% loop_budge.budget_code %] +
+ + Expand all | + Collapse all | + Hide inactive budgets | + Show inactive budgets | +
[% loop_budge.budget_name %]Active[% IF ( loop_budge.budget_owner_borrowernumber ) %] - [% loop_budge.budget_owner_surname %], [% loop_budge.budget_owner_firstname %] - [% ELSE %] -   - [% END %] - [% loop_budge.budget_branchname %][% loop_budge.budget_amount | $Price %][% loop_budge.budget_ordered | $Price %][% loop_budge.budget_spent | $Price %][% loop_budge.budget_avail | $Price %]
- [% IF ( CAN_user_acquisition_budget_manage ) %] - [% loop_budge.budget_code %] - [% ELSE %] - [% loop_budge.budget_code %] - [% END %] - [% loop_budge.budget_name %]Inactive[% IF ( loop_budge.budget_owner_borrowernumber ) %] - [% loop_budge.budget_owner_surname %], [% loop_budge.budget_owner_firstname %] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [% FOREACH loop_budge IN loop_budget %] + [% IF loop_budge.budget_parent_id %] + [% ELSE %] -   + [% END %] - - - - - - - - [% END %] - [% END %] - -
ActiveBudget period descriptionFund codeFund nameOwnerLibraryAmountOrderedSpentTotal available
Total
[% loop_budge.budget_branchname %][% loop_budge.budget_amount | $Price %][% loop_budge.budget_ordered | $Price %][% loop_budge.budget_spent | $Price %][% loop_budge.budget_avail | $Price %]
- - [% END %] +
[% loop_budge.budget_period_active | html %]Budget [% loop_budge.budget_period_description | html %] [id=[% loop_budge.budget_period_id | html %]][% UNLESS loop_budge.budget_period_active %] (inactive)[% END %] + [% IF ( CAN_user_acquisition_budget_manage ) %] + [% loop_budge.budget_code | html %] + [% ELSE %] + [% loop_budge.budget_code | html %] + [% END %] + [% loop_budge.budget_name | html %][% IF ( loop_budge.budget_owner ) %] + [% loop_budge.budget_owner.surname | html %], [% loop_budge.budget_owner.firstname | html %] + [% ELSE %] +   + [% END %] + [% Branches.GetName( loop_budge.budget_branchcode ) | html %] + [% loop_budge.budget_amount | $Price %] + + + [% IF loop_budge.children.size %] + + ([% loop_budge.budget_ordered | $Price %]) + + [% loop_budge.total_ordered | $Price %] + [% ELSE %] + + [% loop_budge.budget_ordered | $Price %] + + [% END %] + + [% IF loop_budge.children.size %] + + ([% loop_budge.budget_spent | $Price %]) + + [% loop_budge.total_spent | $Price %] + [% ELSE %] + + [% loop_budge.budget_spent | $Price %] + + [% END %] + + [% IF loop_budge.children.size %] + ([% loop_budge.budget_avail | $Price %]) + [% loop_budge.total_avail | $Price %] + [% ELSE %] + [% loop_budge.budget_avail | $Price %] + [% END %] +
+
+
+[% END %] + +
+
+ +
+
-
-
-[% INCLUDE 'acquisitions-menu.inc' %] -
-
+
+ +[% MACRO jsinclude BLOCK %] + [% INCLUDE 'datatables.inc' %] + [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %] + [% Asset.js("js/acquisitions-menu.js") | $raw %] + [% INCLUDE 'columns_settings.inc' %] + +[% END %] + [% INCLUDE 'intranet-bottom.inc' %]