{% extends "layout.html" %}

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

{% block content %}
  {% call build_section_row() %}
    {% call build_form_box(_('Phone Numbers'), resource.number, 'bullhorn') %}
      {% call build_form(action=url_for('.PhoneNumberView:put', id=resource.uuid)) %}
        {% call add_default_fields(form=form, submit_value=_('Update')) %}
          {{ render_field(form.number) }}
          {{ render_field(form.caller_id_name) }}
          {{ render_field(form.shared, disabled=form.main.data) }}
          {{ render_field(form.main, disabled=True) }}
          {{ render_field(form.hidden_main)}}
        {% endcall %}
      {% endcall %}
    {% endcall %}
  {% endcall %}
{% endblock %}
