Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-04-21-08-12-12
[civicrm-core.git] / templates / CRM / Report / Page / Options.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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>&raquo; {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 {include file="CRM/common/crmeditable.tpl"}
41 {include file="CRM/common/jsortable.tpl"}
42 <table id="options" class="display">
43 <thead>
44 <tr>
45 <th>{ts}Label{/ts}</th>
46 <th>{ts}URL{/ts}</th>
47 <th id="nosort">{ts}Description{/ts}</th>
48 <th id="order" class="sortable">{ts}Order{/ts}</th>
49 {if $showIsDefault}
50 <th>{ts}Default{/ts}</th>
51 {/if}
52 <th>{ts}Reserved{/ts}</th>
53 <th>{ts}Enabled?{/ts}</th>
54 <th>{ts}Component{/ts}</th>
55 <th></th>
56 <th class="hiddenElement"></th>
57 </tr>
58 </thead>
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>
65 {if $showIsDefault}
66 <td class="crm-report-optionList-default_value">{$row.default_value}</td>
67 {/if}
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>
73 </tr>
74 {/foreach}
75 </table>
76 {/strip}
77
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>&raquo; {ts 1=$GName}Register New %1{/ts}</span></a>
81 </div>
82 {/if}
83 </div>
84 {else}
85 <div class="messages status no-popup">
86 <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}
87 </div>
88 {/if}