{include file="./index_top.tpl"}
<div align=center>
    <br>{$lang.Bizproc_steps} "{$bizproc.name}"<br><br>
    <form action="edit_bizproc_step.php?proc={$proc_id}" method="post">
        <table class='sortableTable'>
            {foreach from=$all_steps item=edit_step}
                <tr>
                    <td><span class="draggableImg">&nbsp;</span></td>
                    <td><a href="edit_bizproc_step.php?proc={$proc_id}&step={$edit_step.id}&delete" class='href_post'
                           onclick="return href_post=jconfirm('{$lang.delete_step_confirm}', this);"><img
                                    alt="{$lang.delete}" title="{$lang.Delete_step}" src="images/b_drop.png"
                                    border=0></a></td>
                    <td><input type=text size=1 name=num[{$edit_step.id}] value={$edit_step.num}></td>
                    <td><a href="edit_bizproc_step.php?proc={$proc_id}&step={$edit_step.id}"><b
                                    title="{$lang.Edit_step}">{$edit_step.name}</b></a></td>
                </tr>
                {foreachelse}
                <tr>
                    <td>{$lang.No_steps}.</td>
                </tr>
            {/foreach}
        </table>
        <br>
        {*if $all_steps}<input class="btn btn-default btn-sm" type=submit value="{$lang.Refresh_range}"> {/if*}
        <input class="btn btn-default btn-sm" type=button value="{$lang.Add_step}"
               onclick="location.href='edit_bizproc_step.php?proc={$proc_id}&step=-1'">
        <input type=hidden name="csrf" value="{$csrf}">
    </form>
    <br>
    <a href="edit_bizproc.php">{$lang.return_to_bizproc_list}</a>
    <br><br>
</div>