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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt (-4 / +6 lines)
Lines 33-40 Link Here
33
            <div class="yui-g">
33
            <div class="yui-g">
34
                <h2>Purchase suggestions</h2>
34
                <h2>Purchase suggestions</h2>
35
35
36
                <div id="toolbar">
36
                <div id="toolbar" class="btn-toolbar">
37
                    <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>
37
                    <a class="btn btn-small" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&amp;suggestedby=[% borrowernumber %]&amp;redirect=purchase_suggestions&amp;borrowernumber=[% borrowernumber %]"><i class="icon-plus"></i> New purchase suggestion</a>
38
                </div>
38
                </div>
39
39
40
                [% IF suggestions %]
40
                [% IF suggestions %]
Lines 55-61 Link Here
55
                                    <p>
55
                                    <p>
56
                                        <strong>
56
                                        <strong>
57
                                            [% IF ( CAN_user_catalogue ) %]
57
                                            [% IF ( CAN_user_catalogue ) %]
58
                                                <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid %]&op=show">[% s.title |html %]</a>
58
                                                <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid %]&amp;op=show">[% s.title |html %]</a>
59
                                            [% ELSE %]
59
                                            [% ELSE %]
60
                                                [% s.title |html %]
60
                                                [% s.title |html %]
61
                                            [% END %]
61
                                            [% END %]
Lines 94-100 Link Here
94
                    </tbody>
94
                    </tbody>
95
                  </table>
95
                  </table>
96
                [% ELSE %]
96
                [% ELSE %]
97
                  There is no purchase suggestion for this patron.
97
                    <div class="dialog message">
98
                        <p>This patron has not submitted any purchase suggestions</p>
99
                    </div>
98
                [% END %]
100
                [% END %]
99
            </div>
101
            </div>
100
        </div>
102
        </div>
(-)a/members/purchase-suggestions.pl (-1 / +3 lines)
Lines 51-56 $template->param( Link Here
51
    branchname   => GetBranchName( $borrower->{'branchcode'} ),
51
    branchname   => GetBranchName( $borrower->{'branchcode'} ),
52
);
52
);
53
53
54
my ($picture, $dberror) = GetPatronImage($borrowernumber);
55
$template->param( picture => 1 ) if $picture;
56
54
my $suggestions = SearchSuggestion( { suggestedby => $borrowernumber } );
57
my $suggestions = SearchSuggestion( { suggestedby => $borrowernumber } );
55
58
56
$template->param( suggestions => $suggestions );
59
$template->param( suggestions => $suggestions );
57
- 

Return to bug 11802