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

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

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

{% block main %}
  <h3>Organization Settings</h3>

  <div class="box">
    <div class="box-content with-padding">
      <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.org_delete %}
          <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">
          <p><button type="submit" class="btn btn-primary btn-lg">{% trans "Save Changes" %}</button></p>
        </fieldset>
      </form>
  </div>
</div>
{% endblock %}

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

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

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

{% block main %}
  <h3>Organization Settings</h3>

  <div class="box">
    <div class="box-content with-padding">
      <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">
          <p><button type="submit" class="btn btn-primary btn-lg">{% trans "Save Changes" %}</button></p>
        </fieldset>
      </form>
    </div>
  </div>

  {% if ACCESS.org_delete %}
  <div class="box">
    <div class="box-header">
      <h3>{% trans "Remove Organization" %}</h3>
    </div>
    <div class="box-content with-padding">
      <p>Removing this organization will delete all data including projects and their associated events.</p>

      <fieldset class="form-actions">
        <a href="{% url 'sentry-remove-organization' organization.slug %}" class="btn btn-danger">{% trans "Remove Organization" %}</a>
      </fieldset>
    </div>
  </div>
  {% endif %}
{% endblock %}

Move delete org into its own box
Move delete org into its own box
