Commit c5f427b0a499136568bcf3cc738e5f1a8575e358
Committed by
Dmitriy Zaporozhets
1 parent
a987f146
Exists in
master
and in
4 other branches
save commit
Showing
35 changed files
with
399 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,17 @@ |
| 1 | += render "projects/project_head" | |
| 2 | + | |
| 3 | +%h3.page_title | |
| 4 | + = "Import team from another project" | |
| 5 | +%hr | |
| 6 | +%p.slead | |
| 7 | + Read more about team import #{link_to "here", '#', class: 'vlink'}. | |
| 8 | += form_tag apply_import_project_team_members_path(@project), method: 'post' do | |
| 9 | + %p.slead Choose project you want to use as team source: | |
| 10 | + .padded | |
| 11 | + = label_tag :source_project_id, "Project" | |
| 12 | + .input= select_tag(:source_project_id, options_from_collection_for_select(current_user.authorized_projects, :id, :name_with_namespace), prompt: "Select project", class: "chosen xxlarge", required: true) | |
| 13 | + | |
| 14 | + .actions | |
| 15 | + = submit_tag 'Import', class: "btn save-btn" | |
| 16 | + = link_to "Cancel", project_team_index_path(@project), class: "btn cancel-btn" | |
| 17 | + | ... | ... |
| ... | ... | @@ -0,0 +1,47 @@ |
| 1 | +require 'spec_helper' | |
| 2 | + | |
| 3 | +describe Admin::TeamsController do | |
| 4 | + | |
| 5 | + describe "GET 'index'" do | |
| 6 | + it "returns http success" do | |
| 7 | + get 'index' | |
| 8 | + response.should be_success | |
| 9 | + end | |
| 10 | + end | |
| 11 | + | |
| 12 | + describe "GET 'show'" do | |
| 13 | + it "returns http success" do | |
| 14 | + get 'show' | |
| 15 | + response.should be_success | |
| 16 | + end | |
| 17 | + end | |
| 18 | + | |
| 19 | + describe "GET 'create'" do | |
| 20 | + it "returns http success" do | |
| 21 | + get 'create' | |
| 22 | + response.should be_success | |
| 23 | + end | |
| 24 | + end | |
| 25 | + | |
| 26 | + describe "GET 'edit'" do | |
| 27 | + it "returns http success" do | |
| 28 | + get 'edit' | |
| 29 | + response.should be_success | |
| 30 | + end | |
| 31 | + end | |
| 32 | + | |
| 33 | + describe "GET 'update'" do | |
| 34 | + it "returns http success" do | |
| 35 | + get 'update' | |
| 36 | + response.should be_success | |
| 37 | + end | |
| 38 | + end | |
| 39 | + | |
| 40 | + describe "GET 'destroy'" do | |
| 41 | + it "returns http success" do | |
| 42 | + get 'destroy' | |
| 43 | + response.should be_success | |
| 44 | + end | |
| 45 | + end | |
| 46 | + | |
| 47 | +end | ... | ... |
| ... | ... | @@ -0,0 +1,47 @@ |
| 1 | +require 'spec_helper' | |
| 2 | + | |
| 3 | +describe Teams::MembersController do | |
| 4 | + | |
| 5 | + describe "GET 'index'" do | |
| 6 | + it "returns http success" do | |
| 7 | + get 'index' | |
| 8 | + response.should be_success | |
| 9 | + end | |
| 10 | + end | |
| 11 | + | |
| 12 | + describe "GET 'new'" do | |
| 13 | + it "returns http success" do | |
| 14 | + get 'new' | |
| 15 | + response.should be_success | |
| 16 | + end | |
| 17 | + end | |
| 18 | + | |
| 19 | + describe "GET 'create'" do | |
| 20 | + it "returns http success" do | |
| 21 | + get 'create' | |
| 22 | + response.should be_success | |
| 23 | + end | |
| 24 | + end | |
| 25 | + | |
| 26 | + describe "GET 'edit'" do | |
| 27 | + it "returns http success" do | |
| 28 | + get 'edit' | |
| 29 | + response.should be_success | |
| 30 | + end | |
| 31 | + end | |
| 32 | + | |
| 33 | + describe "GET 'update'" do | |
| 34 | + it "returns http success" do | |
| 35 | + get 'update' | |
| 36 | + response.should be_success | |
| 37 | + end | |
| 38 | + end | |
| 39 | + | |
| 40 | + describe "GET 'destroy'" do | |
| 41 | + it "returns http success" do | |
| 42 | + get 'destroy' | |
| 43 | + response.should be_success | |
| 44 | + end | |
| 45 | + end | |
| 46 | + | |
| 47 | +end | ... | ... |
| ... | ... | @@ -0,0 +1,47 @@ |
| 1 | +require 'spec_helper' | |
| 2 | + | |
| 3 | +describe Teams::ProjectsController do | |
| 4 | + | |
| 5 | + describe "GET 'index'" do | |
| 6 | + it "returns http success" do | |
| 7 | + get 'index' | |
| 8 | + response.should be_success | |
| 9 | + end | |
| 10 | + end | |
| 11 | + | |
| 12 | + describe "GET 'new'" do | |
| 13 | + it "returns http success" do | |
| 14 | + get 'new' | |
| 15 | + response.should be_success | |
| 16 | + end | |
| 17 | + end | |
| 18 | + | |
| 19 | + describe "GET 'create'" do | |
| 20 | + it "returns http success" do | |
| 21 | + get 'create' | |
| 22 | + response.should be_success | |
| 23 | + end | |
| 24 | + end | |
| 25 | + | |
| 26 | + describe "GET 'edit'" do | |
| 27 | + it "returns http success" do | |
| 28 | + get 'edit' | |
| 29 | + response.should be_success | |
| 30 | + end | |
| 31 | + end | |
| 32 | + | |
| 33 | + describe "GET 'update'" do | |
| 34 | + it "returns http success" do | |
| 35 | + get 'update' | |
| 36 | + response.should be_success | |
| 37 | + end | |
| 38 | + end | |
| 39 | + | |
| 40 | + describe "GET 'destroy'" do | |
| 41 | + it "returns http success" do | |
| 42 | + get 'destroy' | |
| 43 | + response.should be_success | |
| 44 | + end | |
| 45 | + end | |
| 46 | + | |
| 47 | +end | ... | ... |
| ... | ... | @@ -0,0 +1,54 @@ |
| 1 | +require 'spec_helper' | |
| 2 | + | |
| 3 | +describe TeamsController do | |
| 4 | + | |
| 5 | + describe "GET 'index'" do | |
| 6 | + it "returns http success" do | |
| 7 | + get 'index' | |
| 8 | + response.should be_success | |
| 9 | + end | |
| 10 | + end | |
| 11 | + | |
| 12 | + describe "GET 'show'" do | |
| 13 | + it "returns http success" do | |
| 14 | + get 'show' | |
| 15 | + response.should be_success | |
| 16 | + end | |
| 17 | + end | |
| 18 | + | |
| 19 | + describe "GET 'new'" do | |
| 20 | + it "returns http success" do | |
| 21 | + get 'new' | |
| 22 | + response.should be_success | |
| 23 | + end | |
| 24 | + end | |
| 25 | + | |
| 26 | + describe "GET 'edit'" do | |
| 27 | + it "returns http success" do | |
| 28 | + get 'edit' | |
| 29 | + response.should be_success | |
| 30 | + end | |
| 31 | + end | |
| 32 | + | |
| 33 | + describe "GET 'update'" do | |
| 34 | + it "returns http success" do | |
| 35 | + get 'update' | |
| 36 | + response.should be_success | |
| 37 | + end | |
| 38 | + end | |
| 39 | + | |
| 40 | + describe "GET 'create'" do | |
| 41 | + it "returns http success" do | |
| 42 | + get 'create' | |
| 43 | + response.should be_success | |
| 44 | + end | |
| 45 | + end | |
| 46 | + | |
| 47 | + describe "GET 'destroy'" do | |
| 48 | + it "returns http success" do | |
| 49 | + get 'destroy' | |
| 50 | + response.should be_success | |
| 51 | + end | |
| 52 | + end | |
| 53 | + | |
| 54 | +end | ... | ... |
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +require 'spec_helper' | |
| 2 | + | |
| 3 | +# Specs in this file have access to a helper object that includes | |
| 4 | +# the Admin::TeamsHelper. For example: | |
| 5 | +# | |
| 6 | +# describe Admin::TeamsHelper do | |
| 7 | +# describe "string concat" do | |
| 8 | +# it "concats two strings with spaces" do | |
| 9 | +# helper.concat_strings("this","that").should == "this that" | |
| 10 | +# end | |
| 11 | +# end | |
| 12 | +# end | |
| 13 | +describe Admin::TeamsHelper do | |
| 14 | + pending "add some examples to (or delete) #{__FILE__}" | |
| 15 | +end | ... | ... |
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +require 'spec_helper' | |
| 2 | + | |
| 3 | +# Specs in this file have access to a helper object that includes | |
| 4 | +# the Teams::MembersHelper. For example: | |
| 5 | +# | |
| 6 | +# describe Teams::MembersHelper do | |
| 7 | +# describe "string concat" do | |
| 8 | +# it "concats two strings with spaces" do | |
| 9 | +# helper.concat_strings("this","that").should == "this that" | |
| 10 | +# end | |
| 11 | +# end | |
| 12 | +# end | |
| 13 | +describe Teams::MembersHelper do | |
| 14 | + pending "add some examples to (or delete) #{__FILE__}" | |
| 15 | +end | ... | ... |
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +require 'spec_helper' | |
| 2 | + | |
| 3 | +# Specs in this file have access to a helper object that includes | |
| 4 | +# the Teams::ProjectsHelper. For example: | |
| 5 | +# | |
| 6 | +# describe Teams::ProjectsHelper do | |
| 7 | +# describe "string concat" do | |
| 8 | +# it "concats two strings with spaces" do | |
| 9 | +# helper.concat_strings("this","that").should == "this that" | |
| 10 | +# end | |
| 11 | +# end | |
| 12 | +# end | |
| 13 | +describe Teams::ProjectsHelper do | |
| 14 | + pending "add some examples to (or delete) #{__FILE__}" | |
| 15 | +end | ... | ... |
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +require 'spec_helper' | |
| 2 | + | |
| 3 | +# Specs in this file have access to a helper object that includes | |
| 4 | +# the TeamsHelper. For example: | |
| 5 | +# | |
| 6 | +# describe TeamsHelper do | |
| 7 | +# describe "string concat" do | |
| 8 | +# it "concats two strings with spaces" do | |
| 9 | +# helper.concat_strings("this","that").should == "this that" | |
| 10 | +# end | |
| 11 | +# end | |
| 12 | +# end | |
| 13 | +describe TeamsHelper do | |
| 14 | + pending "add some examples to (or delete) #{__FILE__}" | |
| 15 | +end | ... | ... |