Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
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 | <div id="help"> | |
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} | |
28 | </div> | |
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> | |
32 | </div> | |
33 | <div class="spacer"></div> | |
34 | {/if} | |
35 | {if $rows} | |
36 | <div id="optionList"> | |
37 | {strip} | |
38 | {* handle enable/disable actions*} | |
4d17a233 CW |
39 | {include file="CRM/common/enableDisableApi.tpl"} |
40 | {include file="CRM/common/crmeditable.tpl"} | |
e5e1786f | 41 | <table id="options" class="row-highlight"> |
6a488035 TO |
42 | <thead> |
43 | <tr> | |
44 | <th>{ts}Label{/ts}</th> | |
45 | <th>{ts}URL{/ts}</th> | |
e5e1786f CW |
46 | <th>{ts}Description{/ts}</th> |
47 | <th>{ts}Order{/ts}</th> | |
6a488035 TO |
48 | {if $showIsDefault} |
49 | <th>{ts}Default{/ts}</th> | |
50 | {/if} | |
51 | <th>{ts}Reserved{/ts}</th> | |
52 | <th>{ts}Enabled?{/ts}</th> | |
53 | <th>{ts}Component{/ts}</th> | |
54 | <th></th> | |
55 | <th class="hiddenElement"></th> | |
56 | </tr> | |
57 | </thead> | |
58 | {foreach from=$rows item=row} | |
0b3131fb | 59 | <tr id="option_value-{$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}"> |
4d17a233 | 60 | <td class="crm-report-optionList-label crm-editable" data-field="label">{$row.label}</td> |
6a488035 TO |
61 | <td class="crm-report-optionList-value">{$row.value}</td> |
62 | <td class="crm-report-optionList-description">{$row.description}</td> | |
e5e1786f | 63 | <td class="nowrap crm-report-optionList-order">{$row.weight}</td> |
6a488035 TO |
64 | {if $showIsDefault} |
65 | <td class="crm-report-optionList-default_value">{$row.default_value}</td> | |
66 | {/if} | |
67 | <td class="crm-report-optionList-is_reserved">{if $row.is_reserved eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> | |
68 | <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> | |
69 | <td class="crm-report-optionList-component_name">{$row.component_name}</td> | |
70 | <td class="crm-report-optionList-action">{$row.action}</td> | |
6a488035 TO |
71 | </tr> |
72 | {/foreach} | |
73 | </table> | |
74 | {/strip} | |
75 | ||
76 | {if $action ne 1 and $action ne 2} | |
77 | <div class="action-link"> | |
78 | <a href="{$newReport}" id="new"|cat:$GName class="button"><span>» {ts 1=$GName}Register New %1{/ts}</span></a> | |
79 | </div> | |
80 | {/if} | |
81 | </div> | |
82 | {else} | |
83 | <div class="messages status no-popup"> | |
84 | <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} | |
85 | </div> | |
232624b1 | 86 | {/if} |