You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
925 B
32 lines
925 B
3 years ago
|
<%= render GovukComponent::Accordion.new(id: 'abc123') do |component|
|
||
|
component.slot(:section,
|
||
|
title: 'Home electronics',
|
||
|
summary: 'Entertainment, communication and recreation',
|
||
|
expanded: true) do
|
||
|
tag.p(class: 'govuk-body') do
|
||
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
||
|
end
|
||
|
end
|
||
|
|
||
|
component.slot(:section,
|
||
|
title: 'Appliances', summary: 'Laundry, cookers and vacuum cleaners') do
|
||
|
tag.p(class: 'govuk-body') do
|
||
|
"Ut et elementum tortor. Donec a tellus sed sem euismod congue"
|
||
|
end
|
||
|
end
|
||
|
|
||
|
component.slot(:section, title: 'Toys') do
|
||
|
safe_join([
|
||
|
tag.p(class: 'govuk-body') do
|
||
|
"In et nunc vitae tortor sollicitudin ultrices. Vivamus a purus justo."
|
||
|
end,
|
||
|
|
||
|
tag.p(class: 'govuk-body') do
|
||
|
"Duis a turpis non nunc pulvinar venenatis quis congue mauris"
|
||
|
end
|
||
|
])
|
||
|
end
|
||
|
end %>
|
||
|
|
||
|
<%= link_to('About', about_path) %>
|