{% extends "withnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/radios.html" import radios%}
{% from "components/form.html" import form_wrapper %}

{% block service_page_title %}
  Set inbound number
{% endblock %}

{% block maincolumn_content %}
    {{ page_header(
      'Set inbound number',
      back_link=url_for('.service_settings', service_id=current_service.id)
    ) }}
    {% if current_service.has_inbound_number %}
    <p> This service already has an inbound number </p>
    {% elif no_available_numbers %}
    <p> No available inbound numbers </p>
    {% else %}
    {% call form_wrapper() %}
	    {{ radios(form.inbound_number) }}
	    {{ page_footer('Save') }}
  	{% endcall %}
	{% endif %}

{% endblock %}
