Sha256: 38c006609fb945fee002f70f8c0a8cd3bde3cda00a73788b7d29f7252ed97e55

Contents?: true

Size: 1.08 KB

Versions: 29

Compression:

Stored size: 1.08 KB

Contents

<%= form_with url: rodauth.reset_password_request_path, method: :post, data: { turbo: false } do |form| %>
  <%== rodauth.reset_password_explanatory_text %>

  <% if params[rodauth.login_param] && !rodauth.field_error(rodauth.login_param) %>
    <%= form.hidden_field rodauth.login_param, value: params[rodauth.login_param] %>
  <% else %>
    <div class="form-group mb-3">
      <%= form.label "login", rodauth.login_label, class: "form-label" %>
      <%= form.email_field rodauth.login_param, value: params[rodauth.login_param], id: "login", autocomplete: "email", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.login_param)}", aria: ({ invalid: true, describedby: "login_error_message" } if rodauth.field_error(rodauth.login_param)) %>
      <%= content_tag(:span, rodauth.field_error(rodauth.login_param), class: "invalid-feedback", id: "login_error_message") if rodauth.field_error(rodauth.login_param) %>
    </div>
  <% end %>

  <div class="form-group mb-3">
    <%= form.submit rodauth.reset_password_request_button, class: "btn btn-primary" %>
  </div>
<% end %>

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
rodauth-rails-2.0.2 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-2.0.1 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-2.0.0 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.15.2 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.15.1 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.15.0 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.14.0 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
plutonium-0.6.2 lib/generators/pu/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
plutonium-0.6.1 lib/generators/pu/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
plutonium-0.6.0 lib/generators/pu/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
plutonium-0.5.0 lib/generators/pu/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.13.0 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.12.0 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.11.0 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.10.0 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.9.0 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.8.0 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.7.1 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.7.0 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb
rodauth-rails-1.6.4 lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb