<div class="reset">
<form action="/user/reset" method="post">
    <table width="100%">
        <tr>
            <td>Персонаж: </td>
            <td>{$Character.Name}</td>
        </tr>
        <tr>
            <td>Нужен уровень</td>
            <td>
                {if $Character.cLevel < $NeedToReset.NeedLevel}
                    {$Block = true}
                    <span style="color: red;">{$NeedToReset.NeedLevel}</span>
                {else}
                    <span style="color: green;">{$NeedToReset.NeedLevel}</span>
                {/if}
            </td>
        </tr>
        <tr>
            <td>Нужно денег</td>
            <td>
                {if $Character.Money < $NeedToReset.NeedZen}
                    {$Block = true}
                    <span style="color: red;">{$NeedToReset.NeedZen}</span>
                {else}
                    <span style="color: green;">{$NeedToReset.NeedZen}</span>
                {/if}
            </td>
        </tr>
        {if $NeedToReset.NeedEmptyInv}
        <tr>
            <td colspan="2">
                {if Character::EmptyInventory($Character)}
                    <span style="color: green;">Инвентарь пуст</span>
                {else}
                    {$Block = true}
                    <span style="color: red;">Инвентарь не пуст</span>
                {/if}
            </td>
        </tr>
        {/if}
        {if $NeedToReset.ClearSkill}
            <tr>
                <td colspan="2">
                    Скилы будут очищенны
                </td>
            </tr>
        {/if}
        <tr>
            <td colspan="2">
                Вы получите {$NeedToReset.RewardPoints} поинтов
            </td>
        </tr>
        <tr>
            {if $Block == true}
            <td>Условия не выполнены</td>
            {else}
                <td><button name="btn_reset">Сделать ресет</button></td>
            {/if}
        </tr>
    </table>
    </form>
</div>