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