Sha256: cdf55268d6353cfa595a48252a2aec5865f8fab8be1800941f68482ab7327bd0

Contents?: true

Size: 1.39 KB

Versions: 17

Compression:

Stored size: 1.39 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">
        Password Confirmation does not match Password
      </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

17 entries across 17 versions & 1 rubygems

Version Path
rails_base-0.75.6 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.75.5 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.75.4 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.75.3 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.75.2 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.75.1 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.75.0 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.74.0 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.73.1 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.73.0 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.72.1 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.72.0 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.71.0 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.70.1.pre app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.70.0 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.61.0 app/views/rails_base/devise/passwords/new.html.erb
rails_base-0.60.0 app/views/rails_base/devise/passwords/new.html.erb