Bugzilla – Attachment 59910 Details for
Bug 18002
Aquisitions onboarding tool - to help users set up acquisitions the first time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18002 - Added in modal box and message (outside of modal box) for when users first visit Acquisitions.
Bug-18002---Added-in-modal-box-and-message-outside.patch (text/plain), 5.54 KB, created by
Alex Buckley
on 2017-02-06 04:43:17 UTC
(
hide
)
Description:
Bug 18002 - Added in modal box and message (outside of modal box) for when users first visit Acquisitions.
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2017-02-06 04:43:17 UTC
Size:
5.54 KB
patch
obsolete
>From 409ac379f471e1ba16bc3ad2dcefdac16f141c5e 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 18002 - Added in modal box and message (outside of modal > box) for when users first visit Acquisitions. > >These messages are in place of the unclear yellow warning messages. > >Test plan: >1. Drop and recreate your database > >2. Go through the web installer without installing any optional data >values > >3. Visit Acquisitions you should see two large yellow warning message >boxes telling you to specify a currency and a budget > >4. Apply this patch > >5. Refresh the Acquisitions page. Instead of the two yellow warning >messages you will see a message sentence telling you to create a >currency (providing you with a link). >As well as a modal box fading in specifying (with links) the steps you need >to do to set up Acquisitions, in the following order: create budget, fund, >vendor and basket >--- > .../prog/en/includes/budgets-active-currency.inc | 8 +++--- > .../prog/en/modules/acqui/acqui-home.tt | 33 +++++++++++++++++++++- > 2 files changed, 36 insertions(+), 5 deletions(-) > >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..005d58e 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 >@@ -3,12 +3,12 @@ > <p><b>Currency = [% currency %]</b></p> > [% END %] > [% ELSE %] >- <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> >+ <h1> You have no currencies defined in your database</h1> >+ <a href="/cgi-bin/koha/admin/currency.pl?op=add_form" target="_target" data-toggle="tooltip" title="Enter an appropriate currency and set it to active">Enter a currency</a> > [% ELSE %] > <p>Your administrator must specify an active currency.</p> > [% END %] >- </div> >+ <br> >+ <p><b>Now you can follow the below steps to set up acquisitions.</b></p><br> > [% 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 f64a60b..57cda13 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 >@@ -15,6 +15,18 @@ dt_overwrite_html_sorting_localeCompare(); > > $(document).ready(function() { > >+ //Store element references for the modal box in variables >+ var modal = document.getElementById('acquisitionsModal'); >+ var span = document.getElementsByClassName("close")[0]; >+ >+ //If no budget has been created fade in the acquisitions modal informational box >+ if ( showModal == 1) { >+ $('#acquisitionsModal').fadeIn(1000); >+ } >+ if ( hideModal == 1) { >+ $('#acquisitionsModal').hide(); >+ } >+ > var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, { > "fnDrawCallback": function ( oSettings ) { > if ( oSettings.aiDisplay.length == 0 ) >@@ -103,11 +115,30 @@ $(document).ready(function() { > [% 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> >+ <script type="text/javascript"> >+ var showModal = 1; >+ </script> >+ <div id="acquisitionsModal" class="modal" style="z-index:1;display:none;background-color:#EDF4F6;padding:20px;width:60%;height:30%; position:fixed;align:center;left:auto;top:auto;right:auto;bottom:auto;"> >+ <div class="acquisition-modal-content"> >+ Follow these links to set everything up ready to purchase orders:<br><br> >+ <h2><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form" target="_blank" data-toggle="tooltip" title="The budget is the overall amount of money avaliable for the institution over a period of time">1. Create a budget</a> >+ -> >+ <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl" target="_blank" data-toggle="tooltip" title="The fund is the amount of mo ney for one area of the institution e.g. Books fund. Click this link then select the 'Edit' button beside the budget and click 'Add fund'"> 2. assign a fund to that budget</a> >+ -> >+ <a href="/cgi-bin/koha/acqui/supplier.pl?op=enter" target="_blank" data-toggle="tooltip" title="Vendor is the organisation you purchase items from">3. create a vendor</a> >+ -> >+ <a href="/cgi-bin/koha/acqui/booksellers.pl" target="_blank" data-toggle="tooltip" title="Basket contains the order items. Select the 'New basket' button">4. create a basket</a> >+ </h2> >+ </div> >+ </div> > [% ELSE %] > <div class="dialog alert">Your administrator must define a budget in Administration</div> > [% END %] > [% END %] >+ <script type="text/javascript"> >+ var hideModal = 1; >+ </script> >+ > <div class="yui-g"> > <div class="yui-u first"> > <div id="acqui_acqui_home_order"> >-- >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 18002
:
59910
|
59911
|
59992
|
60676
|
60677
|
60678
|
60679
|
60680
|
60681
|
60682
|
60683
|
60684
|
60685
|
60686
|
60687
|
60688
|
61987
|
61988
|
63150
|
63151
|
63380
|
63456
|
64732
|
64746
|
64765
|
64947
|
66301
|
67649
|
67650
|
67651
|
68108
|
68109
|
68110