commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Report / Page / Options.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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><div class="icon ui-icon-circle-plus"></div> {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*}
39 {include file="CRM/common/enableDisableApi.tpl"}
40 <table id="options" class="row-highlight">
41 <thead>
42 <tr>
43 <th>{ts}Label{/ts}</th>
44 <th>{ts}URL{/ts}</th>
45 <th>{ts}Description{/ts}</th>
46 <th>{ts}Order{/ts}</th>
47 {if $showIsDefault}
48 <th>{ts}Default{/ts}</th>
49 {/if}
50 <th>{ts}Reserved{/ts}</th>
51 <th>{ts}Enabled?{/ts}</th>
52 <th>{ts}Component{/ts}</th>
53 <th></th>
54 <th class="hiddenElement"></th>
55 </tr>
56 </thead>
57 {foreach from=$rows item=row}
58 <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}">
59 <td class="crm-report-optionList-label crm-editable" data-field="label">{$row.label}</td>
60 <td class="crm-report-optionList-value">{$row.value}</td>
61 <td class="crm-report-optionList-description">{$row.description}</td>
62 <td class="nowrap crm-report-optionList-order">{$row.weight}</td>
63 {if $showIsDefault}
64 <td class="crm-report-optionList-default_value">{$row.default_value}</td>
65 {/if}
66 <td class="crm-report-optionList-is_reserved">{if $row.is_reserved eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
67 <td class="crm-report-optionList-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
68 <td class="crm-report-optionList-component_name">{$row.component_name}</td>
69 <td class="crm-report-optionList-action">{$row.action}</td>
70 </tr>
71 {/foreach}
72 </table>
73 {/strip}
74
75 {if $action ne 1 and $action ne 2}
76 <div class="action-link">
77 <a href="{$newReport}" id="new"|cat:$GName class="button"><span><div class="icon ui-icon-circle-plus"></div> {ts 1=$GName}Register New %1{/ts}</span></a>
78 </div>
79 {/if}
80 </div>
81 {else}
82 <div class="messages status no-popup">
83 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>&nbsp; {ts 1=$newReport}There are no option values entered. You can <a href="%1">add one</a>.{/ts}
84 </div>
85 {/if}