{if $promotion.datefrom || $promotion.dateto} {/if} {if $promotion.description} {/if} {if !empty($promotion.attachments)} {/if}
{icon name="money"} {$promotion.name|escape} ({$promotion.id|string_format:"%04d"}) {if $promotion.deleted} ({trans("deleted promotion")}){/if}
{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 $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}
{icon name="optional-info"}
{$promotion.description|escape|replace:"\n":"
"}
{icon name="attachment"} {foreach $promotion.attachments as $attachmentid => $attachment} {/foreach}
{trans("File name")} {trans("Text label")} {trans("Default checked")}
{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}
{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}