From: Guanhuan Chen Date: Thu, 15 Oct 2015 13:20:05 +0000 (+0100) Subject: Add crm-public-form-item class to contribution page and add possibility to style... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8eb92199d4e69a314e12ab7d99fdc73b9d5b3405;p=civicrm-core.git Add crm-public-form-item class to contribution page and add possibility to style profiles consistently --- diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 219189c3e2..ac3fe8804f 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -25,8 +25,9 @@ *} {* Callback snippet: On-behalf profile *} {if $snippet and !empty($isOnBehalfCallback)} +
{include file="CRM/Contribute/Form/Contribution/OnBehalfOf.tpl" context="front-end"} - +
{* Callback snippet: Load payment processor *} {elseif $snippet} {include file="CRM/Core/BillingBlock.tpl"} @@ -35,16 +36,16 @@ {if $paymentProcessor.payment_processor_type EQ 'PayPal_Express'}
{assign var=expressButtonName value='_qf_Main_upload_express'} -
+
{ts}Checkout with PayPal{/ts}
-
+
{ts}Click the PayPal button to continue.{/ts}
-
+
{$form.$expressButtonName.html} Checkout securely. Pay without sharing your financial information.
@@ -106,7 +107,7 @@
{/if} -
+
{$intro_text}
{include file="CRM/common/cidzero.tpl"} @@ -115,7 +116,9 @@ {/if} {if !empty($useForMember)} - {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="makeContribution"} +
+ {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="makeContribution"} +
{else}
{include file="CRM/Price/Form/PriceSet.tpl" extends="Contribution"} @@ -124,13 +127,13 @@ {if $pledgeBlock} {if $is_pledge_payment} -
+
{$form.pledge_amount.label} *
{$form.pledge_amount.html}
{else} -
+
 
{$form.is_pledge.html}  @@ -145,7 +148,7 @@ {/if} {if $form.is_recur} -
+
 
{$form.is_recur.html} {$form.is_recur.label} {ts}every{/ts} @@ -176,14 +179,14 @@
{/if} {if $pcpSupporterText} -
+
 
{$pcpSupporterText}
{/if} {assign var=n value=email-$bltID} -
+
{$form.$n.label}
{$form.$n.html} @@ -192,7 +195,7 @@
{if $form.is_for_organization} -
+
 
{$form.is_for_organization.html} {$form.is_for_organization.label} @@ -202,52 +205,56 @@ {/if} {if $is_for_organization} -
+
{include file="CRM/Contribute/Form/Contribution/OnBehalfOf.tpl"}
{/if} {* User account registration option. Displays if enabled for one of the profiles on this page. *} - {include file="CRM/common/CMSUser.tpl"} - {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="makeContribution"} +
+ {include file="CRM/common/CMSUser.tpl"} +
+
+ {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="makeContribution"} +
{if $honor_block_is_active} -
+
{include file="CRM/Contribute/Form/SoftCredit.tpl"} -
+
{include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'}
{/if} -
+
{include file="CRM/UF/Form/Block.tpl" fields=$customPre}
{if $isHonor} -
-
-
+
+
+
{$form.pcp_display_in_roll.html}   {$form.pcp_display_in_roll.label}
-
+
{$form.pcp_is_anonymous.html}
-
+
{$form.pcp_roll_nickname.label}
{$form.pcp_roll_nickname.html}
{ts}Enter the name you want listed with this contribution. You can use a nick name like 'The Jones Family' or 'Sarah and Sam'.{/ts}
-
+
{$form.pcp_personal_note.label}
{$form.pcp_personal_note.html} @@ -261,9 +268,9 @@ {if $form.payment_processor.label} {* PP selection only works with JS enabled, so we hide it initially *} -