Skip to content

Commit

Permalink
CRM-19440 add regions to contribution page admin forms
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Oct 1, 2016
1 parent 81f62fd commit c6a04a0
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/CRM/Contribute/Form/ContributionPage/AddProduct.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-addprouct-main"}
{capture assign=managePremiumsURL}{crmURL p='civicrm/admin/contribute/managePremiums' q="reset=1"}{/capture}
<h3>{if $action eq 2 }{ts}Add Products to This Page{/ts} {elseif $action eq 1024}{ts}Preview{/ts}{else} {ts}Remove Products from this Page{/ts}{/if}</h3>
<div class="crm-block crm-form-block crm-contribution-add_product-form-block">
Expand Down Expand Up @@ -101,3 +102,6 @@
});
{/literal}
</script>
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-addproduct-post"}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Contribute/Form/ContributionPage/Amount.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
+--------------------------------------------------------------------+
*}
{capture assign="adminPriceSets"}{crmURL p='civicrm/admin/price' q="reset=1"}{/capture}
{crmRegion name="contribute-form-contributionpage-amount-main"}
<div class="crm-block crm-form-block crm-contribution-contributionpage-amount-form-block">
<div class="help">
{ts}Use this form to configure Contribution Amount options. You can give contributors the ability to enter their own contribution amounts - and/or provide a fixed list of amounts. For fixed amounts, you can enter a label for each 'level' of contribution (e.g. Friend, Sustainer, etc.). If you allow people to enter their own dollar amounts, you can also set minimum and maximum values. Depending on your choice of Payment Processor, you may be able to offer a recurring contribution option.{/ts} {docURL page="user/contributions/payment-processors"}
Expand Down Expand Up @@ -482,3 +483,6 @@
</script>
{/literal}
{/if}
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-amount-post"}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Contribute/Form/ContributionPage/Custom.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-custom-main"}
<div class="crm-block crm-form-block crm-contribution-contributionpage-custom-form-block">
<div class="help">
<p>{ts}You may want to collect information from contributors beyond what is required to make a contribution. For example, you may want to inquire about volunteer availability and skills. Add any number of fields to your contribution form by selecting CiviCRM Profiles (collections of fields) to include at the beginning of the page, and/or at the bottom.{/ts} {help id="contrib-profile"}</p>
Expand All @@ -46,3 +47,6 @@
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-custom-post"}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Contribute/Form/ContributionPage/Premium.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-premium-main"}
<div class="help">
{ts}Edit <strong>Premiums Settings</strong> to customize the title and introductory message (e.g ...in appreciation of your support, you will be able to select from a number of exciting thank-you gifts...). You can optionally provide a contact email address and/or phone number for inquiries.{/ts}
{ts}Then select and review the premiums that you want to offer on this contribution page.{/ts}
Expand Down Expand Up @@ -160,3 +161,6 @@
{/literal}
</script>
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-premium-post}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Contribute/Form/ContributionPage/Settings.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-settings-main"}
<div class="crm-block crm-form-block crm-contribution-contributionpage-settings-form-block">
<div class="help">
{if $action eq 0}
Expand Down Expand Up @@ -202,3 +203,6 @@
}
{/literal}
</script>
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-settings-post"}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Contribute/Form/ContributionPage/ThankYou.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-thankyou-main"}
<div class="crm-block crm-form-block crm-contribution-contributionpage-thankyou-form-block">
<div class="help">
<p>{ts}Use this form to configure the thank-you message and receipting options.{/ts} {help id="id_thank"}</p>
Expand Down Expand Up @@ -88,3 +89,6 @@
}
{/literal}
</script>
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-thankyou-post}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Contribute/Form/ContributionPage/Widget.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-widget-main"}
<h3>{ts}Configure Widget{/ts}</h3>
{if $showStatus}
<div class="messages status no-popup">
Expand Down Expand Up @@ -136,3 +137,6 @@
}
</script>
{/literal}
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-widget-post}
{/crmRegion}

0 comments on commit c6a04a0

Please sign in to comment.