commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Campaign / Page / SurveyType.tpl
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">
7 <a href="{$addSurveyType}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts 1=$GName}Add %1{/ts}</span></a>
8 </div>
9
10 <div id={$gName}>
11 {strip}
12 {* handle enable/disable actions*}
13 {include file="CRM/common/enableDisableApi.tpl"}
14 <table class="row-highlight">
15 <thead>
16 <tr>
17 <th>
18 {ts}Label{/ts}
19 </th>
20 <th>
21 {ts}Value{/ts}
22 </th>
23 <th>{ts}Description{/ts}</th>
24 <th>{ts}Order{/ts}</th>
25 <th>{ts}Reserved{/ts}</th>
26 <th>{ts}Enabled?{/ts}</th>
27 <th></th>
28 </tr>
29 </thead>
30 {foreach from=$rows item=row}
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>
33 <td class="crm-admin-options-value">{$row.value}</td>
34 <td class="crm-admin-options-description">{$row.description}</td>
35 <td class="nowrap crm-admin-options-order">{$row.weight}</td>
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>
39 </tr>
40 {/foreach}
41 </table>
42 {/strip}
43 <div class="action-link">
44 <a href="{$addSurveyType}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts 1=$GName}Add %1{/ts}</span></a>
45 </div>
46
47 </div>
48 {else}
49 <div class="messages status no-popup">
50 <div class="icon inform-icon"> &nbsp;
51 {ts 1=$addSurveyType}There are no survey type entered. You can <a href='%1'>add one</a>.{/ts}</div>
52 </div>
53 {/if}
54 {/if}
55 </div>