{if $schema.datefrom || $schema.dateto} {/if} {if $schema.description} {/if} {if !empty($schema.attachments)} {/if}
{icon name="money"} {$schema.name|escape} ({$schema.id|string_format:"%04d"}) {if $schema.deleted} ({trans("deleted promotion schema")}){/if}
{icon name="calendar"} {if $schema.data}{$schema.data}{else}{trans("unlimited")}{/if}
{icon name="period"} {if $schema.datefrom} {trans("from")} {$schema.datefrom|date_format:"Y-m-d"} {/if} {if $schema.dateto} {trans("to")} {$schema.dateto|date_format:"Y-m-d"} {/if}
{if $schema.disabled} {icon name="disconnected"} {else} {icon name="connected"} {/if} {if $schema.disabled}{trans("disabled")}{else}{trans("enabled")}{/if}
{icon name="money"} {$schema.promotion|escape}
{icon name="info"}
{$schema.description|escape|replace:"\n":"
"}
{icon name="attachment"} {foreach $schema.attachments as $attachmentid => $attachment} {/foreach}
{trans("File name")} {trans("Text label")} {trans("Default checked")}
{documentview id="{$schema.id}-{$attachment.id}" type=$attachment.contenttype name=$attachment.filename url="?m=promotionattachmentview&schemaid={$schema.id}&attachmentid={$attachment.id}" external=true } {$attachment.label|escape} {if !empty($attachment.checked)} {icon name="checked"} {/if}
{if !$schema.deleted} {button icon="edit" label="Edit" href="?m=promotionschemaedit&id={$schema.id}"} {/if} {if !$schema.deleted || !$schema.assignments} {button icon="delete" label="Delete" id="delete-promotionschema" data_href="?m=promotionschemadel&id={$schema.id}"} {/if}