<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
  <% if resource.errors.any? %>
    <div class="card red lighten-3">
      <div class="card-content">
        <div class="card-title">Please fix the following errors:</div>
        <ul class="browser-default">
          <%= devise_error_messages! %>
        </ul>
      </div>
    </div>
  <% end %>

  <div class="row">
    <div id="your-info" class="col s12">
      <%= render partial: 'devise/registrations/panes/information', locals: { f: f } %>
    </div>
  </div>

  <div class="center">
    <div class="actions">
      <%= f.submit "Save changes", class: 'btn blue' %>
      <%= link_to "Cancel", :back, class: 'btn grey' %>
    </div>
  </div>
<% end %>
