Commit | Line | Data |
---|---|---|
6a488035 TO |
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" } | |
4 | {else} | |
5 | {if $rows} | |
6 | <div class="action-link"> | |
308fe727 | 7 | {crmButton p=$addSurveyType.0 q=$addSurveyType.1 icon="crm-i fa-plus-circle"}{ts 1=$GName}Add %1{/ts}{/crmButton} |
6a488035 TO |
8 | </div> |
9 | ||
10 | <div id={$gName}> | |
11 | {strip} | |
12 | {* handle enable/disable actions*} | |
4d17a233 | 13 | {include file="CRM/common/enableDisableApi.tpl"} |
e5e1786f | 14 | <table class="row-highlight"> |
6a488035 TO |
15 | <thead> |
16 | <tr> | |
17 | <th> | |
18 | {ts}Label{/ts} | |
19 | </th> | |
20 | <th> | |
21 | {ts}Value{/ts} | |
22 | </th> | |
e5e1786f CW |
23 | <th>{ts}Description{/ts}</th> |
24 | <th>{ts}Order{/ts}</th> | |
6a488035 TO |
25 | <th>{ts}Reserved{/ts}</th> |
26 | <th>{ts}Enabled?{/ts}</th> | |
27 | <th></th> | |
6a488035 TO |
28 | </tr> |
29 | </thead> | |
30 | {foreach from=$rows item=row} | |
4d17a233 CW |
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> | |
6a488035 TO |
33 | <td class="crm-admin-options-value">{$row.value}</td> |
34 | <td class="crm-admin-options-description">{$row.description}</td> | |
e5e1786f | 35 | <td class="nowrap crm-admin-options-order">{$row.weight}</td> |
6a488035 TO |
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> | |
6a488035 TO |
39 | </tr> |
40 | {/foreach} | |
41 | </table> | |
42 | {/strip} | |
43 | <div class="action-link"> | |
308fe727 | 44 | {crmButton p=$addSurveyType.0 q=$addSurveyType.1 icon="crm-i fa-plus-circle"}{ts 1=$GName}Add %1{/ts}{/crmButton} |
6a488035 TO |
45 | </div> |
46 | ||
47 | </div> | |
48 | {else} | |
49 | <div class="messages status no-popup"> | |
50 | <div class="icon inform-icon"> | |
308fe727 | 51 | {ts p=$addSurveyType.0 q=$addSurveyType.1}There are no survey types entered. You can <a href='%1'>add one</a>.{/ts}</div> |
6a488035 TO |
52 | </div> |
53 | {/if} | |
54 | {/if} | |
4d17a233 | 55 | </div> |