drupal-civicrm/sites/all/modules/civicrm/templates/CRM/Admin/Page/Persistent.tpl

62 lines
1.7 KiB
Smarty
Raw Permalink Normal View History

2018-01-14 15:10:16 +02:00
{foreach from=$rows item=template_row key=type}
{if $type eq 'configTemplates'}
<table class="report-layout">
<div class="action-link">
{crmButton p='civicrm/admin/tplstrings/add' q='reset=1&action=add' icon="plus-circle"}{ts}Add New String{/ts}{/crmButton}
</div>
{if !empty( $template_row) }
<tr>
<th>Context</th>
<th>Name</th>
<th>Data</th>
{if $editClass}
<th style="width: 10%"></th>
{/if}
</tr>
{foreach from=$template_row item=values}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$values.context}</td>
<td>{$values.name}</td>
<td>{$values.data}</td>
{if $editClass}
<td>{$values.action}</td>
{/if}
</tr>
{/foreach}
{/if}
</table>
{/if}
{if $type eq 'customizeTemplates'}
<table class="report-layout">
<head>
<h1>Config String</h1>
</head>
<br/>
<div class="action-link">
{crmButton p='civicrm/admin/tplstrings/add' q='reset=1&action=add&config=1' icon="plus-circle"}{ts}Add New Config{/ts}{/crmButton}
</div>
<br/>
{if !empty( $template_row) }
<tr>
<th>Context</th>
<th>Name</th>
<th>Data</th>
{if $editClass}
<th style="width: 10%"></th>
{/if}
</tr>
{foreach from=$template_row item=values}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$values.context}</td>
<td>{$values.name}</td>
<td>{$values.data}</td>
{if $editClass}
<td>{$values.action}</td>
{/if}
</tr>
{/foreach}
{/if}
</table>
{/if}
{/foreach}