{extends file="layout.html"} {block name=title}LMS: {$layout.pagetitle|striphtml}{/block} {block name=module_content}

{$layout.pagetitle}

{foreach $promotionlist as $promo} {foreachelse} {/foreach}
{icon name="money"} {trans("Name:")} ({trans("Effective date")}) {trans("ID:")} {trans("Description:")} {trans("Schemas:")} {trans("Tariffs:")} {trans("Assignments:")} {button icon="add" label="Add promotion" href="?m=promotionadd"}
{icon name="money"} {$promo.name} {if $promo.datefrom || $promo.dateto} {if $promo.datefrom} ({trans("from:")} {$promo.datefrom|date_format:"%Y/%m/%d"}{if !$promo.dateto}){/if} {/if} {if $promo.dateto} {if !$promo.datefrom}({/if}{trans("to:")} {$promo.dateto|date_format:"%Y/%m/%d"}) {/if} {/if} ({$promo.id|string_format:"%04d"}) {$promo.description} {$promo.scs|default:"-"} {$promo.tariffs|default:"-"} {$promo.assignments|default:"-"} {if !$promo.deleted} {if $promo.disabled} {button type="link" icon="disconnected" tip="Enable" href="?m=promotionset&id={$promo.id}&access={$promo.disabled}"} {else} {button type="link" icon="connected" tip="Disable" href="?m=promotionset&id={$promo.id}&access={$promo.disabled}"} {/if} {/if} {if !$promo.deleted || !$promo.assignments} {button type="link" icon="delete" tip="Delete" href="?m=promotiondel&id={$promo.id}"} {/if} {button type="link" icon="clone" tip="Clone" href="?m=promotionclone&id={$promo.id}"} {if !$promo.deleted} {button type="link" icon="edit" tip="Edit" href="?m=promotionedit&id={$promo.id}"} {/if} {button type="link" icon="info" tip="Info" href="?m=promotioninfo&id={$promo.id}"}
{trans("There are no promotions in database.")}
{icon name="optional-info"} {trans("Total:")} {$listdata.total|default:"0"} {button icon="add" label="Add promotion" href="?m=promotionadd"}
{/block}