{% extends 'partials/_master.twig' %}

{% block main %}

    <section class="bg-orange" data-bg="orange">
        <div class="container">
            {{ include('partials/_back.twig') }}
            <h1 class="text-center">Reset hasła</h1>
            <div class="text-center mb-5">{{ record.content|raw }}</div>
            
            <div class="inner-small">
                {% if message is defined and message is not empty %}
                    <div class="bg-pink p-2 text-center mb-5">{{ message }}</div>
                {% endif %}
                <form method="post" action="/{{ categoryName }}/reset-hasla?token={{ token }}">
                    <div class="form-group mb-3">
                        <label for="form-password" class="d-none">password*</label>
                        <input placeholder="hasło*" class="form-control" type="password" name="password" id="form-password" required autocomplete="off"/>
                    </div>
                    <div class="form-group mb-3">
                        <label for="form-confirm-password" class="d-none">password*</label>
                        <input placeholder="powtórz hasło*" class="form-control" type="password" name="confirm-password" id="form-confirm-password" required autocomplete="off"/>
                    </div>
                    <div class="d-flex justify-content-center">
                        <button type="submit" class="btn"><span>Resetuj</span></button>
                    </div>
                </form>
            </div>
        </div>
    </section>

{% endblock main %}