{% extends "withnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}

{% block service_page_title %}
  {{ heading_action }} letter template
{% endblock %}

{% block maincolumn_content %}

    <h1 class="heading-large">
      {{ heading_action }} letter template
    </h1>

    <form method="post">
      <div class="grid-row">
        <div class="column-five-sixths">
          {{ textbox(form.name, width='1-1', hint='Your recipients won’t see this', rows=10) }}
          {{ textbox(form.subject, width='1-1', highlight_tags=True, rows=2) }}
          {{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=8) }}
          {{ page_footer(
            'Save'
          ) }}
        </div>
        <aside class="column-three-quarters">
          {% include "partials/templates/guidance-formatting-letters.html" %}
          {% include "partials/templates/guidance-personalisation.html" %}
        </aside>
      </div>
    </form>

{% endblock %}
