22 lines
1.0 KiB
Twig
22 lines
1.0 KiB
Twig
{% set client_side_validation = form.client_side_validation is not null ? form.client_side_validation : config.plugins.form.client_side_validation|default(true) %}
|
|
{% set inline_errors = form.inline_errors is not null ? form.inline_errors : config.plugins.form.inline_errors(false) %}
|
|
|
|
<section id="grav-login">
|
|
{{ content|raw }}
|
|
|
|
<form method="post" action="{{ (base_url_relative ~ uri.path)|e }}">
|
|
{% for field in form.fields %}
|
|
{% if field.type %}
|
|
<div>
|
|
{% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<div class="form-actions secondary-accent">
|
|
<button type="submit" class="button primary" name="task" value="login.forgot"><i class="fa fa-paper-plane"></i> {{ "PLUGIN_LOGIN.BTN_SEND_INSTRUCTIONS"|t }}</button>
|
|
</div>
|
|
|
|
{{ nonce_field('forgot-form', 'forgot-form-nonce')|raw }}
|
|
</form>
|
|
</section>
|