{%- extends "_layout.html" %}

{%- block content %}

            <div class="row justify-content-center">
                <div class="col-md-4">
                    <div class="card bg-light">
                        <div class="card-body">
                            <form method="POST" action="{{ url_for(request.endpoint, next = next) }}">
                                <fieldset>
                                    <legend class="card-title">{{ get_icon(hawat_current_view.get_view_icon()) }} {{ hawat_current_view.get_view_title() }}</legend>

                                    <div class="d-grid row-gap-2">
                                        {%- block loginformfields %}{% endblock loginformfields %}

                                        {%- if 'csrf_token' in form %}
                                        {{ macros_form.render_form_errors(form.csrf_token.errors) }}
                                        {{ form.csrf_token }}
                                        {%- endif %}

                                        {{ form.submit(class_='btn btn-primary') }}
                                    </div>
                                </fieldset>
                            </form>
                        </div>
                    </div><!-- /.card -->
                </div>
            </div>

{%- endblock content %}
