From 6414adce24c7209b41ad78787f64259873cb2779 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 24 Mar 2014 09:54:46 -0400 Subject: [PATCH] CRM-14378 - Cleanup attachment js --- templates/CRM/Custom/Form/CustomField.tpl | 9 +++-- templates/CRM/Form/attachment.tpl | 12 +++---- templates/CRM/Form/attachmentjs.tpl | 40 ++++++++++------------- 3 files changed, 27 insertions(+), 34 deletions(-) diff --git a/templates/CRM/Custom/Form/CustomField.tpl b/templates/CRM/Custom/Form/CustomField.tpl index 3c130ef783..0c0e0701e7 100644 --- a/templates/CRM/Custom/Form/CustomField.tpl +++ b/templates/CRM/Custom/Form/CustomField.tpl @@ -71,21 +71,20 @@ {if $element.data_type eq 'File'} {if $element.element_value.data} -
-
+

 {ts}Attached File{/ts}:   {if $element.element_value.displayURL} - + {else} - {$element.element_value.fileName} + {$element.element_value.fileName} {/if} {if $element.element_value.deleteURL} - + {/if}
diff --git a/templates/CRM/Form/attachment.tpl b/templates/CRM/Form/attachment.tpl index bad33ac24e..f8b0315873 100644 --- a/templates/CRM/Form/attachment.tpl +++ b/templates/CRM/Form/attachment.tpl @@ -49,7 +49,7 @@ {capture assign=attachTitle}{ts}Attachment(s){/ts}{/capture} {/if} {if !$noexpand} -
+
{$attachTitle}
@@ -102,12 +102,11 @@ {ts}Current Attachment(s){/ts} {foreach from=$currentAttachmentInfo key=attKey item=attVal} -
-
- {$attVal.cleanName} +
+ {$attVal.cleanName} {if $attVal.description} - {$attVal.description}{/if} {if $attVal.deleteURLArgs} - + {/if} {if !empty($attVal.tag)}
@@ -120,8 +119,7 @@   - {$form.is_delete_attachment.html} {$form.is_delete_attachment.label}
- {ts}Click the red trash-can next to a file name to delete a specific attachment. If you want to delete ALL attachments, check the box above and click Save.{/ts} + {$form.is_delete_attachment.html} {$form.is_delete_attachment.label} {/if} diff --git a/templates/CRM/Form/attachmentjs.tpl b/templates/CRM/Form/attachmentjs.tpl index 046d0e89b8..a3e44e60b1 100644 --- a/templates/CRM/Form/attachmentjs.tpl +++ b/templates/CRM/Form/attachmentjs.tpl @@ -1,27 +1,23 @@ -- 2.25.1