<% 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? %>

<%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:

<% end %> <% content_for :javascript do %> $(function() { $(".edit_user").validate(); }); <% end %>
<% if !params[:section].present? or params[:section].eql?("about_me") %>

<%=t('edit.personal_info')%>

<%= f.label :name %>
<%= f.text_field :name, :class => "form_tag" %>
<% 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 :organization %>
<%= profile_form.text_field :organization , :class => "form_tag" %>
<%= profile_form.label :birthday %>
<%= profile_form.text_field( :birthday , :class => "date form_tag") %>
<%= profile_form.label :city %>
<%= profile_form.text_field :city, :class => "form_tag" %>
<%= profile_form.label :country %>
<%= profile_form.text_field :country, :class => "form_tag" %>
<%= 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| %>
<%= profile_form.label :phone %>
<%= profile_form.text_field :phone, :class => "form_tag" %>
<%= profile_form.label :mobile %>
<%= profile_form.text_field :mobile, :class => "form_tag" %>
<%= profile_form.label :fax %>
<%= profile_form.text_field :fax, :class => "form_tag" %>
<%= profile_form.label :address %>
<%= profile_form.text_field :address, :class => "form_tag" %>
<%= profile_form.label :website %>
<%= profile_form.text_field :website, :class => "form_tag" %>
<% 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" %> 
<% end %>