forgot-form.html.twig 1.0 KB

123456789101112131415161718192021
  1. {% set client_side_validation = form.client_side_validation is not null ? form.client_side_validation : config.plugins.form.client_side_validation|default(true) %}
  2. {% set inline_errors = form.inline_errors is not null ? form.inline_errors : config.plugins.form.inline_errors(false) %}
  3. <section id="grav-login">
  4. {{ content|raw }}
  5. <form method="post" action="{{ (base_url_relative ~ uri.path)|e }}">
  6. {% for field in form.fields %}
  7. {% if field.type %}
  8. <div>
  9. {% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
  10. </div>
  11. {% endif %}
  12. {% endfor %}
  13. <div class="form-actions secondary-accent">
  14. <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>
  15. </div>
  16. {{ nonce_field('forgot-form', 'forgot-form-nonce')|raw }}
  17. </form>
  18. </section>