<%= bootstrap_form_for user_organization, url: destroy_user_organization_path(user_organization, format: :json), remote: :true, method: :delete, data: { id: "leave-user-organization-form" } do |f| %>
  <%= hidden_field_tag :leave, true %>
  <p><%= t("users.settings.organizations.index.leave_uo_message", org: user_organization.organization.name) %></p>
  <div class="alert alert-danger" role="alert">
    <span class="glyphicon glyphicon-exclamation-sign"></span>
    &nbsp;
    <%= t("users.settings.organizations.index.leave_uo_alert_heading") %>
    <ul>
      <li><%= t("users.settings.organizations.index.leave_uo_alert_line_1") %></li>
      <li><%= t("users.settings.organizations.index.leave_uo_alert_line_2").html_safe %></li>
      <li><%= t("users.settings.organizations.index.leave_uo_alert_line_3")%></li>
    </ul>
  </div>
<% end %>