{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_errors, render_field %}
{%- block title -%}
{{ _('Update organization') }}
{%- endblock -%}
{% block content %}

<h1>{{ _('Update organization') }}</h1>

<form action="" method="POST">
  {{ form.hidden_tag() }}

  <div class="card mb-4">
    <div class="card-header">
      {{ admin_unit.name }}
    </div>
    <div class="card-body">
      {{ render_field_with_errors(form.incoming_reference_requests_allowed, ri="switch") }}
      {{ render_field_with_errors(form.suggestions_enabled, ri="switch") }}
      {{ render_field_with_errors(form.can_create_other, ri="switch") }}
      {{ render_field_with_errors(form.can_invite_other, ri="switch") }}
      {{ render_field_with_errors(form.can_verify_other, ri="switch") }}
    </div>
  </div>

  {{ render_field(form.submit) }}
</form>

{% endblock %}
