Skip to content

Commit

Permalink
Add selected tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kelliedesigner committed Nov 5, 2024
1 parent 6481e1d commit 988e49c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/assets/stylesheets/find_application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@

.sort-container {
display: block;
margin-top: 20px;

@include govuk-media-query($from: tablet) {
display: flex;
Expand Down Expand Up @@ -497,3 +496,8 @@
.secondary-button-filter {
margin-bottom: 0;
}

.selected-tags {
border-bottom: 1px solid #b1b4b6;
margin-bottom: 20px;
}
14 changes: 14 additions & 0 deletions app/views/find/result_filters/_all.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
<%= form_with url: find_results_path, skip_enforcing_utf8: true, class: "app-filter", id: "result-filters", method: :get do |form| %>
<div class="app-filter__header">
<h2 class="govuk-heading-m">Filters</h2>

</div>

<div class="app-filter__content">

<div class="selected-tags">
<h3 class="govuk-heading-s govuk-!-margin-bottom-0">Study type</h3>
<ul class="moj-filter-tags">
<li><a class="moj-filter__tag" href="/path/to/remove/this"><span class="govuk-visually-hidden">Remove this filter</span> Full time (12 months)</a></li>
<li><a class="moj-filter__tag" href="/path/to/remove/this"><span class="govuk-visually-hidden">Remove this filter</span> Part time (18 to 24 months)</a></li>
</ul>
<h3 class="govuk-heading-s govuk-!-margin-bottom-0">Qualifications</h3>
<ul class="moj-filter-tags">
<li><a class="moj-filter__tag" href="/path/to/remove/this"><span class="govuk-visually-hidden">Remove this filter</span> QTS only</a></li>
</ul>
</div>

<%= form.submit "Apply filters", name: nil, class: "govuk-button", data: { qa: "apply-filters" } %>
<% if @filters_view.show_undergraduate_courses? %>
<%= render "find/result_filters/send_filter", form: %>
Expand Down

0 comments on commit 988e49c

Please sign in to comment.