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

(-)a/acqui/acqui-home.pl (-1 lines)
Lines 107-113 foreach my $budget ( @{$budget_arr} ) { Link Here
107
    push @budget_loop, $budget;
107
    push @budget_loop, $budget;
108
}
108
}
109
109
110
warn \@budget_loop;
111
$template->param(
110
$template->param(
112
    type          => 'intranet',
111
    type          => 'intranet',
113
    loop_budget   => \@budget_loop,
112
    loop_budget   => \@budget_loop,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-13 / +36 lines)
Lines 4-9 Link Here
4
<title>Koha &rsaquo; Acquisitions</title>
4
<title>Koha &rsaquo; Acquisitions</title>
5
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
6
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
6
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
7
<style type="text/css">
8
#acquisitionsModal{
9
    z-index:1;
10
    background-color:#EDF4F6;
11
    padding:20px;
12
    width:65%;
13
    height:20%;
14
    position:fixed;
15
    left:auto;
16
    top:auto;
17
    right:auto;
18
    bottom:auto;
19
}
20
</style>
21
7
[% INCLUDE 'datatables.inc' %]
22
[% INCLUDE 'datatables.inc' %]
8
<link href="[% interface %]/lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css" rel="stylesheet" type="text/css" />
23
<link href="[% interface %]/lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css" rel="stylesheet" type="text/css" />
9
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/treetable/jquery.treetable.js"></script>
24
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/treetable/jquery.treetable.js"></script>
Lines 15-20 dt_overwrite_html_sorting_localeCompare(); Link Here
15
30
16
$(document).ready(function() {
31
$(document).ready(function() {
17
32
33
    var modal = document.getElementById('acquisitionsModal');
34
    var span = document.getElementsByClassName("close")[0];
35
36
    span.onclick = function() {
37
        modal.style.display = "none";
38
    }
39
18
    var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
40
    var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
19
        "fnDrawCallback": function ( oSettings ) {
41
        "fnDrawCallback": function ( oSettings ) {
20
            if ( oSettings.aiDisplay.length == 0 )
42
            if ( oSettings.aiDisplay.length == 0 )
Lines 103-125 $(document).ready(function() { Link Here
103
    [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %]
125
    [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %]
104
    [% UNLESS ( loop_budget ) %]
126
    [% UNLESS ( loop_budget ) %]
105
        [% IF ( CAN_user_acquisition_period_manage ) %]
127
        [% IF ( CAN_user_acquisition_period_manage ) %]
106
            <div id="acquisitionsModal" style="z-index:1;background-color:#EDF4F6;padding:20px;width:60%;height:30%;position:fixed;align:center;left:auto;top:auto;right:auto;bottom:10%;">
128
            <div id="acquisitionsModal">
107
                   <div class="acquisition-modal-content">
129
                       <span class="close">&times;</span><br><br>
108
                       Follow these links to set everything up ready to purchase orders:<br><br>
130
                       <b>Follow these links to set everything up ready to create orders:</b><br><br>
109
                       <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>
131
                       <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>
110
                        ->
132
                       ->
111
                       <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>
133
                       <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl" target="_blank" data-toggle="tooltip" title="The fund is the amount of money 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>
112
                        ->
134
                       ->
113
                       <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>
135
                       <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>
114
                        ->
136
                       ->
115
                       <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>
137
                       <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>
116
                       </h2>
138
                       </h2>
117
                    </div>
139
             </div>
118
                 </div>
119
        [% ELSE %]
140
        [% ELSE %]
120
        <div class="dialog alert">Your administrator must define a budget in Administration</div>
141
        <div class="dialog alert">Your administrator must define a budget in Administration</div>
121
        [% END %]
142
        [% END %]
122
    [% END %]
143
    [% END %]
144
    <script type="text/javascript">
145
        var showModal = 2;
146
    </script>
123
<div class="yui-g">
147
<div class="yui-g">
124
<div class="yui-u first">
148
<div class="yui-u first">
125
<div id="acqui_acqui_home_order">
149
<div id="acqui_acqui_home_order">
126
- 

Return to bug 18002