<div class="xleprogress">
<{include file="db:`$dirname`_inc_menu.html"}>
<{if $actionForm->hasError()}>
  <ul class="error">
    <{foreach item=message from=$actionForm->getErrorMessages()}>
      <li><{$message|xoops_escape}></li>
    <{/foreach}>
  </ul>
<{/if}>

<h1><{$smarty.const._MD_XLEPROGRESS_LANG_APPROVAL_EDIT}></h1>
<form action="index.php?action=ApprovalEdit" method="post">
  <dl>
  	<dt><{$smarty.const._MD_XLEPROGRESS_LANG_USER}></dt>
    <dd>
      <select name="uid">
        <option value=""></option>
    	<{foreach item=user from=$userlist}>
    	  <option value="<{$user->get('uid')}>" <{if $user->get('uid')==$actionForm->get('uid')}>selected="selected"<{/if}>><{$user->get('uname')}></option>
    	<{/foreach}>
      </select>
    </dd>
    <dt><{$smarty.const._MD_XLEPROGRESS_LANG_GROUP}></dt>
    <dd>
      <select name="groupid">
      	<option value=""></option>
    	<{foreach item=group from=$grouplist}>
    	  <option value="<{$group->get('groupid')}>" <{if $group->get('groupid')==$actionForm->get('groupid')}>selected="selected"<{/if}>><{$group->get('name')}></option>
    	<{/foreach}>
      </select>
    </dd>
    <dt><{$smarty.const._MD_XLEPROGRESS_LANG_DATANAME}></dt>
    <dd>
    	<select name="type_id">
    		<{foreach item=type from=$typelist}>
    			<option value="<{$type->get('type_id')}>" <{if $type->get('type_id')==$actionForm->get('type_id')}>selected="selected"<{/if}>><{$type->get('dirname')}>-<{$type->get('dataname')}></option>
    		<{/foreach}>
    	</select>
    </dd>
    <dt><{$smarty.const._MD_XLEPROGRESS_LANG_STEP}></dt>
    <dd>
      <{xoops_input type=text name=step value=$actionForm->get('step')}>
    </dd>
    <dt></dt>
    <dd>
      <{xoops_token form=$actionForm}>
      <{xoops_input type=hidden name=approval_id value=$actionForm->get('approval_id')}>
      <input type="submit" value="<{$smarty.const._SUBMIT}>" />
      <input type="submit" value="<{$smarty.const._CANCEL}>" name="_form_control_cancel" />
    </dd>
  </dl>
</form>
</div>
