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.
25 lines
862 B
25 lines
862 B
<% content_for :title, "Your organisation (Users)" %> |
|
|
|
<% content_for :tab_title do %> |
|
<%= "Users" %> |
|
<% end %> |
|
|
|
<%= govuk_button_link_to "Invite user", new_user_path, html: { method: :get } %> |
|
<%= 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| %> |
|
<%= table.body do |body| %> |
|
<%= body.row do |row| |
|
row.cell(text: simple_format(user_cell(user), {}, wrapper_tag: "div")) |
|
row.cell(text: simple_format(org_cell(user), {}, wrapper_tag: "div")) |
|
row.cell(text: user.last_sign_in_at&.to_formatted_s(:govuk_date) ) |
|
end %> |
|
<% end %> |
|
<% end %> |
|
<% end %>
|
|
|