{if ($action eq 1) or ($action eq 2) or ($action eq 8) }
{include file="CRM/Campaign/Form/SurveyType.tpl" }
{else}
{if $rows}
{crmButton p=$addSurveyType.0 q=$addSurveyType.1 icon="crm-i fa-plus-circle"}{ts 1=$GName}Add %1{/ts}{/crmButton}
{strip}
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{ts}Label{/ts}
|
{ts}Value{/ts}
|
{ts}Description{/ts} |
{ts}Order{/ts} |
{ts}Reserved{/ts} |
{ts}Enabled?{/ts} |
|
{foreach from=$rows item=row}
{$row.label} |
{$row.value} |
{$row.description} |
{$row.weight} |
{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} |
{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} |
{$row.action|replace:'xx':$row.id} |
{/foreach}
{/strip}
{crmButton p=$addSurveyType.0 q=$addSurveyType.1 icon="crm-i fa-plus-circle"}{ts 1=$GName}Add %1{/ts}{/crmButton}
{else}
{/if}
{/if}