available.html.haml 899 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
= render "projects/project_head"

%h3.page_title
  = "Assign project to team of users"
%hr
%p.slead
  Read more about assign to team of users #{link_to "here", '#', class: 'vlink'}.
= form_tag assign_project_teams_path(@project), method: 'post' do
  %p.slead Choose Team of users you want to assign:
  .padded
    = label_tag :team_id, "Team"
    .input= select_tag(:team_id, options_from_collection_for_select(@teams, :id, :name), prompt: "Select team", class: "chosen xxlarge", required: true)
  %p.slead Choose greatest user acces in team you want to assign:
  .padded
    = label_tag :team_ids, "Permission"
    .input= select_tag :greatest_project_access, options_for_select(UserTeam.access_roles), {class: "project-access-select chosen span3" }


  .actions
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
20 21
    = submit_tag 'Assign', class: "btn btn-create"
    = link_to "Cancel", project_team_index_path(@project), class: "btn btn-cancel"
22