<h1>Grand Reset</h1>
<form action="/admin/modules/grandreset" method="post">
    <table>
        <tr>
            <td>Enable</td>
            <td>
                {if $Config.Enable}
                    <input name="Enable" id="Enable" type="checkbox" checked/>
                {else}
                    <input name="Enable" id="Enable" type="checkbox"/>
                {/if}
            </td>
        </tr>
        <tr>
            <td>Need Level</td>
            <td><input name="NeedLevel" id="NeedLevel" value="{$Config.NeedLevel}" type="text"/></td>
        </tr>
        <tr>
            <td>Need Reset</td>
            <td><input name="NeedReset" id="NeedReset" value="{$Config.NeedReset}" type="text"/></td>
        </tr>
        <tr>
            <td>Need Empty Inventory</td>
            <td>
                {if $Config.NeedEmptyInv}
                    <input name="NeedEmptyInv" id="NeedEmptyInv" type="checkbox" checked/>
                {else}
                    <input name="NeedEmptyInv" id="NeedEmptyInv" type="checkbox"/>
                {/if}
            </td>

        </tr>
        <tr>
            <td>Clear Skill</td>
            <td>
                {if $Config.ClearSkill}
                    <input name="ClearSkill" id="ClearSkill" type="checkbox" checked/>
                {else}
                    <input name="ClearSkill" id="ClearSkill" type="checkbox"/>
                {/if}
            </td>

        </tr>
        <tr>
            <td colspan="2">Reward Point</td>
        </tr>
        <tr>
            <td>Type Point</td>
            <td>
                <select name="reward_point_type">
                    {if $Config.RewardPoint.Type == 2}
                        <option value="2"" selected>Сохранёные поинты + Ресет поинты</option>
                    {else}
                        <option value="2">Сохранёные поинты + Ресет поинты</option>
                    {/if}

                    {if $Config.RewardPoint.Type == 1}
                        <option value="1" selected>Ресет * поинты</option>
                    {else}
                        <option value="1">Ресет * поинты</option>
                    {/if}
                </select>
            </td>
        </tr>
        <tr>
            <td>DW/SM/GM</td>
            <td><input type="text" name="reward_point_dw" value="{$Config.RewardPoint.DW}"></td>
        </tr>
        <tr>
            <td>DK/BK/BM</td>
            <td><input type="text" name="reward_point_dk" value="{$Config.RewardPoint.DK}"></td>
        </tr>
        <tr>
            <td>FE/ME/FE</td>
            <td><input type="text" name="reward_point_elf" value="{$Config.RewardPoint.ELF}"></td>
        </tr>

        <tr>
            <td>SUM/BS/DiS</td>
            <td><input type="text" name="reward_point_sum" value="{$Config.RewardPoint.SUM}"></td>
        </tr>

        <tr>
            <td>MG/DM</td>
            <td><input type="text" name="reward_point_mg" value="{$Config.RewardPoint.MG}"></td>
        </tr>
        <tr>
            <td>DL/LE</td>
            <td><input type="text" name="reward_point_dl" value="{$Config.RewardPoint.DL}"></td>
        </tr>
        <tr>
            <td>RF/FM</td>
            <td><input type="text" name="reward_point_rf" value="{$Config.RewardPoint.RF}"></td>
        </tr>
        <tr><td colspan="2">Reward to Reset</td></tr>
        {foreach $Valutes item=$val key=$i}
            {if $val.Name != ''}
                <tr>
                    <td>
                        Valute {$i}({$val.Name})
                    </td>
                    <td>
                        <input name="val_reward_{$i}" value="{$Config.Reward.Valutes[$i]}" type="text">
                    </td>
                </tr>
            {/if}
        {/foreach}

        <tr><td colspan="2">Price to Reset</td></tr>
        {foreach $Valutes item=$val key=$i}
            {if $val.Name != ''}
                <tr>
                    <td>
                        Valute {$i}({$val.Name})
                    </td>
                    <td>
                        <input name="val_take_{$i}" value="{$Config.Take.Valutes[$i]}" type="text">
                    </td>
                </tr>
            {/if}
        {/foreach}
        <tr>
            <td colspan="2">
                <button class="def_adm_btn" name="grandreset_btn">Save</button>
            </td>
        </tr>
    </table>
</form>