X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FPrice%2FPage%2FField.tpl;h=6533b9f92d90351b9428761d29321a730c632dae;hb=39de6fd54b9843705d13cb9f70fbcc6296103670;hp=d5ec72cefa165d03c6c86e35d269143c3dd5280d;hpb=8cd4dfae9e178e800ac67a6977d4a3a3f204d448;p=civicrm-core.git
diff --git a/templates/CRM/Price/Page/Field.tpl b/templates/CRM/Price/Page/Field.tpl
index d5ec72cefa..6533b9f92d 100644
--- a/templates/CRM/Price/Page/Field.tpl
+++ b/templates/CRM/Price/Page/Field.tpl
@@ -1,8 +1,8 @@
{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@ -24,85 +24,92 @@
+--------------------------------------------------------------------+
*}
{if ($action eq 1 or $action eq 2 or $action eq 4) and !$isReserved}
- {include file="CRM/Price/Form/Field.tpl"}
+ {include file="CRM/Price/Form/Field.tpl"}
{elseif $action eq 8 and !$usedBy and !$isReserved}
- {include file="CRM/Price/Form/DeleteField.tpl"}
+ {include file="CRM/Price/Form/DeleteField.tpl"}
{elseif $action eq 1024 }
- {include file="CRM/Price/Form/Preview.tpl"}
-{else}
- {if ($usedBy and $action eq 8) or $usedBy.civicrm_event or $usedBy.civicrm_contribution_page}
-
- {/if}
+ {include file="CRM/Price/Form/Preview.tpl"}
+{elseif ($usedBy and $action eq 8) or $usedBy.civicrm_event or $usedBy.civicrm_contribution_page}
+
+{/if}
+{if $action NEQ 8 and $priceField}
+
+ {strip}
+ {* handle enable/disable actions*}
+ {include file="CRM/common/enableDisableApi.tpl"}
+ {include file="CRM/common/crmeditable.tpl"}
+
+
+
+ {ts}Field Label{/ts} |
+ {ts}Field Type{/ts} |
+ {ts}Order{/ts} |
+ {ts}Req?{/ts} |
+ {ts}Enabled?{/ts} |
+ {ts}Active On{/ts} |
+ {ts}Expire On{/ts} |
+ {ts}Price{/ts} |
+ {if $getTaxDetails}
+ {ts}Tax Label{/ts} |
+ {ts}Tax Amount{/ts} |
+ {/if}
+ |
+
+
+ {foreach from=$priceField key=fid item=row}
+
+ {$row.label} |
+ {$row.html_type_display} |
+ {$row.weight} |
+ {if $row.is_required eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} |
+ {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} |
+ {if $row.active_on}{$row.active_on|date_format:"%Y-%m-%d %T"}{/if} |
+ {if $row.expire_on}{$row.expire_on|date_format:"%Y-%m-%d %T"}{/if} |
+ {if $row.html_type eq "Text"}{$row.price|crmMoney}{else}{if $isReserved}{ts}View Price Options{/ts}{else}{ts}Edit Price Options{/ts}{/if}{/if} |
+ {if $getTaxDetails}
+ {if $row.tax_rate != '' && $row.html_type eq "Text / Numeric Quantity"}
+ {$taxTerm} ({$row.tax_rate|string_format:"%.2f"}%)
+ {/if}
+ |
+ {if $row.html_type eq "Text / Numeric Quantity" }{$row.tax_amount|crmMoney}{/if} |
+ {/if}
+ {$row.action|replace:'xx':$row.id} |
+
+ {/foreach}
+
+ {/strip}
+
+
- {strip}
- {* handle enable/disable actions*}
- {include file="CRM/common/enableDisable.tpl"}
- {include file="CRM/common/jsortable.tpl"}
-
-
-
- {ts}Field Label{/ts} |
- {ts}Field Type{/ts} |
- {ts}Order{/ts} |
- {ts}Req?{/ts} |
- {ts}Enabled?{/ts} |
- {ts}Active On{/ts} |
- {ts}Expire On{/ts} |
- {ts}Price{/ts} |
- |
- |
-
-
- {foreach from=$priceField key=fid item=row}
-
- {$row.label} |
- {$row.html_type_display} |
- {$row.order} |
- {if $row.is_required eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} |
- {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} |
- {if $row.active_on}{$row.active_on|date_format:"%Y-%m-%d %T"}{/if} |
- {if $row.expire_on}{$row.expire_on|date_format:"%Y-%m-%d %T"}{/if} |
- {if $row.html_type eq "Text"}{$row.price|crmMoney}{else}{if $isReserved}{ts}View Price Options{/ts}{else}{ts}Edit Price Options{/ts}{/if}{/if} |
- {$row.action|replace:'xx':$row.id} |
- {$row.weight} |
-
- {/foreach}
-
- {/strip}
-
-