{if $promotion.datefrom || $promotion.dateto}
|
{icon name="period"}
|
{if $promotion.datefrom}
{trans("from")} {$promotion.datefrom|date_format:"Y-m-d"}
{/if}
{if $promotion.dateto}
{trans("to")} {$promotion.dateto|date_format:"Y-m-d"}
{/if}
|
{/if}
|
{if $promotion.disabled}
{button type="link" icon="disconnected" tip="Enable" href="?m=promotionset&id={$promotion.id}&access={$promotion.disabled}"}
{else}
{button type="link" icon="connected" tip="Disable" href="?m=promotionset&id={$promotion.id}&access={$promotion.disabled}"}
{/if}
|
{if $promotion.disabled}{trans("disabled")}{else}{trans("enabled")}{/if}
|
{if $promotion.description}
|
{icon name="optional-info"}
|
{$promotion.description|escape|replace:"\n":" "}
|
|
{/if}
{if !empty($promotion.attachments)}
|
{icon name="attachment"}
|
|
{trans("File name")}
|
{trans("Text label")}
|
{trans("Default checked")}
|
{foreach $promotion.attachments as $attachmentid => $attachment}
|
{documentview
id="{$promotion.id}-{$attachment.id}"
type=$attachment.contenttype
name=$attachment.filename
url="?m=promotionattachmentview&promotionid={$promotion.id}&attachmentid={$attachment.id}"
external=true
}
|
{$attachment.label|escape}
|
{if !empty($attachment.checked)}
{icon name="checked"}
{/if}
|
{/foreach}
|
{/if}
|
{if !$promotion.deleted}
{button icon="edit" label="Edit" href="?m=promotionedit&id={$promotion.id}"}
{/if}
{if !$promotion.deleted || !$promotion.assignments}
{button icon="delete" label="Delete" id="delete-promotion" data_href="?m=promotiondel&id={$promotion.id}"}
{/if}
|