Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
4 | +--------------------------------------------------------------------+ |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
6 | +--------------------------------------------------------------------+ | |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
27 | <table class="form-layout"> | |
28 | <tr class="crm-contribution-contributionpage-pcp-form-block-pcp_active"> | |
29 | <td class="label"> </td> | |
30 | <td>{$form.pcp_active.html} {$form.pcp_active.label}</td> | |
31 | </tr> | |
32 | </table> | |
33 | ||
34 | <div class="spacer"></div> | |
35 | ||
36 | <div id="pcpFields"> | |
37 | {crmRegion name="pcp-form-pcp-fields"} | |
38 | {if $form.target_entity_type} | |
39 | <table class="form-layout"> | |
40 | <tr class="crm-contribution-contributionpage-pcp-form-block-target_entity_type"> | |
41 | <td class="label">{$form.target_entity_type.label} <span class="marker"> *</span></td> | |
42 | <td>{$form.target_entity_type.html} {help id="id-target_entity_type"}</td> | |
43 | </tr> | |
44 | </table> | |
45 | <div id="pcpDetailFields" {if $form.target_entity_type.value[0] == 'event'} style="display:none;"{/if}> | |
46 | <table class="form-layout"> | |
47 | <tr class="crm-contribution-contributionpage-pcp-form-block-target_entity_id" id="pcpDetailFields"> | |
48 | <td class="label">{$form.target_entity_id.label} <span class="marker"> *</span></td> | |
49 | <td>{$form.target_entity_id.html} {help id="id-target_entity_id"}</td> | |
50 | </tr> | |
51 | </table> | |
52 | </div> | |
53 | {/if} | |
54 | ||
55 | <table class="form-layout"> | |
56 | <tr class="crm-contribution-contributionpage-pcp-form-block-is_approval_needed"> | |
57 | <td class="label">{$form.is_approval_needed.label}</td> | |
58 | <td>{$form.is_approval_needed.html} {help id="id-approval_needed"}</td> | |
59 | </tr> | |
60 | <tr class="crm-contribution-contributionpage-pcp-form-block-notify_email"> | |
61 | <td class="label">{$form.notify_email.label}</td> | |
62 | <td>{$form.notify_email.html} {help id="id-notify"}</td> | |
63 | </tr> | |
64 | <tr class="crm-contribution-contributionpage-pcp-form-block-supporter_profile_id"> | |
65 | <td class="label">{$form.supporter_profile_id.label}</td> | |
66 | <td>{$form.supporter_profile_id.html} {help id="id-supporter_profile"}</td> | |
67 | </tr> | |
68 | <tr class="crm-contribution-contributionpage-pcp-form-block-is_tellfriend_enabled"> | |
69 | <td class="label">{$form.is_tellfriend_enabled.label}</td> | |
70 | <td>{$form.is_tellfriend_enabled.html} {help id="id-is_tellfriend"}</td> | |
71 | </tr> | |
72 | <tr id="tflimit" class="crm-contribution-contributionpage-pcp-form-block-tellfriend_limit"> | |
73 | <td class="label">{$form.tellfriend_limit.label}</td> | |
74 | <td>{$form.tellfriend_limit.html|crmAddClass:four} {help id="id-tellfriend_limit"}</td> | |
75 | </tr> | |
76 | <tr class="crm-contribution-contributionpage-pcp-form-block-link_text"> | |
77 | <td class="label">{$form.link_text.label}</td> | |
2f7f62dd DG |
78 | <td> |
79 | {$form.link_text.html|crmAddClass:huge} {help id="id-link_text"}<br /> | |
80 | <span class="description"> | |
81 | {if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'} | |
82 | {ts}You can also place additional links (or menu items) allowing constituents to create their own fundraising pages using the following URL:{/ts}<br /> | |
33b09fca | 83 | <em>{crmURL a=1 fe=1 p='civicrm/contribute/campaign' q="action=add&reset=1&pageId=`$pageId`&component=`$context`"}</em> |
2f7f62dd DG |
84 | {elseif $config->userFramework EQ 'Joomla'} |
85 | {ts}You can also create front-end links (or menu items) allowing constituents to create their own fundraising pages using the Menu Manager. Select <strong>Contributions » Personal Campaign Pages</strong> and then select this event.{/ts} | |
86 | {/if} | |
87 | </span> | |
88 | </td> | |
6a488035 TO |
89 | </tr> |
90 | </table> | |
91 | {/crmRegion} | |
92 | </div> | |
93 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
94 | </div> | |
95 | {include file="CRM/common/showHideByFieldValue.tpl" | |
96 | trigger_field_id = "pcp_active" | |
97 | trigger_value = "true" | |
98 | target_element_id = "pcpFields" | |
99 | target_element_type = "block" | |
100 | field_type = "radio" | |
101 | invert = "false" | |
102 | } | |
103 | {include file="CRM/common/showHideByFieldValue.tpl" | |
104 | trigger_field_id = "is_tellfriend_enabled" | |
105 | trigger_value = "true" | |
106 | target_element_id = "tflimit" | |
107 | target_element_type = "table-row" | |
108 | field_type = "radio" | |
109 | invert = "false" | |
110 | } | |
111 | ||
112 | {* include jscript to warn if unsaved form field changes *} | |
113 | {include file="CRM/common/formNavigate.tpl"} |