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

{% block service_page_title %}
  Add text message sender
{% endblock %}

{% block maincolumn_content %}

  {{ page_header(
    'Add text message sender',
    back_link=url_for('main.service_sms_senders', service_id=current_service.id)
  ) }}

  {% call form_wrapper() %}
    {{ textbox(
      form.sms_sender,
      width='1-4',
      hint='Up to 11 characters, letters, numbers and spaces only'
    ) }}
    {% if not first_sms_sender %}
      <div class="form-group">
        {{ checkbox(form.is_default) }}
      </div>
    {% endif %}
    {{ page_footer('Save') }}
  {% endcall %}

{% endblock %}
