-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8540 from alphagov/refactor-cabinet-ministers-con…
…troller Refactor cabinet ministers controller
- Loading branch information
Showing
10 changed files
with
91 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
app/views/admin/cabinet_ministers/reorder_also_attends_cabinet_roles.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<% content_for :page_title, "Reorder also attends cabinet ordering" %> | ||
<% content_for :context, "Also attends cabinet ordering" %> | ||
|
||
<%= render "reorder", list: @roles, name: "roles[ordering]", cancel_path: "#{admin_cabinet_ministers_path}#also_attends_cabinet" %> | ||
<%= render "reorder", | ||
list: @roles, | ||
form_url: order_also_attends_cabinet_roles_admin_cabinet_ministers_path, | ||
cancel_path: admin_cabinet_ministers_path(anchor: "also_attends_cabinet") %> |
5 changes: 4 additions & 1 deletion
5
app/views/admin/cabinet_ministers/reorder_cabinet_minister_roles.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<% content_for :page_title, "Reorder Cabinet minister ordering" %> | ||
<% content_for :context, "Cabinet minister ordering" %> | ||
|
||
<%= render "reorder", list: @roles, name: "roles[ordering]", cancel_path: "#{admin_cabinet_ministers_path}#cabinet_minister" %> | ||
<%= render "reorder", | ||
list: @roles, | ||
form_url: order_cabinet_minister_roles_admin_cabinet_ministers_path, | ||
cancel_path: admin_cabinet_ministers_path(anchor: "cabinet_minister") %> |
9 changes: 6 additions & 3 deletions
9
app/views/admin/cabinet_ministers/reorder_ministerial_organisations.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<% content_for :page_title, "Reorder Whip ordering" %> | ||
<% content_for :context, "Whip ordering" %> | ||
<% content_for :page_title, "Reorder Ministerial organisations ordering" %> | ||
<% content_for :context, "Ministerial organisations ordering" %> | ||
|
||
<%= render "reorder", list: @organisations, name: "organisation[ordering]", cancel_path: "#{admin_cabinet_ministers_path}#organisations" %> | ||
<%= render "reorder", | ||
list: @organisations, | ||
form_url: order_ministerial_organisations_admin_cabinet_ministers_path, | ||
cancel_path: admin_cabinet_ministers_path(anchor: "organisations") %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<% content_for :page_title, "Reorder Whips ordering" %> | ||
<% content_for :context, "Whips ordering" %> | ||
|
||
<%= render "reorder", list: @roles, name: "whips[ordering]", cancel_path: "#{admin_cabinet_ministers_path}#whips" %> | ||
<%= render "reorder", | ||
list: @roles, | ||
form_url: order_cabinet_minister_roles_admin_cabinet_ministers_path, | ||
cancel_path: admin_cabinet_ministers_path(anchor: "whips") %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters