<div class="xleprogress">
<{include file="db:`$dirname`_inc_menu.html"}>

<h1><{$smarty.const._MD_XLEPROGRESS_LANG_APPROVAL_LIST}></h1>
<{if count($objects) > 0}>
  <{foreach item=objs from=$objects}>
  <h2><{$objs[0]->mType->getShow('dirname')}> - <{$objs[0]->mType->getShow('dataname')}></h2>
	<ul class="toptab">
	  <li><a href="index.php?action=ApprovalEdit&amp;type_id=<{$objs[0]->getShow('type_id')}>"><{$smarty.const._MD_XLEPROGRESS_LANG_ADD_A_NEW_APPROVAL}></a></li>
	</ul>
  <ul>
  <{foreach item=obj from=$objs}>
  <{if $obj->get('uid')>0 || $obj->get('groupid')>0}>
    <li>[<{$smarty.const._MD_XLEPROGRESS_LANG_STEP}> <{$obj->getShow('step')}>] 
    <{if $obj->get('groupid') ==0}>
    <{$smarty.const._MD_XLEPROGRESS_LANG_USER}>:<{$obj->getShow('uid')|xoops_user:"user_name"}>
    <{else}>
    <{$smarty.const._MD_XLEPROGRESS_LANG_GROUP}>:
    <{if $obj->get('groupid')==$xleprogressGroup}>
    <{$smarty.const._MD_XLEPROGRESS_LANG_GROUP_ADMIN}>
    <{else}>
    <{if !is_null($obj->mGroup)}><{$obj->mGroup->getShow('name')}><{/if}>
    <{/if}>
    <{/if}>
    <a href="./index.php?action=ApprovalEdit&amp;approval_id=<{$obj->getShow('approval_id')}>"><{$smarty.const._EDIT}></a>
    <a href="./index.php?action=ApprovalDelete&amp;approval_id=<{$obj->getShow('approval_id')}>"><{$smarty.const._DELETE}></a>
    </li>
  <{else}>
    <{$smarty.const._MD_XLEPROGRESS_MESSAGE_NO_APPROVALS_EXIST}>
  <{/if}>
  <{/foreach}>
  </ul>
  <{/foreach}>
<{else}>
	<{$smarty.const._MD_XLEPROGRESS_MESSAGE_ADD_A_APPROVAL}>
<{/if}>
</div>
