You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<input type="file" name="{$field.ins_id}"{if isset($input_err)} value="{$field.value}"{/if}>
|
|
|
{if $field.value ne ''}
|
|
|
<br>
|
|
|
{$data.image_tag}
|
|
|
{if $field.isMandatory ne 'y'}
|
|
|
<a href="#" class="trkRemoveImage tips" title="{tr}Remove image{/tr}">{icon name='delete'}</a>
|
|
|
{jq}
|
|
|
$(".trkRemoveImage").click(function(e){
|
|
|
e.preventDefault();
|
|
|
if (confirm("{tr}Are you sure you want to delete this image?{/tr}")) {
|
|
|
$(this).parent().find('input[type=file]').attr('type', 'hidden').val('blank').trigger('change');
|
|
|
}
|
|
|
});
|
|
|
{/jq}
|
|
|
{/if}
|
|
|
{/if}
|