{% extends "layout.html" %}

{% block content_header %}
  {{ build_breadcrumbs(current_breadcrumbs + [
    { 'name': resource.exten, 'link': url_for('.ExtensionView:get', id=resource.id), 'icon': 'fax' }
  ]) }}
{% endblock %}

{% block content %}
  {% call build_section_row() %}
    {% call build_form_box(_('Extension'), resource.name, 'tty') %}
      {% call build_form(action=url_for('.ExtensionView:put', id=resource.id)) %}
        {% call add_default_fields(form=form, submit_value=_('Update')) %}
          {{ render_field(form.exten) }}
          {{ render_field(form.context,
                          data_listing_href=url_for(listing_urls['context'])) }}
        {% endcall %}
      {% endcall %}
    {% endcall %}
  {% endcall %}
{% endblock %}
