{% extends "layout.html" %}

{% block content_header %}
  {{ build_breadcrumb(_('LDAP'), '', 'gear', [_('Update')]) }}
{% endblock %}

{% block content %}
  {% call build_section_row() %}
    {% call build_form_box('', '', '') %}
      {% call build_form(action=url_for('.LDAPConfigView:post')) %}

        {% call add_default_fields(form=form, submit_value=_('Update'), delete_action=url_for('.LDAPConfigView:delete')) %}
          {{ render_field(form.host) }}
          {{ render_field(form.port) }}
          {{ render_field(form.protocol_security) }}
          {{ render_field(form.protocol_version) }}
          {{ render_field(form.bind_dn) }}
          {{ render_field(form.bind_password) }}
          {{ render_field(form.user_base_dn) }}
          {{ render_field(form.user_login_attribute) }}
          {{ render_field(form.user_email_attribute) }}
          {{ render_field(form.search_filters) }}
        {% endcall %}
      {% endcall %}
    {% endcall %}
  {% endcall %}
{% endblock %}
