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 $action eq 8} - {ts 1=$usedPriceSetTitle}Unable to delete the '%1' Price Field - it is currently in use by one or more active events or contribution pages or contributions or event templates.{/ts} - {/if} - - {if $usedBy.civicrm_event or $usedBy.civicrm_contribution_page or $usedBy.civicrm_event_template} - {include file="CRM/Price/Page/table.tpl"} - {/if} -
- {/if} + {include file="CRM/Price/Form/Preview.tpl"} +{elseif ($usedBy and $action eq 8) or $usedBy.civicrm_event or $usedBy.civicrm_contribution_page} +
+
+ {if $action eq 8} + {ts 1=$usedPriceSetTitle}Unable to delete the '%1' Price Field - it is currently in use by one or more active events or contribution pages or contributions or event templates.{/ts} + {/if} + {if $usedBy.civicrm_event or $usedBy.civicrm_contribution_page or $usedBy.civicrm_event_template} + {include file="CRM/Price/Page/table.tpl"} + {/if} +
+{/if} +{if $action NEQ 8 and $priceField} + +
+ {strip} + {* handle enable/disable actions*} + {include file="CRM/common/enableDisableApi.tpl"} + {include file="CRM/common/crmeditable.tpl"} + + + + + + + + + + + + {if $getTaxDetails} + + + {/if} + + + + {foreach from=$priceField key=fid item=row} + + + + + + + + + + {if $getTaxDetails} + + + {/if} + + + {/foreach} +
{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}{ts}Tax Label{/ts}{ts}Tax Amount{/ts}
{$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 $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}{$row.action|replace:'xx':$row.id}
+ {/strip} +
+ - {if $priceField} +{else} + {if $action eq 16} +
+
+ {ts}None found.{/ts} +
-
- {strip} - {* handle enable/disable actions*} - {include file="CRM/common/enableDisable.tpl"} - {include file="CRM/common/jsortable.tpl"} - - - - - - - - - - - - - - - - {foreach from=$priceField key=fid item=row} - - - - - - - - - - - - - {/foreach} -
{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}
{$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}
- {/strip} -
- - - {else} - {if $action eq 16} -
-
- {capture assign=crmURL}{crmURL p='civicrm/admin/price/field q="action=add&reset=1&sid=$sid"}{/capture} - {ts 1=$groupTitle 2=$crmURL}There are no fields for price set '%1', add one.{/ts} -
- {/if} {/if} {/if}