From 05d952a4a6799d5c218fb8f1894fca4c1cf25df5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 10 Jul 2012 13:56:26 -0400 Subject: [PATCH] Bug 8130 [FOLLOW-UP] attach PDF files to a patron record Markup corrections: - Hide table of files if no files are attached - Move error messages out of table (invalid) - Add tags to table (invalid) - Apply standard form structure to upload form - Add proper labels and ids to upload form - Correct unescaped ampersands Signed-off-by: Kyle M Hall --- .../prog/en/modules/members/files.tt | 52 +++++++++++-------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt index 1655823661..a44aaa9cd0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt @@ -17,49 +17,58 @@

Files

+ [% IF errors %] +
+ [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %] + [% IF errors.no_file %]You did not select a file to upload.[% END %] +
+ [% END %] + + [% IF ( files ) %] - - - - - [% IF CAN_user_borrowers %][% END %] + + + + + + [% IF CAN_user_borrowers %][% END %] + - [% IF errors %] -
- [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %] - [% IF errors.no_file %]You did not select a file to upload.[% END %] -
- [% END %] - [% FOREACH f IN files %] - + - [% IF CAN_user_borrowers %][% END %] + [% IF CAN_user_borrowers %][% END %] [% END %]
NameTypeDescriptionUploaded 
NameTypeDescriptionUploaded 
[% f.file_name %][% f.file_name %] [% f.file_type %] [% f.file_description %] [% f.date_uploaded | $KohaDates %]DeleteDelete
+ [% ELSE %] +
+

This patron has no files attached.

+
+ [% END %] -
-
+ +
Upload New File - - +
    +
  1. - +
  2. - +
  3. - +
+
@@ -70,5 +79,4 @@ [% INCLUDE 'circ-menu.inc' %] - [% INCLUDE 'intranet-bottom.inc' %] -- 2.39.5