<% 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 "edit_user", :media => "screen, projection" %> <%= javascript_include_tag 'jquery.validate' %> <% end %> <%= form_for(@group, :remote => true) do |f| %> <% if @group.errors.any? %>

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

<% end %> <% content_for :javascript do %> $(function() { $("#content").css('border-bottom', 'none'); $(".edit_group").validate(); }); <% end %>
<% if !params[:section].present? or params[:section].eql?("about_us") %>

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

<%= f.label :name %>
<%= f.text_field :name, :class => "required form_tag" %>
<%= f.fields_for :profile do |profile_form| %>
<%= profile_form.label :organization %>
<%= profile_form.text_field :organization , :class => "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 :description %>
<%= profile_form.text_area :description, :maxlength => 400, :class => "form_tag" %>
<% 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 => "phone form_tag" %>
<%= profile_form.label :mobile %>
<%= profile_form.text_field :mobile, :class => "phone form_tag" %>
<%= profile_form.label :fax %>
<%= profile_form.text_field :fax, :class => "phone form_tag" %>
<%= profile_form.label :address %>
<%= profile_form.text_field :address, :class => "form_tag" %>
<%= profile_form.label :website %>
<%= profile_form.text_field :website, :class => "url form_tag" %>
<% end %> <% end %>
<%= f.submit "Update", :class => "button" %> 
<% end %>