Sha256: db1034b7dd25f1597bdf036ac3271dff3c3a44c67c7a7259f5c586fabe543ba7

Contents?: true

Size: 1.7 KB

Versions: 39

Compression:

Stored size: 1.7 KB

Contents

<% @title = "Edit #{resource_name.to_s.humanize}" %>
<div class="page-header">
  <h1><%= @title %></h1>
</div>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), html: { method: :put, class: 'form-horizontal' }) do |f| %>
  <%= devise_error_messages! %>

  <div class="form-group">
    <%= f.label :email, class: 'col-md-2 control-label' %>
    <div class="col-md-10">
      <%= f.email_field :email, class: 'form-control' %>
    </div>
  </div>

  <div class="form-group">
    <%= f.label :password, class: 'col-md-2 control-label' %>
    <div class="col-md-10">
      <%= f.password_field :password, autocomplete: "off", class: 'form-control' %>
      <i class="help-block">(leave blank if you don't want to change it)</i>
    </div>
  </div>

  <div class="form-group">
    <%= f.label :password_confirmation, class: 'col-md-2 control-label' %>
    <div class="col-md-10">
      <%= f.password_field :password_confirmation, class: 'form-control' %>
    </div>
  </div>

  <div class="form-group">
    <%= f.label :current_password, class: 'col-md-2 control-label' %>
    <div class="col-md-10">
      <%= f.password_field :current_password, class: 'form-control' %>
      <i class="help-block">(we need your current password to confirm your changes)</i>
    </div>
  </div>

  <div class="form-group">
    <div class="col-md-offset-2 col-md-10">
      <%= f.submit "Update", class: 'btn btn-primary' %>
    </div>
  </div>
<% end %>

<div class="page-header">
  <h3>Cancel my account</h3>
</div>

<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), method: :delete, class: 'btn btn-danger-inverse', data: { confirm: "Are you sure?" } %>.</p>

<%= link_to "Back", :back %>

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
contour-3.0.1 app/views/contour/registrations/edit.html.erb
contour-3.0.1.rc app/views/contour/registrations/edit.html.erb
contour-3.0.0 app/views/contour/registrations/edit.html.erb
contour-3.0.0.rc app/views/contour/registrations/edit.html.erb
contour-3.0.0.beta1 app/views/contour/registrations/edit.html.erb
contour-2.7.0 app/views/contour/registrations/edit.html.erb
contour-2.7.0.beta1 app/views/contour/registrations/edit.html.erb
contour-2.6.0 app/views/contour/registrations/edit.html.erb
contour-2.6.0.rc app/views/contour/registrations/edit.html.erb
contour-2.6.0.beta8 app/views/contour/registrations/edit.html.erb
contour-2.6.0.beta7 app/views/contour/registrations/edit.html.erb
contour-2.6.0.beta6 app/views/contour/registrations/edit.html.erb
contour-2.6.0.beta5 app/views/contour/registrations/edit.html.erb
contour-2.6.0.beta4 app/views/contour/registrations/edit.html.erb
contour-2.6.0.beta3 app/views/contour/registrations/edit.html.erb
contour-2.6.0.beta2 app/views/contour/registrations/edit.html.erb
contour-2.6.0.beta1 app/views/contour/registrations/edit.html.erb
contour-2.5.0 app/views/contour/registrations/edit.html.erb
contour-2.5.0.beta1 app/views/contour/registrations/edit.html.erb
contour-2.4.0 app/views/contour/registrations/edit.html.erb