CRM_Utils_System::setTitle(ts('%1 Options', array(1 => $this->_GName)));
- $this->assign('addSurveyType', CRM_Utils_System::url("civicrm/admin/campaign/surveyType", 'reset=1&action=add'));
+ $this->assign('addSurveyType', array("civicrm/admin/campaign/surveyType", "reset=1&action=add"));
}
/**
{if $surveys}
<div class="action-link">
- {crmButton href=$addSurveyUrl icon="crm-i fa-plus-circle"}{ts}Add Survey{/ts}{/crmButton}
+ <a href="{$addSurveyUrl}" class="button">
+ <span><i class="crm-i fa-plus-circle"></i> {ts}Add Survey{/ts}</span>
+ </a>
</div>
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/jsortable.tpl"}
</div>
{/if}
<div class="action-link">
- {crmButton href=$addSurveyUrl icon="crm-i fa-plus-circle"}{ts}Add Survey{/ts}{/crmButton}
+ <a href="{$addSurveyUrl}" class="button">
+ <span><i class="crm-i fa-plus-circle"></i> {ts}Add Survey{/ts}</span>
+ </a>
</div>
{else}
{if $rows}
<div class="action-link">
- <a href="{$addSurveyType}" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts 1=$GName}Add %1{/ts}</span></a>
+ {crmButton p=$addSurveyType.0 q=$addSurveyType.1 icon="crm-i fa-plus-circle"}{ts 1=$GName}Add %1{/ts}{/crmButton}
</div>
<div id={$gName}>
</table>
{/strip}
<div class="action-link">
- <a href="{$addSurveyType}" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts 1=$GName}Add %1{/ts}</span></a>
+ {crmButton p=$addSurveyType.0 q=$addSurveyType.1 icon="crm-i fa-plus-circle"}{ts 1=$GName}Add %1{/ts}{/crmButton}
</div>
</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon">
- {ts 1=$addSurveyType}There are no survey type entered. You can <a href='%1'>add one</a>.{/ts}</div>
+ {ts p=$addSurveyType.0 q=$addSurveyType.1}There are no survey types entered. You can <a href='%1'>add one</a>.{/ts}</div>
</div>
{/if}
{/if}