ldapsaisie/src/templates/default/email_templates.tpl

29 lines
888 B
Smarty

{extends file='ls:base_connected.tpl'}
{block name="content"}
<h1>{$pagetitle}</h1>
<table class="LStable">
<thead>
<tr>
<th>{tr msg="Template name"}</th>
<th class="mail_subject">{tr msg="Subject"}</th>
<th class="mail_content">{tr msg="HTML content"}</th>
<th class="mail_content">{tr msg="Text content"}</th>
</tr>
</thead>
<tbody>
{foreach $templates as $name => $tpl}
<tr class="{cycle values=",bis"}">
<td><a href="addon/mail/templates?name={$name|escape:"url"}">{$name}</td>
<td>{$tpl.subject|escape:"htmlall"}</td>
<td class="mail_content">{$tpl.html|escape:"htmlall"}</td>
<td class="mail_content">{$tpl.txt|escape:"htmlall"}</td>
</tr>
{foreachelse}
<tr>
<td colspan="4" class="center">{tr msg="No existing email template."}</td>
</tr>
{/foreach}
</tbody>
</table>
{/block}