Sha256: e3e53d3cb8c86925cca4016c5ffffc559cce43b6f899cb49497dc9806023f29d

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 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 %>

  <%= f.label :name, t('group.new.name') %>
  <%= f.text_field :name %>

  <%= f.label :_participants, t('group.new.participants') %>
  <%= f.hidden_field :_participants, 'data-path' => contacts_path(format: :json) %>

  <%= f.label :tags_list, t('group.tags')%>
  <%= f.text_field :tag_list, 'data-path' => tags_path(format: :json) %>

  <%= f.label :description %>
  <%= f.text_area :description %>

  <%= f.submit :class => "btn" %>
<% end %>

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

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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
social_stream-2.0.1 base/app/views/groups/_form.html.erb
social_stream-base-2.0.1 app/views/groups/_form.html.erb
social_stream-2.0.0 base/app/views/groups/_form.html.erb
social_stream-base-2.0.0 app/views/groups/_form.html.erb
social_stream-2.0.0.beta3 base/app/views/groups/_form.html.erb
social_stream-base-2.0.0.beta3 app/views/groups/_form.html.erb