<% content_for :headers do %> <%= stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection" %> <%= javascript_include_tag 'jquery.fcbkcomplete.min', 'jquery.validate' %> <% end %> <% content_for :javascript do %> $(function() { $(".new_group").validate(); }); $("#group__participants").fcbkcomplete({ json_url: "<%= contacts_path(:format => :json) %>", cache: true, filter_case: true, filter_hide: true, newel: false, height: 6 }); <% end %> <%= location( link_to(image_tag("btn/btn_group.png", :class => "menu_icon")+t('group.other'), groups_path), link_to(image_tag("btn/btn_group.png", :class => "menu_icon")+t('group.new.action'), new_group_path('group' => { '_founder' => current_subject.slug })) ) %>
<%= form_for @group do |f| %> <% f.object._founder = current_subject.slug %> <%= f.hidden_field :_founder %> <% if @group.errors.any? %>

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

<% end %>

<%= t('group.new.action') %>

<%= f.label t('group.new.name') %>
<%= f.text_field :name, :class => "required form_tag" %>
<%= f.label t('group.new.participants') %>
<%= f.select :_participants, [], :class => "form_tag" %>
<%= f.label :description %>
<%= f.text_area :description, :rows =>6, :cols=> 53, :class => "form_tag" %>
<%= f.submit :class => "button" %>
<% end %>