<% content_for :javascript do %> $(function() { $(".new_group").validate({errorClass: "validation_error"}); }); $("#group__participants").fcbkcomplete({ json_url: "<%= contacts_path(:form => true, :format => :json) %>", cache: true, filter_hide: true, newel: false, height: 6 }); $("#group_actor_tag_list").fcbkcomplete({ json_url: "<%= tags_path(:format => :json) %>", cache: false, filter_case: true, filter_hide: true, newel: false, height: 6 }); <% end %> <%= location( link_to(t('group.other'), groups_path), link_to(t('group.new.action'), new_group_path) ) %>
<%= form_for @group do |f| %> <% 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 t('group.tags')%>
<%= f.fields_for :actor do |actor_form| %> <%= actor_form.select :tag_list, [], :class => "form_tag" %> <%end%>
<%= f.label :description %>
<%= f.text_area :description, :rows =>6, :cols=> 53, :class => "form_tag" %>
<%= f.submit :class => "button" %>
<% end %>