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

{$layout.pagetitle}

{foreach $sourcelist as $source} {foreachelse} {/foreach}
{icon name="cashsource"} {trans("Name:")} {trans("ID:")} {trans("Main bank account:")} {trans("Description:")} {button icon="add" label="Add source" href="?m=cashsourceadd"}
{icon name="cashsource"} {$source.name} ({$source.id|string_format:"%04d"}) {if $source.account} {format_bankaccount($source.account)} {/if} {$source.description} {if $source.deleted == 1} {button type="link" icon="disconnected" tip="Enable" href="?m=cashsourcelist&action=enable&id={$source.id}"} {else} {button type="link" icon="connected" tip="Disable" href="?m=cashsourcelist&action=disable&id={$source.id}"} {/if} {button type="link" class="delete-cashsource" icon="delete" tip="Delete" data_resource_id=$source.id} {button type="link" icon="edit" tip="Edit" href="?m=cashsourceedit&id={$source.id}"}
{trans("There are no sources in database.")}
{button icon="add" label="Add source" href="?m=cashsourceadd"}
{/block}