assign team to project from project page in public section
This commit is contained in:
parent
18bd1c9d30
commit
31d84d71d3
12 changed files with 129 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
= link_to project_path(@project), class: "activities-tab tab" do
|
||||
%i.icon-home
|
||||
Show
|
||||
= nav_link(controller: :team_members) do
|
||||
= nav_link(controller: [:team_members, :teams]) do
|
||||
= link_to project_team_index_path(@project), class: "team-tab tab" do
|
||||
%i.icon-user
|
||||
Team
|
||||
|
|
22
app/views/projects/teams/avaliable.html.haml
Normal file
22
app/views/projects/teams/avaliable.html.haml
Normal file
|
@ -0,0 +1,22 @@
|
|||
= 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
|
||||
= submit_tag 'Assign', class: "btn save-btn"
|
||||
= link_to "Cancel", project_team_index_path(@project), class: "btn cancel-btn"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue