{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
{/if}
{/if}
{/foreach}
- {if $element.html_type eq 'Radio' and $element.is_view eq 0}
- <td><span class="crm-clear-link">(<a href="#" title="unselect" onclick="unselectRadio('{$element_name}', '{$form.formName}'); return false;" >{ts}clear{/ts}</a>)</span></td>
- {/if}
</tr>
</table>
</td>
{include file="CRM/common/jcalendar.tpl" elementName=$element_name}
{/if}
- {if $element.html_type eq 'Radio' and $element.is_view eq 0}
- <span class="crm-clear-link">(<a href="#" title="unselect" onclick="unselectRadio('{$element_name}', '{$form.formName}'); return false;" >{ts}clear{/ts}</a>)</span>
- {elseif $element.data_type eq 'File'}
+ {if $element.data_type eq 'File'}
{if $element.element_value.data}
+ <div id="attachStatusMesg_{$element_name}" class="status hiddenElement"></div>
+ <div id="attachFile_{$element_name}">
<span class="html-adjust"><br />
{ts}Attached File{/ts}:
- {if $element.element_value.displayURL }
- <a href="#" onclick="popUp('{$element.element_value.imageURL}'); return false;" ><img src="{$element.element_value.displayURL}" height = "{$element.element_value.imageThumbHeight}" width="{$element.element_value.imageThumbWidth}"></a>
+ {if $element.element_value.displayURL}
+ <a href="{$element.element_value.displayURL}" class='crm-image-popup'>
+ <img src="{$element.element_value.displayURL}"
+ height = "{$element.element_value.imageThumbHeight}"
+ width="{$element.element_value.imageThumbWidth}">
+ </a>
{else}
<a href="{$element.element_value.fileURL}">{$element.element_value.fileName}</a>
{/if}
- {if $element.element_value.deleteURL }
- <br />
- {$element.element_value.deleteURL}
+ {if $element.element_value.deleteURL}
+ <a href="#" onclick="showDeleteAttachment('{$element.element_value.fileName}', '{$element.element_value.deleteURLArgs}', {$element.element_value.fid}, '#attachStatusMesg_{$element_name}', '#attachFile_{$element_name}'); return false;" title="{ts}Delete this file{/ts}"><span class="icon red-icon delete-icon" style="margin:0px 0px -5px 20px" title="{ts}Delete this file{/ts}"></span></a>
{/if}
</span>
+ </div>
{/if}
{elseif $element.html_type eq 'Autocomplete-Select'}
{if $element.data_type eq 'ContactReference'}
</tr>
{/if}
-