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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt (-5 / +8 lines)
Lines 8-22 Link Here
8
</title>
8
</title>
9
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
9
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
10
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
11
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
11
[% INCLUDE 'datatables.inc' %]
12
[% INCLUDE 'datatables-strings.inc' %]
13
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
14
<script type="text/javascript">
12
<script type="text/javascript">
15
    $(document).ready(function() {
13
    $(document).ready(function() {
16
        $("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
14
        $("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
17
            'bPaginate': false,
15
            'bPaginate': false,
18
            'bFilter': false,
16
            'bFilter': false,
19
            'bInfo': false,
17
            'bInfo': false,
18
            'sDom': 't'
20
        } ));
19
        } ));
21
    });
20
    });
22
</script>
21
</script>
Lines 44-50 Link Here
44
                    <a class="btn" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&suggestedby=[% borrowernumber %]&redirect=purchase_suggestions&borrowernumber=[% borrowernumber %]"><i class="icon-plus"></i> New purchase suggestion</a>
43
                    <a class="btn" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&suggestedby=[% borrowernumber %]&redirect=purchase_suggestions&borrowernumber=[% borrowernumber %]"><i class="icon-plus"></i> New purchase suggestion</a>
45
                </div>
44
                </div>
46
45
47
                <table id="suggestions">
46
                [% IF suggestions %]
47
                  <table id="suggestions">
48
                    <thead>
48
                    <thead>
49
                        <tr>
49
                        <tr>
50
                          <th>Summary</th>
50
                          <th>Summary</th>
Lines 98-104 Link Here
98
                            </tr>
98
                            </tr>
99
                        [% END %]
99
                        [% END %]
100
                    </tbody>
100
                    </tbody>
101
                </table>
101
                  </table>
102
                [% ELSE %]
103
                  There is no purchase suggestion for this patron.
104
                [% END %]
102
            </div>
105
            </div>
103
        </div>
106
        </div>
104
    </div>
107
    </div>
(-)a/members/purchase-suggestions.pl (-13 / +12 lines)
Lines 1-21 Link Here
1
#!/usr/bin/perl
1
#!/usr/bin/perl
2
2
3
# Copyright 2012 ByWater Solutions
4
#
5
# This file is part of Koha.
3
# This file is part of Koha.
6
#
4
#
7
# Koha is free software; you can redistribute it and/or modify it under the
5
# Copyright 2012 ByWater Solutions
8
# terms of the GNU General Public License as published by the Free Software
6
#
9
# Foundation; either version 2 of the License, or (at your option) any later
7
# Koha is free software; you can redistribute it and/or modify it
10
# version.
8
# under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 3 of the License, or
10
# (at your option) any later version.
11
#
11
#
12
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
12
# Koha is distributed in the hope that it will be useful, but
13
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
14
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
15
#
16
#
16
# You should have received a copy of the GNU General Public License along with
17
# You should have received a copy of the GNU General Public License
17
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
18
# along with Koha; if not, see <http://www.gnu.org/licenses>.
18
# Suite 330, Boston, MA  02111-1307 USA
19
19
20
use Modern::Perl;
20
use Modern::Perl;
21
21
22
- 

Return to bug 9261