Sha256: b3cf2ce4907de238c5fc1ffe7167435d801bb822decc1bb0d6bc45f18d9cb57e

Contents?: true

Size: 1.73 KB

Versions: 1

Compression:

Stored size: 1.73 KB

Contents

<%= render 'devise/shared/display_devise_error_messages' %>

<div class="row">
  <div class="col-md-4 col-md-offset-4">
    <div class="well well-lg well-opacity">
      <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
      
        <h4>Edit <%= resource_name.to_s.humanize %></h4>
        <div class="field form-group">
          <%= f.email_field :email, autofocus: true, placeholder: 'Email', class: 'form-control' %>
        </div>
      
        <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
          <div><%= t 'devise.waiting_for_confirmation' %> <%= resource.unconfirmed_email %></div>
        <% end %>
      
        <div class="field form-group">
          <%= f.password_field :password, autocomplete: "off", placeholder: t('devise.password_blank_if') %>
        </div>
      
        <div class="field form-group">
          <%= f.password_field :password_confirmation, autocomplete: "off", placeholder: t('devise.password_confirmation'), class: 'form-control' %>
        </div>
      
        <div class="field form-group">
          <%= f.password_field :current_password, autocomplete: "off", placeholder: t('devise.current_password'), class: 'form-control' %>
        </div>
      
        <div class="actions">
          <%= f.submit t('devise.update'), class: 'btn btn-default' %>
        </div>
      <% end %>
      
      <h4><%= t 'devise.cancel_account' %></h4>
      
      <p><%= t :unhappy %> <%= button_to t('devise.cancel_account'), registration_path(resource_name), data: { confirm: t('devise.are_you_sure') }, method: :delete, class: 'btn btn-default' %></p>
      
      <%= link_to t('devise.go_back'), :back %>   
    </div>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
woodlock-0.0.1 app/views/devise/registrations/edit.html.erb