Sha256: f7502073a0be6abf9ecd78f8560e04aa30601559e8d8b6c43fa4c94c43530975
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 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 %> <h2><%= t('group.new.action') %></h2> <%= 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
4 entries across 4 versions & 2 rubygems