{% from "components/live-search.html" import live_search %} {% from "components/folder-path.html" import folder_path %} {% from "components/button/macro.njk" import govukButton %} {% extends "withnav_template.html" %} {% block service_page_title %} Choose a template {% endblock %} {% block maincolumn_content %}

Choose a template

{{ folder_path(template_folder_path, current_service.id, template_type, current_user, root_element='h2') }}
{% if not templates_and_folders.templates_to_show %} {% if current_user.has_permissions('manage_templates') %}

You need a template before you can send text messages.

{{ govukButton({ "element": "a", "text": "Add a new template", "href": url_for('.choose_template', service_id=current_service.id, initial_state='add-new-template') }) }} {% else %}

You need to ask your service manager to add templates before you can send text messages.

{% endif %} {% else %} {{ live_search(target_selector='#template-list .govuk-grid-column-full', show=True, form=search_form) }} {% endif %} {% endblock %}