Browse Source

Tabs

pull/120/head
baarkerlounger 4 years ago
parent
commit
4e6e680645
  1. 19
      app/views/organisations/show.html.erb

19
app/views/organisations/show.html.erb

@ -9,11 +9,18 @@
Your Organisation Your Organisation
</h1> </h1>
<%= govuk_summary_list do |summary_list| %> <%= govuk_tabs(title: "Your Organisation") do |component| %>
<% @organisation.display_attributes.each do |attr, val| %> <%= component.tab(label: "Details") do |tab| %>
<%= summary_list.row do |row| <%= govuk_summary_list do |summary_list| %>
row.key { attr.to_s.humanize } <% @organisation.display_attributes.each do |attr, val| %>
row.value { simple_format(val, {}, wrapper_tag: "div") } <%= summary_list.row do |row|
end %> row.key { attr.to_s.humanize }
row.value { simple_format(val, {}, wrapper_tag: "div") }
end %>
<% end %>
<% end %>
<% end %>
<%= component.tab(label: "Users") do |tab| %>
<% end %> <% end %>
<% end %> <% end %>

Loading…
Cancel
Save