1 <div class="crm-content-block crm-block">
2 {if ($action eq 1) or ($action eq 2) or ($action eq 8) }
3 {include file="CRM/Campaign/Form/SurveyType.tpl" }
6 <div class="action-link">
7 {crmButton p=$addSurveyType.0 q=$addSurveyType.1 icon="crm-i fa-plus-circle"}{ts 1=$GName}Add %1{/ts}{/crmButton}
12 {* handle enable/disable actions*}
13 {include file="CRM/common/enableDisableApi.tpl"}
14 <table class="row-highlight">
23 <th>{ts}Description{/ts}</th>
24 <th>{ts}Order{/ts}</th>
25 <th>{ts}Reserved{/ts}</th>
26 <th>{ts}Enabled?{/ts}</th>
30 {foreach from=$rows item=row}
31 <tr id="option_value-{$row.id}" class="crm-entity crm-admin-options_{$row.id} {if NOT $row.is_active} disabled{/if}">
32 <td class="crm-admin-options-label crm-editable" data-field="label">{$row.label}</td>
33 <td class="crm-admin-options-value">{$row.value}</td>
34 <td class="crm-admin-options-description">{$row.description}</td>
35 <td class="nowrap crm-admin-options-order">{$row.weight}</td>
36 <td class="crm-admin-options-is_reserved">{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
37 <td class="crm-admin-options-is_active" id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
38 <td>{$row.action|replace:'xx':$row.id}</td>
43 <div class="action-link">
44 {crmButton p=$addSurveyType.0 q=$addSurveyType.1 icon="crm-i fa-plus-circle"}{ts 1=$GName}Add %1{/ts}{/crmButton}
49 <div class="messages status no-popup">
50 <div class="icon inform-icon">
51 {ts p=$addSurveyType.0 q=$addSurveyType.1}There are no survey types entered. You can <a href='%1'>add one</a>.{/ts}</div>