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

{$layout.pagetitle}

{foreach $promotionlist as $promo} {foreachelse} {/foreach}
{trans("Name:")} ({trans("Effective date")}) {trans("ID:")} {trans("Description:")} {trans("Schemas:")} {trans("Tariffs:")} {button icon="add" label="Add promotion" href="?m=promotionadd"}
{$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:"-"} {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} {button type="link" icon="delete" tip="Delete" href="?m=promotiondel&id={$promo.id}"} {button type="link" icon="clone" tip="Clone" href="?m=promotionclone&id={$promo.id}"} {button type="link" icon="edit" tip="Edit" href="?m=promotionedit&id={$promo.id}"} {button type="link" icon="info" tip="Info" href="?m=promotioninfo&id={$promo.id}"}

{trans("There are no promotions in database.")}

{trans("Total:")} {$listdata.total|default:"0"} {button icon="add" label="Add promotion" href="?m=promotionadd"}
{/block}