|
{icon name="calendar"}
|
{if $schema.data}{$schema.data}{else}{trans("unlimited")}{/if}
|
{if $schema.datefrom || $schema.dateto}
|
{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}
|
{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}
|
{if $schema.description}
|
{icon name="info"}
|
{$schema.description|escape|replace:"\n":" "}
|
|
{/if}
{if !empty($schema.attachments)}
|
{icon name="attachment"}
|
|
{trans("File name")}
|
{trans("Text label")}
|
{trans("Default checked")}
|
{foreach $schema.attachments as $attachmentid => $attachment}
|
{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}
|
{/foreach}
|
{/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}
|