diff --git a/templates/CRM/Contribute/Form/Contribution/MembershipBlock.tpl b/templates/CRM/Contribute/Form/Contribution/MembershipBlock.tpl index 126e7c33f5a8..9fe630106126 100644 --- a/templates/CRM/Contribute/Form/Contribution/MembershipBlock.tpl +++ b/templates/CRM/Contribute/Form/Contribution/MembershipBlock.tpl @@ -24,279 +24,279 @@ +--------------------------------------------------------------------+ *} {if !empty($useForMember) AND !$is_quick_config} -
{$form.selectMembership.$pid.html} | - {else} -- {/if} - | + {if $showRadio } + {assign var="pid" value=$row.id} + | {$form.selectMembership.$pid.html} | + {else} ++ {/if} + |
{$row.name}
{if ($membershipBlock.display_min_fee AND $context EQ "makeContribution") AND $row.minimum_fee GT 0 }
- {if $is_separate_payment OR ! $form.amount.label}
- – {$row.minimum_fee|crmMoney}
- {else}
- {ts 1=$row.minimum_fee|crmMoney}(contribute at least %1 to be eligible for this membership){/ts}
- {/if}
+ {if $is_separate_payment OR ! $form.amount.label}
+ – {$row.minimum_fee|crmMoney}
+ {else}
+ {ts 1=$row.minimum_fee|crmMoney}(contribute at least %1 to be eligible for this membership){/ts}
+ {/if}
{/if}
- {$row.description} - |
+ {$row.description}
+
-
- {* Check if there is an existing membership of this type (current_membership NOT empty) and if the end-date is prior to today. *}
- {if array_key_exists( 'current_membership', $row ) AND $context EQ "makeContribution" }
- {if $row.current_membership}
- {if $row.current_membership|date_format:"%Y%m%d" LT $smarty.now|date_format:"%Y%m%d"}
- {ts 1=$row.current_membership|crmDate 2=$row.name}Your %2 membership expired on %1.{/ts} - {else} - {ts 1=$row.current_membership|crmDate 2=$row.name}Your %2 membership expires on %1.{/ts} - {/if} - {else} - {ts 1=$row.name}Your %1 membership does not expire (you do not need to renew that membership).{/ts} - {/if} + |
+ {* Check if there is an existing membership of this type (current_membership NOT empty) and if the end-date is prior to today. *}
+ {if array_key_exists( 'current_membership', $row ) AND $context EQ "makeContribution" }
+ {if $row.current_membership}
+ {if $row.current_membership|date_format:"%Y%m%d" LT $smarty.now|date_format:"%Y%m%d"}
+ {ts 1=$row.current_membership|crmDate 2=$row.name}Your %2 membership expired on %1.{/ts} + {else} + {ts 1=$row.current_membership|crmDate 2=$row.name}Your %2 membership expires on %1.{/ts} + {/if} {else} - + {ts 1=$row.name}Your %1 membership does not expire (you do not need to renew that membership).{/ts} {/if} - |
+ {else}
+
+ {/if}
+
{$form.auto_renew.html} | - {$form.auto_renew.label} + {$form.auto_renew.label} | +||||||
{$form.selectMembership.no_thanks.html} | +{ts}No thank you{/ts} | ||||||
{$form.selectMembership.no_thanks.html} | -{ts}No thank you{/ts} | -