<div id='new_item'>
  <div id='new_item_container'>
    <h3>Editing profile</h3>

    <%= form_for @user, url: profile_path, method: :put, html: { multipart: true } do |f| %>
      <% if @user.errors.any? %>
        <div id='error_explanation'>
          <h2><%= pluralize(@user.errors.count, 'error') %> prohibited this event from being saved:</h2>
          <ul>
            <% @user.errors.full_messages.each do |msg| %>
              <li><%= msg %></li>
            <% end %>
          </ul>
        </div>
      <% end %>

      <div class='field'>
        <%= f.label :name %> <small class='vermelho'>*</small><br />
        <%= f.text_field :name %>
      </div>
    <% end %>
  </div>
</div>

<div id='new_item'>
  <div id='new_item_container'>
    <h3>Editing profile</h3>

    <%= form_for @user, url: profile_path, method: :put, html: { multipart: true } do |f| %>
      <% if @user.errors.any? %>
        <div id='error_explanation'>
          <h2><%= pluralize(@user.errors.count, 'error') %> prohibited this event from being saved:</h2>
          <ul>
            <% @user.errors.full_messages.each do |msg| %>
              <li><%= msg %></li>
            <% end %>
          </ul>
        </div>
      <% end %>

      <div class='field'>
        <%= f.label :name %> <small class='vermelho'>*</small><br />
        <%= f.text_field :name %>
      </div>

      <div class='field'>
        <%= user_picture @user %><br />
        <%= f.label :photo, 'Picture' %><br />
        <%= f.file_field :photo %>
      </div>

      <div class='actions'>
        <%= image_submit_tag 'save.png' %>
      </div>
    <% end %>
  </div>
</div>

Revert "Disabling photo upload feature for now"
Revert "Disabling photo upload feature for now"

This reverts commit 151e03981433514039c21af4cefd84584d4d9c09.
