From d466e0b44281f3c38382cc10c15e839cc45bdc08 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Wed, 8 Feb 2017 17:58:07 +1300 Subject: [PATCH] Bug 18002 - Added in a onboardinginclude.inc which will be the include displayed if the user has not set up their acquisitions or labels areas. This include contains a form to create a budget but this is not yet inserting into the database --- .../prog/en/includes/onboardinginclude.inc | 74 ++++++++++++++++++++++ .../prog/en/modules/acqui/acqui-home.tt | 28 +------- 2 files changed, 76 insertions(+), 26 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude.inc new file mode 100644 index 0000000..b26f070 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude.inc @@ -0,0 +1,74 @@ +[% USE Koha %] +[% USE KohaDates %] +[% USE Branches %] + + + +[% step = 1 %] + +
+ ×

+[% IF displayonboardscreen == "acquisitions" %] +

Create a budget

+
+
+ + +
    +
  1. + + +
    [% INCLUDE 'date-format.inc' %]
    +
  2. + +
  3. + + +
    [% INCLUDE 'date-format.inc' %]
    +
  4. + +
  5. + + +
  6. + +
  7. + + +
  8. + +
  9. + + [% IF ( budget_period_active ) %][% ELSE %] [% END %] +
  10. +
+ + +
+ + Cancel + + +
+[% ELSIF displayonboardscreen == "label" %] + + + +

testing

+[% END %] 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 8d1eceb..0bc0982 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 @@ -4,20 +4,6 @@ Koha › Acquisitions [% INCLUDE 'doc-head-close.inc' %] - [% INCLUDE 'datatables.inc' %] @@ -125,18 +111,8 @@ $(document).ready(function() { [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %] [% UNLESS ( loop_budget ) %] [% IF ( CAN_user_acquisition_period_manage ) %] -
- ×

- Follow these links to set everything up ready to create orders:

-

1. create a budget - -> - 2. assign a fund to that budget - -> - 3. create a vendor - -> - 4. create a basket -

-
+ [% displayonboardscreen = "acquisitions" %] + [% INCLUDE onboardinginclude.inc %] [% ELSE %]
Your administrator must define a budget in Administration
[% END %] -- 2.1.4