View | Details | Raw Unified | Return to bug 18002
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc (-4 / +4 lines)
Lines 3-14 Link Here
3
        <p><b>Currency = [% currency %]</b></p>
3
        <p><b>Currency = [% currency %]</b></p>
4
    [% END %]
4
    [% END %]
5
[% ELSE %]
5
[% ELSE %]
6
    <div class="dialog alert">
7
        <h3>No active currency is defined</h3>
8
        [% IF CAN_user_parameters_parameters_remaining_permissions %]
6
        [% IF CAN_user_parameters_parameters_remaining_permissions %]
9
            <p><a href="/cgi-bin/koha/admin/currency.pl">Please specify an active currency.</a></p>
7
            <h1> You have no currencies defined in your database</h1>
8
            <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>
10
        [% ELSE %]
9
        [% ELSE %]
11
            <p>Your administrator must specify an active currency.</p>
10
            <p>Your administrator must specify an active currency.</p>
12
        [% END %]
11
        [% END %]
13
    </div>
12
        <br>
13
        <p><b>Now you can follow the below steps to set up acquisitions.</b></p><br>
14
[% END %]
14
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-2 / +32 lines)
Lines 15-20 dt_overwrite_html_sorting_localeCompare(); Link Here
15
15
16
$(document).ready(function() {
16
$(document).ready(function() {
17
17
18
    //Store element references for the modal box in variables
19
    var modal = document.getElementById('acquisitionsModal');
20
    var span = document.getElementsByClassName("close")[0];
21
22
    //If no budget has been created fade in the acquisitions modal informational box
23
    if ( showModal == 1) {
24
        $('#acquisitionsModal').fadeIn(1000);
25
    }
26
    if ( hideModal == 1) {
27
      $('#acquisitionsModal').hide();
28
    }
29
18
    var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
30
    var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
19
        "fnDrawCallback": function ( oSettings ) {
31
        "fnDrawCallback": function ( oSettings ) {
20
            if ( oSettings.aiDisplay.length == 0 )
32
            if ( oSettings.aiDisplay.length == 0 )
Lines 103-113 $(document).ready(function() { Link Here
103
    [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %]
115
    [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %]
104
    [% UNLESS ( loop_budget ) %]
116
    [% UNLESS ( loop_budget ) %]
105
        [% IF ( CAN_user_acquisition_period_manage ) %]
117
        [% IF ( CAN_user_acquisition_period_manage ) %]
106
        <div class="dialog alert"><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">You must define a budget in Administration</a></div>
118
               <script type="text/javascript">
119
                   var showModal = 1;
120
               </script>
121
               <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;">
122
                   <div class="acquisition-modal-content">
123
                       Follow these links to set everything up ready to purchase orders:<br><br>
124
                       <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>
125
                        ->
126
                       <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>
127
                        ->
128
                       <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>
129
                        ->
130
                       <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>
131
                       </h2>
132
                    </div>
133
                 </div>
107
        [% ELSE %]
134
        [% ELSE %]
108
        <div class="dialog alert">Your administrator must define a budget in Administration</div>
135
        <div class="dialog alert">Your administrator must define a budget in Administration</div>
109
        [% END %]
136
        [% END %]
110
    [% END %]
137
    [% END %]
138
    <script type="text/javascript">
139
         var hideModal = 1;
140
    </script>
141
111
<div class="yui-g">
142
<div class="yui-g">
112
<div class="yui-u first">
143
<div class="yui-u first">
113
<div id="acqui_acqui_home_order">
144
<div id="acqui_acqui_home_order">
114
- 

Return to bug 18002