{% extends "sentry/bases/organization.html" %}

{% load crispy_forms_tags %}
{% load i18n %}

{% block org_settings_nav %}active{% endblock %}

{% block inner %}
  <div class="page-header">
    <h2>Settings</h2>
  </div>

  <form class="form-stacked" action="" method="post">
    {% csrf_token %}

    {% if form.errors %}
      <div class="alert alert-error">{% trans "Please correct the errors below." %}</div>
    {% endif %}

    {{ form|as_crispy_errors }}

    <fieldset>
      {% for field in form %}
        {{ field|as_crispy_field }}
      {% endfor %}
    </fieldset>

    <fieldset class="form-actions">
      {% if ACCESS.is_owner and ACCESS.is_global %}
        <a href="{% url 'sentry-remove-organization' organization.slug %}" class="btn btn-danger">{% trans "Remove Organization" %}</a>
      {% endif %}
      <button type="submit" class="btn btn-primary">{% trans "Save Changes" %}</button>
    </fieldset>
  </form>
{% endblock %}

{% extends "sentry/bases/organization.html" %}

{% load crispy_forms_tags %}
{% load i18n %}

{% block org_settings_nav %}active{% endblock %}

{% block inner %}
  <div class="page-header">
    <h2>Settings</h2>
  </div>

  <form class="form-stacked" action="" method="post">
    {% csrf_token %}

    {% if form.errors %}
      <div class="alert alert-error">{% trans "Please correct the errors below." %}</div>
    {% endif %}

    {{ form|as_crispy_errors }}

    <fieldset>
      {% for field in form %}
        {{ field|as_crispy_field }}
      {% endfor %}
    </fieldset>

    {% if ACCESS.is_owner and ACCESS.is_global %}
      <div class="form-group">
        <div class="pull-right" style="margin-top: 2px">
          <a href="{% url 'sentry-remove-organization' organization.slug %}" class="btn btn-danger">{% trans "Remove Organization" %}</a>
        </div>
        <h5>Remove Organization</h5>
        <p class="help-block" style="margin-top: -10px">Removing an organization cannot be undone.</p>
      </div>
    {% endif %}

    <fieldset class="form-actions">
      <button type="submit" class="btn btn-primary btn-lg">{% trans "Save Changes" %}</button>
    </fieldset>
  </form>
{% endblock %}

Move remove org button outside of form-actions
Move remove org button outside of form-actions
