Bugzilla – Attachment 63225 Details for
Bug 18060
Add onboarding functionality to guide users through setting up labels for the first time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18060 - Initial label onboarding tool
Bug-18060---Initial-label-onboarding-tool.patch (text/plain), 25.32 KB, created by
Alex Buckley
on 2017-05-07 13:24:45 UTC
(
hide
)
Description:
Bug 18060 - Initial label onboarding tool
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2017-05-07 13:24:45 UTC
Size:
25.32 KB
patch
obsolete
>From 5cdc3b4addee08ad7f6d0f32d292792c4aa02917 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Sun, 29 Jan 2017 11:33:35 +0000 >Subject: [PATCH] Bug 18060 - Initial label onboarding tool > >--- > C4/Budgets.pm | 7 +++ > acqui/acqui-home.pl | 24 +++++++ > admin/aqbudgetperiods.pl | 8 ++- > admin/aqbudgets.pl | 12 +++- > admin/currency.pl | 9 +++ > koha-tmpl/intranet-tmpl/prog/css/staff-global.css | 6 ++ > .../prog/en/includes/budgets-active-currency.inc | 16 ++++- > .../prog/en/includes/onboardinginclude1.inc | 70 +++++++++++++++++++++ > .../prog/en/includes/onboardinginclude2.inc | 65 +++++++++++++++++++ > .../prog/en/includes/onboardinginclude3.inc | 73 ++++++++++++++++++++++ > .../prog/en/modules/acqui/acqui-home.tt | 48 ++++++++++++-- > .../prog/en/modules/admin/aqbudgetperiods.tt | 2 +- > .../prog/en/modules/admin/aqbudgets.tt | 3 +- > .../prog/en/modules/labels/label-home.tt | 5 +- > labels/label-home.pl | 12 ++++ > 15 files changed, 347 insertions(+), 13 deletions(-) > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude1.inc > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude2.inc > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude3.inc > >diff --git a/C4/Budgets.pm b/C4/Budgets.pm >index c68fbec..13d6ecd 100644 >--- a/C4/Budgets.pm >+++ b/C4/Budgets.pm >@@ -146,6 +146,13 @@ sub GetPeriodsCount { > } > > # ------------------------------------------------------------------- >+ >+sub GetHighestBudgetPeriod{ >+ my $dbh = C4::Context->dbh; >+ warn my $data = $dbh->selectrow_array("SELECT MAX(budget_period_id) FROM aqbudgetperiods"); >+ return $data; >+} >+# ------------------------------------------------------------------- > sub CheckBudgetParent { > my ( $new_parent, $budget ) = @_; > my $new_parent_id = $new_parent->{'budget_id'}; >diff --git a/acqui/acqui-home.pl b/acqui/acqui-home.pl >index fe53174..56b68de 100755 >--- a/acqui/acqui-home.pl >+++ b/acqui/acqui-home.pl >@@ -122,11 +122,35 @@ $template->param( > suggestions_count => $suggestions_count, > ); > >+ >+ >+ >+ >+ >+my $aqstep; > my $cur = Koha::Acquisition::Currencies->get_active; >+ > if ( $cur ) { > $template->param( > currency => $cur->currency, > ); > } > >+my $budget = GetPeriodsCount(); >+my $budgetid = C4::Budgets->GetHighestBudgetPeriod(); >+if (!@budget_loop){ >+if (!$cur) { >+ $aqstep = 1; >+ $template->param( step => $aqstep ); >+} elsif ($budget && $budgetid == 1){ >+ $aqstep = 3; >+ $template->param( step => $aqstep ); >+} elsif ($budgetid > 1) { >+ print $query->redirect("/cgi-bin/koha/admin/aqbudgetperiods.pl"); >+ exit; >+} else { >+ $aqstep = 2; >+ $template->param( step => $aqstep ); >+} >+} > output_html_with_http_headers $query, $cookie, $template->output; >diff --git a/admin/aqbudgetperiods.pl b/admin/aqbudgetperiods.pl >index ca2171f..26a2881 100755 >--- a/admin/aqbudgetperiods.pl >+++ b/admin/aqbudgetperiods.pl >@@ -113,14 +113,18 @@ if ( $op eq 'add_form' ) { > elsif ( $op eq 'add_validate' ) { > ## add or modify a budget period (confirmation) > >- ## update budget period data >+## update budget period data > if ( $budget_period_id ne '' ) { > $$budget_period_hashref{$_}||=0 for qw(budget_period_active budget_period_locked); > my $status=ModBudgetPeriod($budget_period_hashref); > } > else { # ELSE ITS AN ADD > my $budget_period_id=AddBudgetPeriod($budget_period_hashref); >- } >+ my $stepfund = $input->param( 'step' ); >+ $template->param( stepfund => $stepfund ); >+ print $input->redirect("/cgi-bin/koha/acqui/acqui-home.pl"); >+ exit; >+} > $op='else'; > } > >diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl >index 97664df..5e51a48 100755 >--- a/admin/aqbudgets.pl >+++ b/admin/aqbudgets.pl >@@ -76,8 +76,6 @@ my $budget_permission = $input->param('budget_permission'); > my $budget_users_ids = $input->param('budget_users_ids'); > my $filter_budgetbranch = $input->param('filter_budgetbranch') // ''; > my $filter_budgetname = $input->param('filter_budgetname'); >- >- > # ' ------- get periods stuff ------------------' > # IF PERIODID IS DEFINED, GET THE PERIOD - ELSE JUST GET THE ACTIVE PERIOD BY DEFAULT > my $period; >@@ -180,6 +178,7 @@ if ($op eq 'add_form') { > # END $OP eq ADD_FORM > #---------------------- DEFAULT DISPLAY BELOW --------------------- > >+ > # called by default form, used to confirm deletion of data in DB > } elsif ($op eq 'delete_confirm') { > >@@ -221,6 +220,15 @@ if ($op eq 'add_form') { > $budget_hash->{budget_id} = AddBudget( $budget_hash ); > ModBudgetUsers($budget_hash->{budget_id}, @budgetusersid); > $budget_modified = 1; >+ >+ my $fundcreation = $input->param('fundcreation'); >+ >+ if ($fundcreation eq "onboarding"){ >+ my $step = $input->param('step'); >+ $template->param('step' => $step); >+ print $input->redirect("/cgi-bin/koha/acqui/acqui-home.pl"); >+ exit; >+ } > } > > my $set_owner_to_children = $input->param('set_owner_to_children'); >diff --git a/admin/currency.pl b/admin/currency.pl >index 09b6a74..ab26c91 100755 >--- a/admin/currency.pl >+++ b/admin/currency.pl >@@ -89,6 +89,15 @@ if ( $op eq 'add_form' ) { > } > $searchfield = q||; > $op = 'list'; >+ >+ my $aqcurrency = $input->param('aqcurrency'); >+ if ($aqcurrency == 1) { >+ my $step = $input->param( 'step' ); >+ $template->param( step => $step ); >+ print $input->redirect("/cgi-bin/koha/acqui/acqui-home.pl"); >+ exit; >+ } >+ > } elsif ( $op eq 'delete_confirm' ) { > my $currency = Koha::Acquisition::Currencies->find($currency_code); > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >index 175fce8..00c7701 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >@@ -2995,3 +2995,9 @@ fieldset.rows + fieldset.action { > .yui-u .rows li p label.widelabel { > width: auto; > } >+ >+div#aqhelp{ >+ background-color:#EDF4F6; >+ padding:20px; >+ width:50%; >+} >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc >index 1862059..75a018b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc >@@ -1,14 +1,26 @@ >+<style type="text/css"> >+ #onboardingModal{ >+ z-index:1; >+ background-color:#E6F0F2; >+ position:fixed; >+ left:auto; >+ top:auto; >+ right:auto; >+ bottom:auto; >+} >+</style> >+ > [% IF ( currency ) %] > [% IF ( not hide ) %] > <p><b>Currency = [% currency %]</b></p> > [% END %] > [% ELSE %] >- <div class="dialog alert"> >+ <div class="dialog alert"> > <h3>No active currency is defined</h3> > [% IF CAN_user_parameters_parameters_remaining_permissions %] > <p><a href="/cgi-bin/koha/admin/currency.pl">Please specify an active currency.</a></p> > [% ELSE %] > <p>Your administrator must specify an active currency.</p> > [% END %] >- </div> >+ </div> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude1.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude1.inc >new file mode 100644 >index 0000000..057a074 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude1.inc >@@ -0,0 +1,70 @@ >+<style type="text/css"> >+ #onboardingModal{ >+ z-index:1; >+ background-color:#EDF4F6; >+ padding:20px; >+ width:70%; >+ position:fixed; >+ left:auto; >+ top:auto; >+ right:auto; >+ bottom:auto; >+} >+</style> >+ >+[% IF onboarding =="acqui" %] >+<div id="onboardingModal"> >+ <h2> Acquisition onboarding wizard</h2> >+ <h3> This onboarding wizard will take you through the process of setting up Acquistions </h3> >+ <p>Start by completing this form to create a currency which you will be used to create your first budget and fund.<br> >+ A fund is the accounting value you use to create orders</p> >+ <form action="/cgi-bin/koha/admin/currency.pl" name="Aform" method="post" class="validated"> >+ <input type="hidden" name="op" value="add_validate" /> >+ <input type="hidden" name="step" value="2"/> >+ <input type="hidden" name="aqcurrency" value=1 /> >+ <fieldset class="rows"> >+ <legend> >+ New currency >+ </legend> >+ <ol> >+ <li> >+ [% IF currency %] >+ <span class="label">Currency: </span> >+ <input type="hidden" name="is_a_modif" value="1" /> >+ <input type="hidden" name="currency_code" id="currency" value="[% currency.currency %]" />[% currency.currency %] >+ [% ELSE %] >+ <label for="currency_code" class="required">Currency: </label> >+ <input type="text" name="currency_code" id="currency_code" size="50" maxlength="50" required="required" class="required" /> <span class="required">Required</span> >+ [% END %] >+ </li> >+ <li> >+ <label for="rate" class="required">Rate: </label> >+ <input type="text" name="rate" id="rate" size="10" maxlength="10" value="[% currency.rate %]" required="required" class="required" /> <span class="required">Required</span> >+ </li> >+ <li> >+ <label for="symbol" class="required">Symbol: </label> >+ <input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="[% currency.symbol %]" required="required" class="required" /> <span class="required">Required</span> >+ </li> >+ <li> >+ <label for="isocode">ISO code: </label> >+ <input type="text" name="isocode" id="isocode" size="5" maxlength="5" value="[% currency.isocode %]" /> >+ </li> >+ <li> >+ <label for="active">Active: </label> >+ <input type="checkbox" id="active" name="active" value="1" checked="checked" /> >+ <span id="hint" class="hint"></span> >+ </li> >+ </ol> >+ </fieldset> >+ <fieldset class="action"> >+ <input type="submit" value="Submit" /> >+ </fieldset> >+ </form> >+</div> >+ >+[% ELSIF onboarding == "label" %] >+ >+hello there >+ >+ >+[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude2.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude2.inc >new file mode 100644 >index 0000000..7646eb8 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude2.inc >@@ -0,0 +1,65 @@ >+<style type="text/css"> >+ #onboardingModal{ >+ z-index:1; >+ background-color:#EDF4F6; >+ padding:20px; >+ width:70%; >+ position:fixed; >+ left:auto; >+ top:auto; >+ right:auto; >+ bottom:auto; >+} >+</style> >+ <div id="onboardingModal"> >+ [% IF displayonboardscreen == "acquisitions" %] >+ <h2> Acquisition onboarding wizard</h2> >+ <p> Create a budget which is the highest level value in acquisitions accountancy. <br> >+ After creating this budget you will be prompted to create a fund which is what you will use to set up orders. >+ </p> >+ <b>If you have previously created a budget (which was subsequently deleted) then you will be redirected to the Budget Administration page after creating a budget using this form. On the Budget Administration page click Actions->Add fund to create a fund</b> >+ <h3> Create a budget</h3> >+ <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post"> >+ <fieldset class="rows"> >+ <input type="hidden" name="op" value="add_validate" /> >+ <input type="hidden" name="step" value="3"/> >+ <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" /> >+ <ol> >+ <li> >+ <label class="required" for="from">Start date: </label> >+ <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" /> >+ <div class="hint">[% INCLUDE 'date-format.inc' %]</div> >+ </li> >+ >+ <li> >+ <label class="required" for="to">End date: </label> >+ <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" /> >+ <div class="hint">[% INCLUDE 'date-format.inc' %]</div> >+ </li> >+ >+ <li> >+ <label class="required" for="budget_period_description">Description: </label> >+ <input type="text" id="budget_period_description" name="budget_period_description" size="48" maxlength="80" value="[% budget_period_description %]" /> >+ </li> >+ >+ <li> >+ <label for="budget_period_total">Total amount: </label> >+ <input type="text" id="budget_period_total" name="budget_period_total" size="10" maxlength="80" value="[% budget_period_total | $Price on_editing => 1 %]" /> >+ </li> >+ >+ <li> >+ <label for="budget_period_active">Make budget active: </label> >+ <input type="checkbox" checked="checked" id="budget_period_active" name="budget_period_active" value="1" /> >+ </li> >+ </ol> >+ </fieldset> >+ <fieldset class="action"> >+ <a href = "/cgi-bin/koha/acqui/acqui-home.pl"> >+ <input type="submit" class="action" value="Submit" /> >+ </a> >+ </fieldset> >+ </form> >+ </div> >+ [% ELSIF displayonboardscreen == "label" %] >+ <h2>testing</h2> >+ [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude3.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude3.inc >new file mode 100644 >index 0000000..954869e >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude3.inc >@@ -0,0 +1,73 @@ >+<style type="text/css"> >+ #onboardingModal{ >+ z-index:1; >+ background-color:#EDF4F6; >+ padding:20px; >+ width:70%; >+ position:fixed; >+ left:auto; >+ top:auto; >+ right:auto; >+ bottom:auto; >+} >+</style> >+ >+<div id="onboardingModal"> >+ <h2> Acquisition onboarding wizard</h2> >+ <p> Fill out this form to create a fund which will be assigned to the budget you just created. <br> >+ A fund is an accounting value you will use to set up orders</p> >+ <br> >+ <h3> Create a fund</h3> >+ <form action="/cgi-bin/koha/admin/aqbudgets.pl" id="edit_fund" name="Aform" method="post"> >+ <input type="hidden" name="op" value="add_validate" /> >+ <input type="hidden" name="checked" value="0" /> >+ <input type="hidden" name="fundcreation" value="onboarding" /> >+ <input type="hidden" name="step" value="4" /> >+ [% IF ( budget_id ) %] >+ <input type="hidden" name="budget_id" value="[% budget_id %]" /> >+ [% END %] >+ [% budget_id %] >+ >+ <fieldset class="rows"> >+ <legend>[% IF ( budget_id ) %]Modify[% ELSE %]Add[% END %] Fund >+ [% IF ( budget_period_description ) %] >+ [% budget_name %] for Budget '[% budget_period_description %]' >+ [% END %] >+ </legend> >+ <ol> >+ [% budget_parent_id = 0 %] >+ <li> >+ <span class="label">Fund parent: </span> >+ [% budget_parent_name %] >+ [% budget_parent_id %] - [% budget_parent_name %] >+ <input type="hidden" name="budget_parent_id" value= NULL /> >+ </li> >+ <li> >+ <label class="required" for="budget_code">Fund code: </label> >+ <input type="text" name="budget_code" id="budget_code" value="[% budget_code %]" size="30" /> >+ </li> >+ >+ <li> >+ <label class="required" for="budget_name">Fund name: </label> >+ <input type="text" name="budget_name" id="budget_name" value="[% budget_name %]" size="60" /> >+ </li> >+ >+ <li> >+ <label style="white-space: nowrap;" for="budget_amount" class="required">Amount: </label> >+ <input type="text" name="budget_amount" id="budget_amount" value="[% budget_amount | $Price on_editing => 1 %]" size="8" /> >+ </li> >+ >+ <input type="hidden" name="budget_owner_id" id="budget_owner_id" value="0" /> >+ >+ [% IF ( budget_id ) %] >+ <input type="hidden" name="budget_id" value="[% budget_id %]" /> >+ [% END %] >+ >+ </fieldset> >+ <fieldset class="action"> >+ <input type="submit" value="Submit" /> >+ <input type="hidden" name="budget_period_id" value="1" /> >+ </fieldset> >+ </form> >+ >+</div> >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 f64a60b..72336ac 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,19 +1,28 @@ > [% USE Price %] > [% USE Branches %] >+[% USE Koha %] >+[% USE KohaDates %] >+[% USE Branches %] >+ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Acquisitions</title> > [% INCLUDE 'doc-head-close.inc' %] > <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> >+ > [% INCLUDE 'datatables.inc' %] > <link href="[% interface %]/lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css" rel="stylesheet" type="text/css" /> > <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/treetable/jquery.treetable.js"></script> > >+[% INCLUDE 'calendar.inc' %] >+<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq.js"></script> >+ > <script type="text/javascript"> > //<![CDATA[ > > dt_overwrite_html_sorting_localeCompare(); > > $(document).ready(function() { >+ $("#aqhelp").hide(); > > var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, { > "fnDrawCallback": function ( oSettings ) { >@@ -80,6 +89,10 @@ $(document).ready(function() { > }); > $("#hide_inactive").click(); > >+ $("#show").click(function(){ >+ $("#aqhelp").show(); >+ }); >+ > }); > //]]> > </script> >@@ -98,15 +111,21 @@ $(document).ready(function() { > <div class="yui-b"> > > [% INCLUDE 'acquisitions-toolbar.inc' %] >- >-<h1>Acquisitions</h1> >- [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %] > [% UNLESS ( loop_budget ) %] > [% IF ( CAN_user_acquisition_period_manage ) %] >- <div class="dialog alert"><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">You must define a budget in Administration</a></div> >+ [% displayonboardscreen = "acquisitions" %] >+ [% IF step == 1 %] >+ [% INCLUDE onboardinginclude1.inc %] >+ [% ELSIF step == 2 %] >+ [% INCLUDE onboardinginclude2.inc %] >+ [% ELSIF step == 3 %] >+ [% INCLUDE onboardinginclude3.inc %] >+ [% END %] > [% ELSE %] > <div class="dialog alert">Your administrator must define a budget in Administration</div> > [% END %] >+ [% ELSE %] >+ <h1>Acquisitions</h1> > [% END %] > <div class="yui-g"> > <div class="yui-u first"> >@@ -237,6 +256,27 @@ $(document).ready(function() { > </div> > [% END %] > >+ <button type="button" id="show" onclick"unhide(aqhelp)">Show the next steps to set up Acquisitions</button> >+ <br><br> >+ <div id="aqhelp"> >+ <h1> Next steps</h1> >+ <h2> 1. Create your first vendor</h2> >+ <p> A vendor is the organisation your institution purchases items from i.e. suppliers<br> >+ You must create a vendor before you can create any orders</p> >+ <b>Click <a href="/cgi-bin/koha/acqui/supplier.pl?op=enter">here</a> to create a vendor.</b> >+ <br><br> >+ <h2> 2. Create your first basket</h2> >+ <p> A basket is the conceptual container that holds orders. Each basket is assigned to a single vendor so you can perform multiple seperate orders from a single vendor simultaneously. Because of its reliance on vendor the basket must be created after the vendor</p> >+ <b> To create a basket, click the 'New basket' button on the Vendor Information page which is displayed after you create a vendor</b> >+ <br><br> >+ <h2> 3. Create an order</h2> >+ <p> An order is a assignment of items purchased from a single vendor at a single time</p> >+ You create an order by clicking "Add to basket" in the Basket page. From here you can choose the item(s) you want to purchase from existing MARC records in your Koha catalogue, subscription, new item record, external source, staged file (bibliographic file in the process of being uploaded), or from popularly held items. >+ </p> >+ <br><br> >+ For further information about creating a vendor, basket and order go to the Koha manual: >+ <a href="http://translate.koha-community.org/manual/master/en/html/09_acquisitions.html"> Koha manual Acquisitions section</a> >+ </div> > </div> > </div> > <div class="yui-b"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >index 76f0701..acf8b97 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >@@ -334,7 +334,7 @@ > <li> > <label class="required" for="from">Start date: </label> > <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" /> >- <div class="hint">[% INCLUDE 'date-format.inc' %]</div> >+<!--<div class="hint">[% INCLUDE 'date-format.inc' %]</div>--> > </li> > <li> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >index a3c9ee9..87350c2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >@@ -453,7 +453,7 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") > > <!-- ********************************************************************************************** --> > <!-- create add/mod entry form --> >-[% IF op == 'add_form' && !error_not_authorised_to_modify %] >+[% IF op == 'add_form' %] > <form action="/cgi-bin/koha/admin/aqbudgets.pl" id="edit_fund" name="Aform" method="post"> > <fieldset class="rows"> > <legend>[% IF ( budget_id ) %]Modify[% ELSE %]Add[% END %] Fund >@@ -464,6 +464,7 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") > > <input type="hidden" name="op" value="add_validate" /> > <input type="hidden" name="checked" value="0" /> >+ <input type="hidden" name="fundcreation" value="aqform" /> > <ol> > [% IF ( budget_parent_id ) %] > <li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt >index f5e7725..36031b7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt >@@ -20,7 +20,10 @@ > <div class="yui-g"> > [% INCLUDE 'labels-toolbar.inc' %] > <div class="yui-u first"> >- >+ [% IF (layout || template) %] >+ [% onboarding = "label" %] >+ [% INCLUDE 'onboardinginclude1.inc' %] >+ [% END %] > </div> > </div> > </div> >diff --git a/labels/label-home.pl b/labels/label-home.pl >index ca581ac..bd7cf99 100755 >--- a/labels/label-home.pl >+++ b/labels/label-home.pl >@@ -22,9 +22,13 @@ use strict; > use warnings; > > use CGI qw ( -utf8 ); >+use vars qw($debug); >+use Data::Dumper; > > use C4::Auth qw(get_template_and_user); > use C4::Output qw(output_html_with_http_headers); >+use C4::Labels; >+use C4::Creators; > > my $cgi = new CGI; > my ( $template, $loggedinuser, $cookie ) = get_template_and_user( >@@ -38,4 +42,12 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( > } > ); > >+ >+#check if any layouts and/or templates already exist >+my $layout = C4::Creators::Layout->retrieve(layout_id => 1 ); >+$template->param( layout => $layout ); >+ >+my $labeltemplate = C4::Creators::Template->retrieve(template_id => 1); >+$template->param( template => $labeltemplate ); >+ > output_html_with_http_headers $cgi, $cookie, $template->output; >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18060
:
63224
|
63225
|
63228
|
63229
|
63587
|
63588
|
63589
|
64733
|
64766
|
64951
|
67663