BigW Consortium Gitlab

_form.html.haml 864 Bytes
Newer Older
1 2
%h3.page_title
  = "New Team member(s)"
3
%hr
4 5
= form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project) do |f|
  -if @user_project_relation.errors.any?
6
    .alert.alert-error
7
      %ul
8
        - @user_project_relation.errors.full_messages.each do |msg|
9 10
          %li= msg

11
  %h6 1. Choose people you want in the team
12
  .clearfix
13
    = f.label :user_ids, "People"
14
    .input
15
      = users_select_tag(:user_ids, multiple: true)
16

17
  %h6 2. Set access level for them
18 19
  .clearfix
    = f.label :project_access, "Project Access"
20
    .input= select_tag :project_access, options_for_select(Project.access_options, @user_project_relation.project_access), class: "project-access-select chosen"
21

22
  .actions
23
    = f.submit 'Add users', class: "btn btn-create"
24
    = link_to "Cancel", project_team_index_path(@project), class: "btn btn-cancel"