Sha256: 02a79b7f272633aa8566bbf7f125189154c6757c689991adfdf5a9c37cb5d1d5
Contents?: true
Size: 1.37 KB
Versions: 4
Compression:
Stored size: 1.37 KB
Contents
<h2 class='text-center'>Forgot your password?</h2> <%= render "devise/shared/error_messages", resource: resource %> <% submit_id = "submit_id_#{Time.now.to_i}" %> <%= form_for(:user, as: :user, url: RailsBase.url_routes.user_password_path, html: { method: :post, class: 'forgot_password' }) do |f| %> <div class="field form-group row"> <div class="col-md-10 offset-md-1"> <%= f.label :email, class: 'text-center' %><br> <%= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: :email, class: 'form-control'%> <div class="invalid-feedback"> Valid email required </div> </div> </div> <div class="actions row"> <div class="col-md-10 offset-md-1 text-center"> <div class="row"> <div class="col-md-9"> <%= f.submit "Send me reset password instructions", class: "btn btn_success btn-block #{submit_id}" %> </div> <div class="col-md-3"> <a class="btn btn_primary btn-block" href="<%= RailsBase.url_routes.new_user_session_path %>" role="button">Sign in</a> </div> </div> </div> </div> <% end %> <% values = [ { name: '#user_email', criteria: { required: true, pattern: :email }} ] function_name = 'forgot_password' %> <%= render partial: 'rails_base/shared/custom_form_validation_javascript', locals: { function_name: function_name, values: values } %>
Version data entries
4 entries across 4 versions & 1 rubygems