-
Notifications
You must be signed in to change notification settings - Fork 43
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 #2429 from alphagov/edit-assignee
Enable editing the person assigned to an edition
- Loading branch information
Showing
7 changed files
with
434 additions
and
30 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
37 changes: 37 additions & 0 deletions
37
app/views/editions/secondary_nav_tabs/_edit_assignee.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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<% content_for :title_context, @resource.title %> | ||
<% content_for :page_title, "Assign person" %> | ||
<% content_for :title, "Assign person" %> | ||
|
||
<%= form_for @resource, url: update_assignee_edition_path(@resource) do %> | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<%= render "govuk_publishing_components/components/radio", { | ||
name: "assignee_id", | ||
heading: "Choose a person to assign", | ||
visually_hidden_heading: true, | ||
items: available_assignee_items(@resource), | ||
} %> | ||
</div> | ||
|
||
<div class="govuk-grid-column-one-third options-sidebar"> | ||
<div class="sidebar-components"> | ||
<%= render "govuk_publishing_components/components/heading", { | ||
text: "Options", | ||
heading_level: 3, | ||
font_size: "s", | ||
padding: true, | ||
} %> | ||
|
||
<%= render "govuk_publishing_components/components/list", { | ||
items: [ | ||
(render "govuk_publishing_components/components/button", { | ||
text: "Save", | ||
margin_bottom: 3, | ||
}), | ||
link_to("Cancel", edition_path(@resource), class: "govuk-link govuk-link--no-visited-state"), | ||
], | ||
} %> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> |
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
Oops, something went wrong.