Sha256: 6b476d54d2a52b221dd6ea3bbf422df352fa5862ddf20e91745eb1def9d52da0

Contents?: true

Size: 862 Bytes

Versions: 13

Compression:

Stored size: 862 Bytes

Contents

%h2
  = @group.name
%h3 Listing all members
%table{:border => "1"}
  %tr
    %th
      Name

  - @group.members.each do |member|
    %tr
      %td
        = MongoidForums.user_class.find(member).forum_display_name
      %td
        = button_to "Remove", admin_group_rem_user_path(group_id: @group.id, user: {id: member}), method: :post, data: { confirm: 'Are you certain you want to delete this?' }

= form_tag admin_group_add_user_path(@group), :method => :post, :id => "form_add_user" do
  %input{:id => "userinput", :list => "users", :name => "[user][id]"}/
  %datalist#users
    - @users.each do |user|
      %option{:id => user.id, :value => user.forum_display_name}
  = submit_tag("Add User")

:javascript
  $("#form_add_user").submit(function(){
    $("#userinput").val($('#users').find('option[value="' + $('#userinput').val() + '"]').attr('id'));
  });

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
mongoid-forums-1.0.7 app/views/mongoid_forums/admin/groups/show.haml
mongoid-forums-1.0.6 app/views/mongoid_forums/admin/groups/show.haml
ack-mongoid-forums-1.0.6.1 app/views/mongoid_forums/posts/admin/groups/show.haml
ack-mongoid-forums-1.0.6 app/views/mongoid_forums/posts/admin/groups/show.haml
ack-mongoid-forums-1.0.5 app/views/mongoid_forums/admin/groups/show.haml
mongoid-forums-1.0.4 app/views/mongoid_forums/admin/groups/show.haml
mongoid-forums-1.0.3 app/views/mongoid_forums/admin/groups/show.haml
mongoid-forums-1.0.2 app/views/mongoid_forums/admin/groups/show.haml
mongoid-forums-1.0.1 app/views/mongoid_forums/admin/groups/show.haml
mongoid-forums-1.0.0 app/views/mongoid_forums/admin/groups/show.haml
mongoid-forums-0.0.11 app/views/mongoid_forums/admin/groups/show.haml
mongoid-forums-0.0.10 app/views/mongoid_forums/admin/groups/show.haml
mongoid-forums-0.0.9 app/views/mongoid_forums/admin/groups/show.haml