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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (+24 lines)
Lines 700-705 Link Here
700
                                    </div>
700
                                    </div>
701
                                [% END %]
701
                                [% END %]
702
                            </div> [% # /div#patron-alternative-contact %]
702
                            </div> [% # /div#patron-alternative-contact %]
703
704
                            <div id="patron-files" class="patroninfo-section">
705
                                <div class="patroninfo-heading">
706
                                    <h3>Files</h3>
707
                                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | html %]"><i class="fa fa-list"></i> Manage</a>
708
709
                                    [% IF ( files ) %]
710
                                        <div class="rows">
711
                                            <ol>
712
                                                [% FOREACH f IN files %]
713
                                                    <li>
714
                                                        <a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;op=download&amp;file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a>
715
                                                        [% IF ( f.file_description ) %]
716
                                                            - [% f.file_description | html %]
717
                                                        [% END %]
718
                                                    </li>
719
                                                [% END # /FOREACH f %]
720
                                            </ol>
721
                                        </div>
722
                                    [% END # /IF files %]
723
724
                                </div> <!-- /.patroninfo-heading -->
725
                            </div> <!-- /#patron-files -->
726
703
                        </div> <!-- /div.col-sm-6 -->
727
                        </div> <!-- /div.col-sm-6 -->
704
                    </div> <!-- /div.row -->
728
                    </div> <!-- /div.row -->
705
729
(-)a/members/moremember.pl (-1 / +2 lines)
Lines 40-45 use Koha::Patron::Messages; Link Here
40
use Koha::DateUtils;
40
use Koha::DateUtils;
41
use Koha::CsvProfiles;
41
use Koha::CsvProfiles;
42
use Koha::Patrons;
42
use Koha::Patrons;
43
use Koha::Patron::Files;
43
use Koha::Token;
44
use Koha::Token;
44
use Koha::Checkouts;
45
use Koha::Checkouts;
45
46
Lines 209-214 $template->param( Link Here
209
    relatives_issues_count => $relatives_issues_count,
210
    relatives_issues_count => $relatives_issues_count,
210
    relatives_borrowernumbers => \@relatives,
211
    relatives_borrowernumbers => \@relatives,
211
    logged_in_user => $logged_in_user,
212
    logged_in_user => $logged_in_user,
213
    files => Koha::Patron::Files->new( borrowernumber => $borrowernumber ) ->GetFilesInfo(),
212
);
214
);
213
215
214
output_html_with_http_headers $input, $cookie, $template->output;
216
output_html_with_http_headers $input, $cookie, $template->output;
215
- 

Return to bug 21345