From: Coleman Watts Date: Wed, 24 Sep 2014 18:45:22 +0000 (-0400) Subject: Option.tpl whitespace cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1d61ba2b998d7ca8b85df79933da8dbb66c6eca5;p=civicrm-core.git Option.tpl whitespace cleanup --- diff --git a/templates/CRM/Price/Page/Option.tpl b/templates/CRM/Price/Page/Option.tpl index 99d3d0270e..41626147fa 100644 --- a/templates/CRM/Price/Page/Option.tpl +++ b/templates/CRM/Price/Page/Option.tpl @@ -24,72 +24,72 @@ +--------------------------------------------------------------------+ *} {if ($action eq 1 or $action eq 2 or $action eq 4 or $action eq 8 and !$usedBy) and !$isReserved} - {include file="CRM/Price/Form/Option.tpl"} + {include file="CRM/Price/Form/Option.tpl"} {/if} {if $usedBy} -
-
+
+
- {if $action eq 8} - {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} - {/if} - - {if $usedBy.civicrm_event or $usedBy.civicrm_contribution_page} - {include file="CRM/Price/Page/table.tpl"} - {/if} + {if $action eq 8} + {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} + {/if} -
+ {if $usedBy.civicrm_event or $usedBy.civicrm_contribution_page} + {include file="CRM/Price/Page/table.tpl"} {/if} +
+{/if} + {if $customOption} -
-

- {strip} - {* handle enable/disable actions*} - {include file="CRM/common/enableDisableApi.tpl"} - {include file="CRM/common/crmeditable.tpl"} - +
+

+ {strip} + {* handle enable/disable actions*} + {include file="CRM/common/enableDisableApi.tpl"} + {include file="CRM/common/crmeditable.tpl"} +
- - - + + + - + - - + + {foreach from=$customOption item=row} - + - - + + - + {/foreach} -
{ts}Option Label{/ts}{ts}Option Amount{/ts}
{ts}Option Label{/ts}{ts}Option Amount{/ts} {ts}Default{/ts} {ts}Financial Type{/ts}{ts}Order{/ts}{ts}Order{/ts} {ts}Enabled?{/ts}
{$row.label} {$row.amount|crmMoney}{if $row.is_default}{ts}Default{/ts}{/if}{$row.financial_type_id}{if $row.is_default}{ts}Default{/ts}{/if}{$row.financial_type_id} {$row.weight} {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} {$row.action|replace:'xx':$row.id}
- {/strip} - {if $addMoreFields && !$isReserved} - - {/if} -
+ + {/strip} + {if $addMoreFields && !$isReserved} + + {/if} + {else} - {if $action eq 16} -
- {ts}status{/ts} - {capture assign=crmURL}{crmURL p='civicrm/admin/price/field/option' q="action=add&fid=$fid&sid=$sid"}{/capture}{ts 1=$fieldTitle 2=$crmURL}There are no options for the price field '%1', add one.{/ts} -
- {/if} + {if $action eq 16} +
+ {ts}status{/ts} + {capture assign=crmURL}{crmURL p='civicrm/admin/price/field/option' q="action=add&fid=$fid&sid=$sid"}{/capture}{ts 1=$fieldTitle 2=$crmURL}There are no options for the price field '%1', add one.{/ts} +
+ {/if} {/if}