{#
 # For the full copyright and license information, please view the
 # docs/licenses/LICENSE.txt file that was distributed with this source code.
 #}

{% block generateMailsFormBlock %}
  <div class="card">
    <h3 class="card-header">
      <i class="material-icons">email</i>
      {{ 'Email themes'|trans({}, 'Admin.Design.Feature') }}
    </h3>

    <div class="card-body">

      <table class="grid-table table">
        <thead class="thead-default">
          <tr class="column-headers">
            <th scope="col">
              {{ 'Name'|trans({}, 'Admin.Global') }}
            </th>
            <th scope="col">
              <div class="grid-actions-header-text">
                {{ 'Actions'|trans({}, 'Admin.Global') }}
              </div>
            </th>
          </tr>
        </thead>
        <tbody>
          {% for theme in mailThemes %}
            <tr>
              <td class="data-type column-name">
                {{ theme.name }}
              </td>
              <td class="action-type">
                <div class="btn-group-action text-right">
                  <a class="btn tooltip-link preview-link" href="{{ path('admin_mail_theme_preview', {theme: theme.name}) }}">
                    <i class="material-icons">search</i>
                  </a>
                </div>
              </td>
            </tr>
          {% endfor %}
        </tbody>
      </table>

    </div>
  </div>
{% endblock %}
