Skip to content

Commit

Permalink
Merge pull request #8635 from alphagov/dac-information-relationships-06
Browse files Browse the repository at this point in the history
Add fieldset to documents date filter
  • Loading branch information
johnny-m-young authored Dec 19, 2023
2 parents 0369ffb + 2a4d56c commit ba8c1f3
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions app/views/admin/editions/_filter_options.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -92,34 +92,33 @@
<% end %>

<% if filter_by.include?(:date) %>
<%= render "govuk_publishing_components/components/heading", {
text: "Date (last updated)",
font_size: "s",
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "Last updated date",
heading_level: 3,
margin_bottom: 2,
} %>

<%= render "govuk_publishing_components/components/input", {
label: {
text: "From",
bold: true,
},
name: "from_date",
id: "from_date",
value: params["from_date"],
hint: "For example, 23/07/2013",
} %>
heading_size: "s",
} do %>
<%= render "govuk_publishing_components/components/input", {
label: {
text: "From",
bold: true,
},
name: "from_date",
id: "from_date",
value: params["from_date"],
hint: "For example, 23/07/2013",
} %>

<%= render "govuk_publishing_components/components/input", {
label: {
text: "To",
bold: true,
},
name: "to_date",
id: "to_date",
value: params["to_date"],
hint: "For example, 23/08/2013",
} %>
<%= render "govuk_publishing_components/components/input", {
label: {
text: "To",
bold: true,
},
name: "to_date",
id: "to_date",
value: params["to_date"],
hint: "For example, 23/08/2013",
} %>
<% end %>
<% end %>

<% if filter_by.include?(:only_broken_links) %>
Expand Down

0 comments on commit ba8c1f3

Please sign in to comment.