2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 {if ($action eq 1 or $action eq 2 or $action eq 4 or $action eq 8 and !$usedBy) and !$isReserved}
11 {include file="CRM/Price/Form/Option.tpl"}
14 <div class='spacer'></div>
15 <div id="price_set_used_by" class="messages status no-popup">
16 {icon icon="fa-info-circle"}{/icon}
18 {ts 1=$usedPriceSetTitle}Unable to delete the '%1' Price Field Option - it is currently in use by one or more active events or contribution pages or contributions.{/ts}
21 {if $usedBy.civicrm_event or $usedBy.civicrm_contribution_page}
22 {include file="CRM/Price/Page/table.tpl"}
34 {* handle enable/disable actions*}
35 {include file="CRM/common/enableDisableApi.tpl"}
36 <table id="options" class="row-highlight">
39 <th>{ts}Option Label{/ts}</th>
40 <th>{ts}Option Amount{/ts}</th>
41 <th>{ts}Non-deductible Amount{/ts}</th>
42 <th>{ts}Pre Help{/ts}</th>
43 <th>{ts}Post Help{/ts}</th>
45 <th>{ts}Participant Count{/ts}</th>
46 <th>{ts}Maximum{/ts}</th>
48 <th>{ts}Default{/ts}</th>
49 <th>{ts}Financial Type{/ts}</th>
50 <th>{ts}Order{/ts}</th>
52 <th>{ts}Tax Label{/ts}</th>
53 <th>{ts}Tax Amount{/ts}</th>
55 <th>{ts}Enabled?{/ts}</th>
60 {foreach from=$customOption item=row}
61 <tr id="price_field_value-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
62 <td class="crm-price-option-label crm-editable" data-field="label">{$row.label}</td>
63 <td class="crm-price-option-value">{$row.amount|crmMoney}</td>
64 <td class="crm-price-option-non-deductible-amount">{$row.non_deductible_amount|crmMoney}</td>
65 <td class="crm-price-option-pre-help">{$row.help_pre}</td>
66 <td class="crm-price-option-post-help">{$row.help_post}</td>
68 <td class="crm-price-option-count">{$row.count}</td>
69 <td class="crm-price-option-max">{$row.max_value}</td>
71 <td class="crm-price-option-is_default">{icon condition=$row.is_default}{ts}Default{/ts}{/icon}</td>
72 <td class="nowrap crm-price-option-financial-type-id">{$row.financial_type_id}</td>
73 <td class="nowrap crm-price-option-order">{$row.weight|smarty:nodefaults}</td>
75 <td>{if $row.tax_rate != '' }
76 {$taxTerm} ({$row.tax_rate}%)
79 <td>{$row.tax_amount|crmMoney}</td>
81 <td id="row_{$row.id}_status" class="crm-price-option-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
82 <td>{$row.action|smarty:nodefaults|replace:'xx':$row.id}</td>
92 <div class="messages status no-popup">
93 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
98 {if $addMoreFields && !$isReserved}
99 <div class="action-link">
100 {crmButton q="reset=1&action=add&fid=$fid&sid=$sid" icon="plus-circle"}{ts 1=$fieldTitle}New Option for '%1'{/ts}{/crmButton}
101 {crmButton p="civicrm/admin/price/field" q="reset=1&sid=$sid" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}