{% extends "withnav_template.html" %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %}
{% from "components/components/back-link/macro.njk" import usaBackLink %}

{% set page_title = 'Set letter contact block' %}

{% block service_page_title %}
  {{ page_title }}
{% endblock %}

{% block backLink %}
  {{ usaBackLink({ "href": url_for('.view_template', service_id=current_service.id, template_id=template_id) }) }}
{% endblock %}

{% block maincolumn_content %}

  <div class="grid-row">
    {% call form_wrapper() %}
      {{ form.sender(param_extensions={
        'fieldset': {
          'legend': {
            'isPageHeading': True,
            'text': page_title
          }
        },
        'classes': 'grid-col-9'
      }) }}
      <div class="grid-col-9">
        {{ page_footer('Continue') }}
        <a class="usa-link" href="{{ url_for('.service_add_letter_contact', service_id=current_service.id, from_template=template_id) }}">Add new sender</a>
    </div>
    {% endcall %}
  </div>

{% endblock %}
