Sha256: f2d7e04e77924315c083ebbb5deecc40d75ac16ae3641300508b33378eb740d0

Contents?: true

Size: 1.7 KB

Versions: 7

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-lg-2 control-label' %>
    <div class="col-lg-10">
      <%= f.email_field :email, class: 'form-control' %>
    </div>
  </div>

  <div class="form-group">
    <%= f.label :password, class: 'col-lg-2 control-label' %>
    <div class="col-lg-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-lg-2 control-label' %>
    <div class="col-lg-10">
      <%= f.password_field :password_confirmation, class: 'form-control' %>
    </div>
  </div>

  <div class="form-group">
    <%= f.label :current_password, class: 'col-lg-2 control-label' %>
    <div class="col-lg-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-lg-10 col-offset-2">
      <%= 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

7 entries across 7 versions & 1 rubygems

Version Path
contour-2.1.0.beta11 app/views/contour/registrations/edit.html.erb
contour-2.1.0.beta10 app/views/contour/registrations/edit.html.erb
contour-2.1.0.beta9 app/views/contour/registrations/edit.html.erb
contour-2.1.0.beta8 app/views/contour/registrations/edit.html.erb
contour-2.1.0.beta7 app/views/contour/registrations/edit.html.erb
contour-2.1.0.beta6 app/views/contour/registrations/edit.html.erb
contour-2.1.0.beta5 app/views/contour/registrations/edit.html.erb