From d5a087463d1f62b195a6633aa6f1506dd7a565f8 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Thu, 25 Sep 2014 16:28:02 -0700 Subject: [PATCH] Fix regression which caused Price Fields selector to NOT display. --- templates/CRM/Price/Page/Field.tpl | 121 ++++++++++++++--------------- 1 file changed, 59 insertions(+), 62 deletions(-) diff --git a/templates/CRM/Price/Page/Field.tpl b/templates/CRM/Price/Page/Field.tpl index 52e3879331..81a711a41e 100644 --- a/templates/CRM/Price/Page/Field.tpl +++ b/templates/CRM/Price/Page/Field.tpl @@ -24,11 +24,11 @@ +--------------------------------------------------------------------+ *} {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"} + {include file="CRM/Price/Form/Preview.tpl"} {elseif ($usedBy and $action eq 8) or $usedBy.civicrm_event or $usedBy.civicrm_contribution_page}
@@ -40,68 +40,65 @@ {include file="CRM/Price/Page/table.tpl"} {/if}
-{else} - - +{/if} - {if $priceField} - -
- {strip} +{if $action NEQ 8 and $priceField} + +
+ {strip} {* handle enable/disable actions*} - {include file="CRM/common/enableDisableApi.tpl"} - {include file="CRM/common/crmeditable.tpl"} - - - - - - - - - - - - - - - {foreach from=$priceField key=fid item=row} + {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}
+ + + + + + + + + + + + + + {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.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}{$row.action|replace:'xx':$row.id}
- {/strip} -
- + {$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} + {$row.action|replace:'xx':$row.id} + + {/foreach} + + {/strip} +
+ - {else} - {if $action eq 16} -
-
- {ts}None found.{/ts} -
- - {/if} +{else} + {if $action eq 16} +
+
+ {ts}None found.{/ts} +
+ {/if} {/if} -- 2.25.1