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