<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">
  <table width="100%" cellspacing="1" class="outer">
  	<tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_USER}></td>
    <td class="odd">
      <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>
    </td></tr>
    <tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_GROUP}></td>
    <td class="even">
      <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>
    </td></tr>
    <tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_DATANAME}></td>
    <td class="odd">
    	<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>
    </td></tr>
    <tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_STEP}></td>
    <td class="even">
      <{xoops_input type=text name=step value=$actionForm->get('step')}>
    </td></tr>
  </table>
      <{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" />
</form>
</div>
