2013-06-17 09:51:43 -04:00
|
|
|
= form_for @users_group, url: group_users_groups_path(@group) do |f|
|
2012-12-25 17:52:49 -05:00
|
|
|
%fieldset
|
2013-08-06 13:12:20 -04:00
|
|
|
%legend
|
|
|
|
New member(s) for
|
|
|
|
%strong #{@group.name}
|
|
|
|
group
|
2012-12-25 17:52:49 -05:00
|
|
|
|
2013-08-06 13:12:20 -04:00
|
|
|
%p 1. Choose users you want in the group
|
2013-08-07 16:24:34 -04:00
|
|
|
.control-group
|
2012-12-25 17:52:49 -05:00
|
|
|
= f.label :user_ids, "People"
|
2013-08-07 16:24:34 -04:00
|
|
|
.controls= users_select_tag(:user_ids, multiple: true, class: 'input-large')
|
2012-12-25 17:52:49 -05:00
|
|
|
|
2013-08-06 13:12:20 -04:00
|
|
|
%p 2. Set access level for them
|
2013-08-07 16:24:34 -04:00
|
|
|
.control-group
|
2013-06-17 06:26:58 -04:00
|
|
|
= f.label :group_access, "Group Access"
|
2013-08-07 16:24:34 -04:00
|
|
|
.controls= select_tag :group_access, options_for_select(UsersGroup.group_access_roles, @users_group.group_access), class: "project-access-select chosen"
|
2012-12-25 17:52:49 -05:00
|
|
|
|
|
|
|
.form-actions
|
2013-06-17 06:26:58 -04:00
|
|
|
= f.submit 'Add users into group', class: "btn btn-create"
|
2012-12-25 17:52:49 -05:00
|
|
|
|