From 371c3205bd0ac3f80028838889504d0b5a6b9ab0 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 Content-Type: text/plain; charset="utf-8" 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 --- .../intranet-tmpl/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 1655823..a44aaa9 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' %] -- 1.7.9.5