Sha256: e7bb9522215b8ba46fccec0fee593195e2e7be151253fbeb9997260ad144ec3a

Contents?: true

Size: 1.37 KB

Versions: 11

Compression:

Stored size: 1.37 KB

Contents

<div class="o-page">
  <div class="o-page__content u-pd-content">
    <div class="u-centered u-container--condensed">
      <h1 class="u-margin-bottom--large">Change your password</h1>
      <div class="u-hr-small u-margin-bottom--xlarge"></div>

      <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
        <%= f.hidden_field :reset_password_token %>
        <%= f.password_field :password, autocomplete: 'off', autofocus: true, class: 'o-input-placehoder--medium-gray' + (resource.errors[:password].present? ? ' o-input-error' : ''), placeholder: 'Enter new password' %>
        <% if resource.errors[:password].present? %>
          <p class="cs-txt-link--error">
            Password <%= resource.errors[:password].first %>
          </p>
        <% end %>
        <%= f.password_field :password_confirmation, autocomplete: 'off', class: 'o-input-placehoder--medium-gray' + (resource.errors[:password_confirmation].present? ? ' o-input-error' : ''), placeholder: 'Confirm new password' %>
        <% if resource.errors[:password_confirmation].present? %>
          <p class="cs-txt-link--error">
            <%= resource.errors[:password_confirmation].first %>
          </p>
        <% end %>
        <%= f.submit 'Change my password', class: 'button o-btn--xs-full warning o-btn--xs-full' %>
      <% end %>
    </div>
  </div>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 app/views/devise/passwords/edit.html.erb
lcms-engine-0.5.4 app/views/devise/passwords/edit.html.erb
lcms-engine-0.5.3 app/views/devise/passwords/edit.html.erb
lcms-engine-0.5.2 app/views/devise/passwords/edit.html.erb
lcms-engine-0.5.1 app/views/devise/passwords/edit.html.erb
lcms-engine-0.5.0 app/views/devise/passwords/edit.html.erb
lcms-engine-0.4.2 app/views/devise/passwords/edit.html.erb
lcms-engine-0.4.1 app/views/devise/passwords/edit.html.erb
lcms-engine-0.4.0 app/views/devise/passwords/edit.html.erb
lcms-engine-0.3.1 app/views/devise/passwords/edit.html.erb
lcms-engine-0.3.0 app/views/devise/passwords/edit.html.erb