Skip to content

Commit

Permalink
Remove Add Collaborators form from Admin::FormAnswers::CompanyDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-l-brockwell committed Nov 27, 2024
1 parent 03e62ef commit caaf11c
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 210 deletions.
51 changes: 0 additions & 51 deletions app/controllers/admin/form_answers/collaborators_controller.rb

This file was deleted.

27 changes: 0 additions & 27 deletions app/views/admin/form_answers/collaborators/_form.html.slim

This file was deleted.

8 changes: 0 additions & 8 deletions app/views/admin/form_answers/collaborators/_list.html.slim

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions app/views/admin/form_answers/collaborators/create.js.slim

This file was deleted.

6 changes: 0 additions & 6 deletions app/views/admin/form_answers/collaborators/search.js.slim

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
.form-group
.form-container
label.form-label User accounts

= render "admin/form_answers/collaborators/list"

- if policy(resource).can_add_collaborators_to_application?
= render "admin/form_answers/collaborators/form"
10 changes: 0 additions & 10 deletions app/views/admin/users/_form.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@
.panel-body
= render "fields_contact_preferences", f: f

- unless action_name == "new"
.panel.panel-default[data-controller="element-focus"]
.panel-heading id="section-collaborators-header"
h2.panel-title
a.collapsed data-toggle="collapse" data-parent="#user-form-panel" href="#section-collaborators" aria-expanded="false" aria-controls="section-collaborators" data-element-focus-target="reveal"
' Collaborators
#section-collaborators.section-collaborators.panel-collapse.collapse[aria-labelledby="section-collaborators-header" data-element-scroll-target="accordion"]
.panel-body
= render "fields_collaborators", f: f, resource: resource

br
.clearfix
.pull-right
Expand Down
3 changes: 0 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,6 @@
resources :case_summaries, only: [:index]
resources :draft_notes, only: [:create, :update]
resources :review_corp_responsibility, only: [:create]
resources :collaborators, only: [:create], module: "form_answers" do
get :search, on: :collection
end
end

resource :settings, only: [:show] do
Expand Down
81 changes: 0 additions & 81 deletions spec/features/admin/form_answers/collaborators_spec.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

it "can see the edit buttons" do
within ".company-details-forms" do
expect(page).to have_selector("input[type='submit']", count: 13)
expect(page).to have_selector("input[type='submit']", count: 12)
end
end
end

0 comments on commit caaf11c

Please sign in to comment.