2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
27 {ts 1=$GName}The existing option choices for %1 group are listed below. You can add, edit or delete them from this screen.{/ts}
29 {if $action ne 1 and $action ne 2}
30 <div class="action-link">
31 <a href="{$newReport}" id="new"|cat:$GName class="button"><span>» {ts 1=$GName}Register New %1{/ts}</span></a>
33 <div class="spacer"></div>
38 {* handle enable/disable actions*}
39 {include file="CRM/common/enableDisableApi.tpl"}
40 {include file="CRM/common/crmeditable.tpl"}
41 {include file="CRM/common/jsortable.tpl"}
42 <table id="options" class="display">
45 <th>{ts}Label{/ts}</th>
47 <th id="nosort">{ts}Description{/ts}</th>
48 <th id="order" class="sortable">{ts}Order{/ts}</th>
50 <th>{ts}Default{/ts}</th>
52 <th>{ts}Reserved{/ts}</th>
53 <th>{ts}Enabled?{/ts}</th>
54 <th>{ts}Component{/ts}</th>
56 <th class="hiddenElement"></th>
59 {foreach from=$rows item=row}
60 <tr id="report-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{$row.class}{if NOT $row.is_active} crm-report-optionList crm-report-optionList-status_disable disabled{else} crm-report-optionList crm-report-optionList-status_enable{/if}">
61 <td class="crm-report-optionList-label crm-editable" data-field="label">{$row.label}</td>
62 <td class="crm-report-optionList-value">{$row.value}</td>
63 <td class="crm-report-optionList-description">{$row.description}</td>
64 <td class="nowrap crm-report-optionList-order">{$row.order}</td>
66 <td class="crm-report-optionList-default_value">{$row.default_value}</td>
68 <td class="crm-report-optionList-is_reserved">{if $row.is_reserved eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
69 <td class="crm-report-optionList-is_active" id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
70 <td class="crm-report-optionList-component_name">{$row.component_name}</td>
71 <td class="crm-report-optionList-action">{$row.action}</td>
72 <td class="order hiddenElement">{$row.weight}</td>
78 {if $action ne 1 and $action ne 2}
79 <div class="action-link">
80 <a href="{$newReport}" id="new"|cat:$GName class="button"><span>» {ts 1=$GName}Register New %1{/ts}</span></a>
85 <div class="messages status no-popup">
86 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/> {ts 1=$newReport}There are no option values entered. You can <a href="%1">add one</a>.{/ts}