2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 {* this template is used for displaying survey information *}
13 <div class="action-link">
14 <a href="{$addSurveyUrl}" class="button">
15 <span><i class="crm-i fa-plus-circle"></i> {ts}Add Survey{/ts}</span>
18 {include file="CRM/common/enableDisableApi.tpl"}
19 {include file="CRM/common/jsortable.tpl"}
21 <table id="options" class="display">
24 <th>{ts}Survey{/ts}</th>
25 <th>{ts}Campaign{/ts}</th>
26 <th>{ts}Survey Type{/ts}</th>
27 <th>{ts}Release Frequency{/ts}</th>
28 <th>{ts}Max Number Of Contacts{/ts}</th>
29 <th>{ts}Default Number Of Contacts{/ts}</th>
30 <th>{ts}Default?{/ts}</th>
31 <th>{ts}Active?{/ts}</th>
35 {foreach from=$surveys item=survey}
36 <tr id="survey-{$survey.id}" class="crm-entity {if $survey.is_active neq 1} disabled{/if}">
37 <td>{$survey.title}</td>
38 <td>{$survey.campaign_id}</td>
39 <td>{$survey.activity_type_id}</td>
40 <td>{$survey.release_frequency}</td>
41 <td>{$survey.max_number_of_contacts}</td>
42 <td>{$survey.default_number_of_contacts}</td>
43 <td>{if $survey.is_default}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" /> {/if}</td>
44 <td id="row_{$survey.id}_status">{if $survey.is_active}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
45 <td class="crm-report-optionList-action">{$survey.action}</td>
53 <div class="icon inform-icon"></div> {ts}None found.{/ts}
56 <div class="action-link">
57 <a href="{$addSurveyUrl}" class="button">
58 <span><i class="crm-i fa-plus-circle"></i> {ts}Add Survey{/ts}</span>