2018-08-12 23:45:46 +00:00
|
|
|
<div class="crm-content-block crm-block">
|
2018-08-13 21:59:23 +00:00
|
|
|
<label>{ts}Entity Type: {/ts}</label>
|
|
|
|
<select name="entityType" type="text" id="entityType" class="crm-form-select required crm-select2 twelve">
|
2018-08-12 23:45:46 +00:00
|
|
|
{$entityTypeOptions}
|
|
|
|
</select>
|
|
|
|
</br></br>
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0" class="row-highlight">
|
|
|
|
<thead class="sticky">
|
|
|
|
<th>{ts}Title{/ts}</th>
|
|
|
|
<th></th>
|
|
|
|
</thead>
|
|
|
|
{foreach from=$rows item=row}
|
2018-08-13 21:59:23 +00:00
|
|
|
<tr id="EntityTemplates-{$row.title}" class="crm-entity {cycle values="odd-row,even-row"}">
|
2018-08-12 23:45:46 +00:00
|
|
|
<td class='EntityTemplates-title'>{$row.title}</td>
|
|
|
|
<td class='EntityTemplates-links'>{$row.links}</td>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
</table>
|
2018-08-13 21:59:23 +00:00
|
|
|
{crmButton p=$url q="`$query`&isTemplate=1" class="cancel" icon="times"}{ts}Add Template{/ts}{/crmButton}
|
2018-08-12 23:45:46 +00:00
|
|
|
{crmButton p="civicrm" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{literal}
|
|
|
|
<script type="text/javascript">
|
|
|
|
CRM.$(function($) {
|
2018-08-13 21:59:23 +00:00
|
|
|
$('#entityType').change(loadPage);
|
2018-08-12 23:45:46 +00:00
|
|
|
function loadPage() {
|
|
|
|
window.location.href = CRM.url('civicrm/entity/templates', {
|
|
|
|
reset: '1',
|
|
|
|
entityType: $('#entityType').val()
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{/literal}
|