<%= 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 class="col s12">
      <ul class="tabs">
        <li class="tab col s3"><a href="#your-info" class="black-text">Your info</a></li>
        <li class="tab col s3"><a href="#preferences" class="black-text">Preferences</a></li>
        <li class="tab col s3"><a href="#more-options" class="black-text">More options</a></li>
      </ul>
    </div>
    <div id="your-info" class="col s12">
      <%= render partial: 'devise/registrations/panes/information', locals: { f: f } %>
    </div>
    <div id="preferences" class="col s12">
      <%= render partial: 'devise/registrations/panes/preferences', locals: { f: f } %>
    </div>
    <div id="more-options" class="col s12">
      <%= render partial: 'devise/registrations/panes/more', 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 %>
