Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {* this template is used for displaying survey information *} | |
27 | ||
28 | {if $surveys} | |
29 | <div class="action-link"> | |
fd66df85 CW |
30 | <a href="{$addSurveyUrl}" class="button"> |
31 | <span><div class="icon ui-icon-circle-plus"></div> {ts}Add Survey{/ts}</span> | |
32 | </a> | |
6a488035 | 33 | </div> |
4d17a233 | 34 | {include file="CRM/common/enableDisableApi.tpl"} |
6a488035 TO |
35 | {include file="CRM/common/jsortable.tpl"} |
36 | <div id="surveyList"> | |
37 | <table id="options" class="display"> | |
38 | <thead> | |
39 | <tr> | |
40 | <th>{ts}Survey{/ts}</th> | |
41 | <th>{ts}Campaign{/ts}</th> | |
42 | <th>{ts}Survey Type{/ts}</th> | |
43 | <th>{ts}Release Frequency{/ts}</th> | |
44 | <th>{ts}Max Number Of Contacts{/ts}</th> | |
45 | <th>{ts}Default Number Of Contacts{/ts}</th> | |
46 | <th>{ts}Default?{/ts}</th> | |
47 | <th>{ts}Active?{/ts}</th> | |
48 | <th id="nosort"></th> | |
49 | </tr> | |
50 | </thead> | |
51 | {foreach from=$surveys item=survey} | |
4d17a233 | 52 | <tr id="survey-{$survey.id}" class="crm-entity {if $survey.is_active neq 1} disabled{/if}"> |
6a488035 TO |
53 | <td>{$survey.title}</td> |
54 | <td>{$survey.campaign_id}</td> | |
55 | <td>{$survey.activity_type_id}</td> | |
56 | <td>{$survey.release_frequency}</td> | |
57 | <td>{$survey.max_number_of_contacts}</td> | |
58 | <td>{$survey.default_number_of_contacts}</td> | |
59 | <td>{if $survey.is_default}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" /> {/if}</td> | |
60 | <td id="row_{$survey.id}_status">{if $survey.is_active}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td> | |
61 | <td class="crm-report-optionList-action">{$survey.action}</td> | |
62 | </tr> | |
63 | {/foreach} | |
64 | </table> | |
65 | </div> | |
66 | ||
67 | {else} | |
68 | <div class="status"> | |
1eba7e53 | 69 | <div class="icon inform-icon"></div> {ts}None found.{/ts} |
6a488035 TO |
70 | </div> |
71 | {/if} | |
72 | <div class="action-link"> | |
fd66df85 CW |
73 | <a href="{$addSurveyUrl}" class="button"> |
74 | <span><div class="icon ui-icon-circle-plus"></div> {ts}Add Survey{/ts}</span> | |
75 | </a> | |
6a488035 | 76 | </div> |