Change 'help' id to a class
[civicrm-core.git] / templates / CRM / Report / Page / Options.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
2c4c49ca 3 | CiviCRM version 4.7 |
6a488035 4 +--------------------------------------------------------------------+
e7112fa7 5 | Copyright CiviCRM LLC (c) 2004-2015 |
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*}
f6eedce7 26<div class="help">
b69e578b 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}
6a488035
TO
28</div>
29{if $action ne 1 and $action ne 2}
b69e578b 30 <div class="action-link">
a2c70872 31 <a href="{$newReport}" id="new"|cat:$GName class="button"><span><i class="crm-i fa-plus-circle"></i> {ts 1=$GName}Register New %1{/ts}</span></a>
b69e578b
CW
32 </div>
33 <div class="spacer"></div>
6a488035
TO
34{/if}
35{if $rows}
b69e578b
CW
36 <div id="optionList">
37 {strip}
38 {* handle enable/disable actions*}
39 {include file="CRM/common/enableDisableApi.tpl"}
b69e578b
CW
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}
6a488035 48 <th>{ts}Default{/ts}</th>
b69e578b
CW
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>
6a488035 56 </thead>
b69e578b
CW
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>
6a488035
TO
60 <td class="crm-report-optionList-value">{$row.value}</td>
61 <td class="crm-report-optionList-description">{$row.description}</td>
e5e1786f 62 <td class="nowrap crm-report-optionList-order">{$row.weight}</td>
6a488035 63 {if $showIsDefault}
b69e578b 64 <td class="crm-report-optionList-default_value">{$row.default_value}</td>
6a488035
TO
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>
b633f8bd 67 <td class="crm-report-optionList-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
b69e578b 68 <td class="crm-report-optionList-component_name">{$row.component_name}</td>
6a488035 69 <td class="crm-report-optionList-action">{$row.action}</td>
b69e578b
CW
70 </tr>
71 {/foreach}
6a488035 72 </table>
b69e578b 73 {/strip}
6a488035 74
b69e578b
CW
75 {if $action ne 1 and $action ne 2}
76 <div class="action-link">
a2c70872 77 <a href="{$newReport}" id="new"|cat:$GName class="button"><span><i class="crm-i fa-plus-circle"></i> {ts 1=$GName}Register New %1{/ts}</span></a>
b69e578b
CW
78 </div>
79 {/if}
80 </div>
6a488035 81{else}
b69e578b
CW
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>
232624b1 85{/if}