{extends file="layout.html"} {block name=title}LMS: {$layout.pagetitle|striphtml}{/block} {block name=module_content}
{icon name="id"} {trans("Template:")} | {trans("ID:")} | {trans("Example (next) number:")} | {trans("No. of issued documents:")} | {trans("Document type:")} | {trans("Period:")} | {trans("Default:")} | {button icon="add" label="Add plan" href="?m=numberplanadd"} |
{icon name="filter" tip="Filter"}
{icon name="clear" id="clear-filter"}
|
|||||||
{include file="pagination.html"} | |||||||
{icon name="id"}
{$plan.template}
{if !empty($plan.divisions)}
{capture assign="tip"}{foreach $plan.divisions as $division}{if !$division@first} {/if}{$division.shortname|escape|escape}{/foreach}{/capture} {icon name="division" tip=$tip} {/if} {if !empty($plan.users)} {capture assign="tip"}{foreach $plan.users as $user}{if !$user@first} {/if}{$user.rname|escape|escape} ({$user.login|escape|escape}){/foreach}{/capture} {icon name="user" tip=$tip} {/if} |
({$plan.id|string_format:"%04d"}) | {number number=$plan.next template=$plan.template time=$smarty.now} | {$plan.issued|default:"0"} | {assign var="doctype" value=$plan.doctype} {$_DOCTYPES.$doctype} | {assign var="period" value=$plan.period} {$_NUM_PERIODS.$period} | {if $plan.isdefault}{icon name="checked" tip="yes"}{/if} | {if empty($plan.issued)} {button type="link" icon="delete" tip="Delete" class="delete-numberplan" href="?m=numberplandel&id={$plan.id}"} {else} {button type="link" icon="delete" tip="Number plan is used by existing documents!" class="delete-numberplan" href="?m=numberplandel&id={$plan.id}" disabled=true} {/if} {button type="link" icon="edit" tip="Edit" href="?m=numberplanedit&id={$plan.id}"} |
{trans("No such numbering plans in database.")} | |||||||
{include file="pagination.html"} | |||||||
{button icon="add" label="Add plan" href="?m=numberplanadd"} |