Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | |
2 | {* | |
3 | +--------------------------------------------------------------------+ | |
39de6fd5 | 4 | | CiviCRM version 4.6 | |
6a488035 | 5 | +--------------------------------------------------------------------+ |
e7112fa7 | 6 | | Copyright CiviCRM LLC (c) 2004-2015 | |
6a488035 TO |
7 | +--------------------------------------------------------------------+ |
8 | | This file is a part of CiviCRM. | | |
9 | | | | |
10 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
11 | | under the terms of the GNU Affero General Public License | | |
12 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
13 | | | | |
14 | | CiviCRM is distributed in the hope that it will be useful, but | | |
15 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
16 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
17 | | See the GNU Affero General Public License for more details. | | |
18 | | | | |
19 | | You should have received a copy of the GNU Affero General Public | | |
20 | | License and the CiviCRM Licensing Exception along | | |
21 | | with this program; if not, contact CiviCRM LLC | | |
22 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
23 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
24 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
25 | +--------------------------------------------------------------------+ | |
26 | *} | |
27 | <div class="crm-block crm-form-block crm-contribution-contributionpage-settings-form-block"> | |
28 | <div id="help"> | |
29 | {if $action eq 0} | |
30 | <p>{ts}This is the first step in creating a new online Contribution Page. You can create one or more different Contribution Pages for different purposes, audiences, campaigns, etc. Each page can have it's own introductory message, pre-configured contribution amounts, custom data collection fields, etc.{/ts}</p> | |
31 | <p>{ts}In this step, you will configure the page title, financial type (donation, campaign contribution, etc.), goal amount, and introductory message. You will be able to go back and modify all aspects of this page at any time after completing the setup wizard.{/ts}</p> | |
32 | {else} | |
33 | {ts}Use this form to edit the page title, financial type (e.g. donation, campaign contribution, etc.), goal amount, introduction, and status (active/inactive) for this online contribution page.{/ts} | |
34 | {/if} | |
35 | </div> | |
36 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
37 | <table class="form-layout-compressed"> | |
38 | <tr class="crm-contribution-contributionpage-settings-form-block-title"><td class="label">{$form.title.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='title' id=$contributionPageID}{/if}</td><td>{$form.title.html}<br/> | |
39 | <span class="description">{ts}This title will be displayed at the top of the page.<br />Please use only alphanumeric, spaces, hyphens and dashes for Title.{/ts}</td> | |
40 | </tr> | |
b2603e29 | 41 | <tr class="crm-contribution-contributionpage-settings-form-block-financial_type_id"><td class="label">{$form.financial_type_id.label}</td><td>{$form.financial_type_id.html}<br /> |
6a488035 TO |
42 | <span class="description">{ts}Select the corresponding financial type for contributions made using this page.{/ts}</span> {help id="id-financial_type"}</td> |
43 | </tr> | |
44 | ||
45 | {* CRM-7362 --add campaign to contribution page *} | |
46 | {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" | |
47 | campaignTrClass="crm-contribution-contributionpage-settings-form-block-campaign_id"} | |
48 | ||
49 | <tr class="crm-contribution-contributionpage-settings-form-block-is_organization"><td> </td><td>{$form.is_organization.html} {$form.is_organization.label} {help id="id-is_organization"}</td></tr> | |
50 | <tr id="for_org_option" class="crm-contribution-form-block-is_organization"> | |
51 | <td> </td> | |
52 | <td> | |
53 | <table class="form-layout-compressed"> | |
54 | <tr class="crm-contribution-for_organization_help"> | |
55 | <td class="description" colspan="2"> | |
56 | {capture assign="profileURL"}{crmURL p='civicrm/admin/uf/group' q='reset=1'}{/capture} | |
57 | {if $invalidProfiles} | |
58 | {ts 1=$profileURL}You must <a href="%1">configure a valid organization profile</a> in order to allow individuals to contribute on behalf of an organization. Valid profiles include Contact and / or Organization fields, and may include Contribution and Membership fields.{/ts} | |
59 | {else} | |
5667ce5a | 60 | {ts 1=$profileURL}To change the organization data collected use the "On Behalf Of Organization" profile (<a href="%1">Administer > Customize Data and Screens > Profiles</a>).{/ts} |
6a488035 TO |
61 | {/if} |
62 | </td> | |
63 | </tr> | |
64 | {if !$invalidProfiles} | |
65 | <tr class="crm-contribution-onbehalf_profile_id"> | |
66 | <td class="label">{$form.onbehalf_profile_id.label}</td> | |
67 | <td>{$form.onbehalf_profile_id.html}</td> | |
68 | </tr> | |
69 | {/if} | |
70 | <tr id="for_org_text" class="crm-contribution-contributionpage-settings-form-block-for_organization"> | |
71 | <td class="label">{$form.for_organization.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='for_organization' id=$contributionPageID}{/if}</td> | |
72 | <td>{$form.for_organization.html}<br /> | |
73 | <span class="description">{ts}Text displayed next to the checkbox on the contribution form.{/ts}</span> | |
74 | </td> | |
75 | </tr> | |
76 | <tr class="crm-contribution-contributionpage-settings-form-block-is_for_organization"> | |
77 | <td> </td> | |
78 | <td>{$form.is_for_organization.html}<br /> | |
79 | <span class="description">{ts}Check 'Required' to force ALL users to contribute/signup on behalf of an organization.{/ts}</span> | |
80 | </td> | |
81 | </tr> | |
82 | </table> | |
83 | </td> | |
84 | </tr> | |
85 | <tr class="crm-contribution-contributionpage-settings-form-block-intro_text"> | |
86 | <td class ="label">{$form.intro_text.label}<br /> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='intro_text' id=$contributionPageID}{/if} {help id="id-intro_msg"}</td><td>{$form.intro_text.html}</td> | |
87 | </tr> | |
88 | <tr class="crm-contribution-contributionpage-settings-form-block-footer_text"> | |
89 | <td class ="label">{$form.footer_text.label}<br /> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='footer_text' id=$contributionPageID}{/if} {help id="id-footer_msg"}</td><td>{$form.footer_text.html}</td> | |
90 | </tr> | |
91 | <tr class="crm-contribution-contributionpage-settings-form-block-goal_amount"> | |
92 | <td class ="label">{$form.goal_amount.label}</td><td>{$form.goal_amount.html} {help id="id-goal_amount"}</td> | |
93 | </tr> | |
94 | <tr class="crm-contribution-contributionpage-settings-form-block-start_date"> | |
95 | <td class ="label">{$form.start_date.label} {help id="id-start_date"}</td> | |
96 | <td> | |
97 | {include file="CRM/common/jcalendar.tpl" elementName=start_date} | |
98 | </td> | |
99 | </tr> | |
100 | <tr class="crm-contribution-contributionpage-settings-form-block-end_date"> | |
101 | <td class ="label">{$form.end_date.label}</td> | |
102 | <td> | |
103 | {include file="CRM/common/jcalendar.tpl" elementName=end_date} | |
104 | </td> | |
105 | </tr> | |
106 | <tr class="crm-contribution-contributionpage-settings-form-block-honor_block_is_active"> | |
107 | <td> </td><td>{$form.honor_block_is_active.html}{$form.honor_block_is_active.label} {help id="id-honoree_section"}</td> | |
108 | </tr> | |
109 | </table> | |
110 | <table class="form-layout-compressed" id="honor"> | |
133e2c99 | 111 | <tr class="crm-contribution-contributionpage-settings-form-block-honor_block_title"> |
112 | <td class="label"> | |
113 | {$form.honor_block_title.label} | |
133e2c99 | 114 | </td> |
115 | <td> | |
116 | {$form.honor_block_title.html}<br /> | |
117 | <span class="description">{ts}Title for the Honoree section (e.g. "Honoree Information").{/ts}</span> | |
118 | </td> | |
119 | </tr> | |
120 | <tr class="crm-contribution-contributionpage-settings-form-block-honor_block_text"> | |
121 | <td class="label"> | |
122 | {crmAPI var='result' entity='OptionGroup' action='get' sequential=1 name='soft_credit_type'} | |
123 | {$form.honor_block_text.label} | |
133e2c99 | 124 | </td> |
125 | <td> | |
126 | {$form.honor_block_text.html}<br /> | |
127 | <span class="description">{ts}Optional explanatory text for the Honoree section (displayed above the Honoree fields).{/ts}</span> | |
128 | </td> | |
6a488035 | 129 | </tr> |
133e2c99 | 130 | <tr class="crm-contribution-contributionpage-settings-form-block-honor_soft_credit_types"> |
131 | <td class="label"> | |
8381af80 | 132 | {$form.soft_credit_types.label} |
133 | </td> | |
134 | <td> | |
955b4327 | 135 | {$form.soft_credit_types.html} |
133e2c99 | 136 | </td> |
6a488035 | 137 | </tr> |
133e2c99 | 138 | <tr class="crm-contribution-contributionpage-custom-form-block-custom_pre_id"> |
139 | <td class="label"> | |
140 | {$form.honoree_profile.label} | |
141 | </td> | |
142 | <td class="html-adjust"> | |
143 | {$form.honoree_profile.html} | |
144 | <span class="description">{ts}Profile to be included in the honoree section{/ts}</span> | |
145 | </td> | |
146 | </tr> | |
6a488035 TO |
147 | </table> |
148 | <table class="form-layout-compressed"> | |
149 | <tr class="crm-contribution-contributionpage-settings-form-block-is_confirm_enabled"> | |
150 | <td> </td> | |
151 | <td>{$form.is_confirm_enabled.html} {$form.is_confirm_enabled.label}<br /> | |
152 | <span class="description">{ts}If you disable this contributions will be processed immediately after submitting the contribution form.{/ts}</span></td> | |
153 | </tr> | |
154 | <tr class="crm-contribution-contributionpage-settings-form-block-is_share"> | |
155 | <td> </td> | |
156 | <td>{$form.is_share.html} {$form.is_share.label} {help id="id-is_share"}</td> | |
157 | </tr> | |
158 | <tr class="crm-contribution-contributionpage-settings-form-block-is_active"><td> </td><td>{$form.is_active.html} {$form.is_active.label}<br /> | |
159 | {if $contributionPageID} | |
160 | <span class="description"> | |
7e8bc026 | 161 | {if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'} |
6a488035 | 162 | {ts}When your page is active, you can link people to the page by copying and pasting the following URL:{/ts}<br /> |
7e8bc026 | 163 | <strong>{crmURL a=1 fe=1 p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageID`"}</strong> |
6a488035 TO |
164 | {elseif $config->userFramework EQ 'Joomla'} |
165 | {ts 1=$title}When your page is active, create front-end links to the contribution page using the Menu Manager. Select <strong>Administer CiviCRM » CiviContribute » Manage Contribution Pages</strong> and select <strong>%1</strong> for the contribution page.{/ts} | |
166 | {/if} | |
167 | </span> | |
168 | {/if} | |
169 | </td> | |
170 | </tr> | |
171 | </table> | |
172 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
173 | </div> | |
174 | ||
175 | {include file="CRM/common/showHideByFieldValue.tpl" | |
176 | trigger_field_id ="is_organization" | |
177 | trigger_value = 1 | |
178 | target_element_id ="for_org_text" | |
179 | target_element_type ="table-row" | |
180 | field_type ="radio" | |
181 | invert = 0 | |
182 | } | |
183 | ||
184 | {include file="CRM/common/showHideByFieldValue.tpl" | |
185 | trigger_field_id ="is_organization" | |
186 | trigger_value = 1 | |
187 | target_element_id ="for_org_option" | |
188 | target_element_type ="table-row" | |
189 | field_type ="radio" | |
190 | invert = 0 | |
191 | } | |
192 | <script type="text/javascript"> | |
193 | showHonor(); | |
194 | {literal} | |
195 | function showHonor() { | |
196 | var checkbox = document.getElementsByName("honor_block_is_active"); | |
197 | if (checkbox[0].checked) { | |
198 | document.getElementById("honor").style.display = "block"; | |
199 | } else { | |
200 | document.getElementById("honor").style.display = "none"; | |
201 | } | |
202 | } | |
203 | {/literal} | |
204 | </script> |