14 lines
507 B
Text
14 lines
507 B
Text
<div class="settings-org-members">
|
|
<h3><%= @organization.name %></h3>
|
|
<% @organization.users.each do |user| %>
|
|
<div class="settings-org-member-row">
|
|
<a href="<%= user.path %>"><%= user.name %></a>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<h3>Danger zone</h3>
|
|
<%= form_tag users_leave_org_path(@organization), onsubmit: "return confirm('Are you sure you want to leave this organization?');" do %>
|
|
<div class="field">
|
|
<%= submit_tag "Leave Organization", class: "danger-button" %>
|
|
</div>
|
|
<% end %>
|