Submit social housing lettings and sales data (CORE)
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.
 
 
 
 

37 lines
1.0 KiB

<% content_for :before_content do %>
<%= govuk_back_link(
text: 'Back',
href: :back,
) %>
<% end %>
<h1 class="govuk-heading-l">
Your Organisation
</h1>
<%= govuk_tabs(title: "Your Organisation") do |component| %>
<%= component.tab(label: "Details") do |tab| %>
<%= govuk_summary_list do |summary_list| %>
<% @organisation.display_attributes.each do |attr, val| %>
<%= summary_list.row do |row|
row.key { attr.to_s.humanize }
row.value { simple_format(val, {}, wrapper_tag: "div") }
end %>
<% end %>
<% end %>
<% end %>
<%= component.tab(label: "Users") do |tab| %>
<%= govuk_table do |table| %>
<%= table.head do |head| %>
<%= head.row do |row|
row.cell(header: true, text: "Name and email adress")
row.cell(header: true, text: "Organisation and role")
row.cell(header: true, text: "Last logged in")
end %>
<% end %>
<% @organisation.users.each do |user| %>
<% end %>
<% end %>
<% end %>
<% end %>