-
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 #2301 from alphagov/205_filter-publications_UI
205 filter publications UI
- Loading branch information
Showing
9 changed files
with
211 additions
and
41 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
14 changes: 14 additions & 0 deletions
14
...ssets/stylesheets/publications-table.scss → app/assets/stylesheets/publications.scss
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
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,48 @@ | ||
<div class="publications-filter govuk-!-padding-5"> | ||
<%= form_with url: root_path, method: :get do |form| %> | ||
<%= render "govuk_publishing_components/components/heading", { | ||
text: "Filter by", | ||
margin_bottom: 4, | ||
} %> | ||
|
||
<%= render "govuk_publishing_components/components/input", { | ||
label: { | ||
text: "Title", | ||
bold: true, | ||
}, | ||
name: "title_filter", | ||
id: "title_filter", | ||
value: @presenter.title, | ||
} %> | ||
|
||
<%= render "govuk_publishing_components/components/select", { | ||
id: "assignee_filter", | ||
full_width: true, | ||
label: "Assigned to", | ||
options: @presenter.assignees, | ||
} %> | ||
|
||
<%= render "govuk_publishing_components/components/select", { | ||
id: "content_type_filter", | ||
label: "Content type", | ||
full_width: true, | ||
options: @presenter.content_types, | ||
} %> | ||
|
||
<%= render "govuk_publishing_components/components/checkboxes", { | ||
name: "states_filter[]", | ||
heading: "Status", | ||
heading_size: "s", | ||
items: @presenter.edition_states, | ||
} %> | ||
|
||
<%= render "govuk_publishing_components/components/button", { | ||
text: "Update filter", | ||
margin_bottom: 4, | ||
} %> | ||
|
||
<p class="govuk-body"> | ||
<%= link_to "Reset all fields", root_path, class: "govuk-link" %> | ||
</p> | ||
<% end %> | ||
</div> |
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