{% 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/form.html" import form_wrapper %}

{% block service_page_title %}
  Callbacks for received text messages
{% endblock %}

{% block maincolumn_content %}
  {{ page_header(
    'Callbacks for received text messages',
    back_link=url_for('.api_callbacks', service_id=current_service.id)
  ) }}
  <div class="grid-row">
    <div class="column-five-sixths">
      <p>
        When you receive a text message in Notify, we can forward it to your system.
        Check the <a href="{{ url_for('.callbacks') }}"> callback documentation </a> for more information.
      </p>

      {% call form_wrapper() %}
        {{ textbox(
          form.url,
          width='1-1',
          hint='Must start with https://'
        ) }}
        {{ textbox(
          form.bearer_token,
          width='1-1',
          hint='At least 10 characters',
          autocomplete='new-password'
        ) }}
        {{ page_footer('Save') }}
      {% endcall %}
    </div>
  </div>

{% endblock %}
