% content_for :toolbar do %>
<%= render :partial => 'toolbar_show' %>
<% end %>
<% content_for :sidebar do %>
<%= render :partial => 'sidebar_show' %>
<% end %>
<% content_for :headers do %>
<%= stylesheet_link_tag "jquery-ui.css", :media => "screen, projection" %>
<%= javascript_include_tag 'jquery-ui.min','jquery.validate' %>
<% end %>
<%= form_for(@user, :remote => true) do |f| %>
<% if @user.errors.any? %>
<% if !params[:section].present? or params[:section].eql?("about_me") %>
<%=t('edit.personal_info')%>
<% content_for :javascript do %>
$(function () {
$( "#user_profile_attributes_birthday" ).datepicker({ yearRange: '1900:<%= Time.now.utc.to_date.year%>',
changeYear: true, maxDate: '+0d', defaultDate: '-30y'});
$("#personal_info").addClass('section_highlight');
});
<% end %>
<%= f.fields_for :profile do |profile_form| %>
<%= profile_form.label t('edit.aboutme') %>
<%= profile_form.text_area :description, :maxlength => 200, :rows => 10, :class => "form_tag_long" %>
<% end %>
<% end %>
<% if !params[:section].present? or params[:section].eql?("contact_info") %>
<% content_for :javascript do %>
$(function() {
$("#contact_info").addClass('section_highlight');
});
<% end %>
<%=t('edit.contact')%>
<%= f.fields_for :profile do |profile_form| %>
<% end %>
<% end %>
<% if !params[:section].present? or params[:section].eql?("my_experience") %>
<% content_for :javascript do %>
$(function() {
$("#experience_info").addClass('section_highlight');
});
<% end %>
<%=t('edit.experience')%>
<%= f.fields_for :profile do |profile_form| %>
<%= profile_form.text_area :experience, :maxlength => 500, :rows => 10, :class => "form_tag_long" %>
<% end %>
<% end %>
<% if params[:section].present? %>
<%= hidden_field_tag("section", params[:section]) %>
<% end %>
<%= f.submit "Update", :class => "button" %>
Cancel
<% end %>