Sha256: 610f33028307c50d10ed04b2ff3936f0f6cb758230e4717604677170552054bb

Contents?: true

Size: 1.09 KB

Versions: 9

Compression:

Stored size: 1.09 KB

Contents

<%= form_for group do |f| %>
  <% if group.errors.any? %>
    <div class="error">
      <h2><%= pluralize(group.errors.count, "error") %> prohibited this group from being saved:</h2>
      <ul>
        <% group.errors.full_messages.each do |msg| %>
          <li>
          <%= msg %>
          </li>
        <% end %>
      </ul>
    </div>
  <% end %>
<section>
  <%= f.label :name, t('group.new.name') %>
  <%= f.text_field :name %>
</section>
<section>
  <%= f.label :_participants, t('group.new.participants') %>
  <%= f.hidden_field :_participants, 'data-path' => contacts_path(format: :json) %>
</section>
<section>
  <%= f.label :tags_list, t('group.tags')%>
  <%= f.text_field :tag_list, 'data-path' => tags_path(format: :json) %>
</section>
<section>
  <%= f.label :description %>
  <%= f.text_area :description %>
</section>
  <%= f.submit :class => "btn" %>
<% end %>

<%= javascript_tag do %>
  $(function() {
    SocialStream.Group.new_(
      {
        validate: [
          {
            form: ".new_group",
            errorClass: "validation_error"

          }
        ]
      }
    );
  });
<% end %>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
social_stream-2.1.1 base/app/views/groups/_form.html.erb
social_stream-2.1.0 base/app/views/groups/_form.html.erb
social_stream-base-2.1.0 app/views/groups/_form.html.erb
social_stream-2.0.4 base/app/views/groups/_form.html.erb
social_stream-base-2.0.4 app/views/groups/_form.html.erb
social_stream-2.0.3 base/app/views/groups/_form.html.erb
social_stream-base-2.0.3 app/views/groups/_form.html.erb
social_stream-2.0.2 base/app/views/groups/_form.html.erb
social_stream-base-2.0.2 app/views/groups/_form.html.erb