Added code changes

This commit is contained in:
2018-08-17 05:45:21 +05:30
parent 334c120a35
commit 4f7d91a5cc
7 changed files with 282 additions and 13 deletions

View File

@ -9,14 +9,20 @@
<th>{ts}Title{/ts}</th>
<th></th>
</thead>
{foreach from=$rows item=row}
<tr id="EntityTemplates-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}">
<td class='EntityTemplates-title'>{$row.title}</td>
<td class='EntityTemplates-links'>{$row.links}</td>
{if $rows}
{foreach from=$rows item=row}
<tr id="EntityTemplates-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}">
<td class='EntityTemplates-title'>{$row.title}</td>
<td class='EntityTemplates-links'>{$row.links}</td>
</tr>
{/foreach}
{else}
<tr>
<td style='text-align: center;' colspan="2">{ts}None found.{/ts}</td>
</tr>
{/foreach}
{/if}
</table>
{crmButton p=$url q="`$query`&isTemplate=1" class="cancel" icon="times"}{ts}Add Template{/ts}{/crmButton}
{crmButton p=$url q="`$query`" class="cancel" icon="times"}{ts}Add Template{/ts}{/crmButton}
{crmButton p="civicrm" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}
</div>