Merge pull request #911 from agh1/membership-dash-counts-new
[civicrm-core.git] / templates / CRM / Campaign / Form / Petition.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
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
27<div class="crm-block crm-form-block crm-campaign-survey-form-block">
28<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
29{if $action eq 8}
30 <table class="form-layout">
31 <tr>
32 <td colspan="2">
33 <div class="status"><div class="icon inform-icon"></div>&nbsp;{ts}Are you sure you want to delete this Petition?{/ts}</div>
34 </td>
35 </tr>
36 </table>
37{else}
38 {if $action eq 1}
39 <div id="help">
40 {ts}Use this form to Add new Survey. You can create a new Activity type, specific to this Survey or select an existing activity type for this Survey.{/ts}
41 </div>
42 {/if}
43 <table class="form-layout">
44 <tr class="crm-campaign-survey-form-block-title">
45 <td class="label">{$form.title.label}</td>
46 <td>{$form.title.html}
47 </tr>
48 <tr class="crm-campaign-survey-form-block-instructions">
49 <td class="label">{$form.instructions.label}</td>
50 <td class="view-value">{$form.instructions.html}
51 </tr>
52 <tr class="crm-campaign-survey-form-block-campaign_id">
53 <td class="label">{$form.campaign_id.label}</td>
54 <td>{$form.campaign_id.html}
55 </tr>
56 <tr class="crm-campaign-survey-form-block-activity_type_id">
57 <td class="label">{$form.activity_type_id.label}</td>
58 <td>{$form.activity_type_id.html}
59 </tr>
60 <tr class="crm-campaign-survey-form-block-profile_id">
61 <td class="label">{$form.contact_profile_id.label}</td>
62 <td>{$form.contact_profile_id.html}&nbsp;<span class="profile-links"></span>
63 <div class="description">{ts}Fields about the contact you want to collect.{/ts}</div></td>
64 </tr>
65 <tr class="crm-campaign-survey-form-block-profile_id">
66 <td class="label">{$form.profile_id.label}</td>
67 <td>{$form.profile_id.html}&nbsp;<span class="profile-links"></span>
68 <div class="description">{ts}Fields about the petition.{/ts}</div>
69 <div class="profile-create">
70 <a href="{crmURL p='civicrm/admin/uf/group/add' q='reset=1&action=add'}" target="_blank">{ts}Click here for new profile{/ts}
71 </div>
72 </td>
73 </tr>
74 <tr class="crm-campaign-survey-form-block-thankyou_title">
75 <td class="label">{$form.thankyou_title.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='thankyou_title' id=$contributionPageID}{/if}</td>
76 <td>{$form.thankyou_title.html}<br />
77 <div class="description">{ts}This title will be displayed at the top of the thank-you page.{/ts}</div>
78 </td>
79 </tr>
80 <tr class="crm-campaign-survey-form-block-thankyou_text">
81 <td class="label">{$form.thankyou_text.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='thankyou_text' id=$contributionPageID}{/if}</td>
82 <td>{$form.thankyou_text.html}<br />
83 <div class="description">{ts}Enter text (and optional HTML layout tags) for the thank-you message that will appear at the top of the thank-you page.{/ts}</div>
84 </td>
85 </tr>
86 <tr class="crm-campaign-survey-form-block-bypass_confirm">
87 <td class="label">{$form.bypass_confirm.label}</td>
88 <td>{$form.bypass_confirm.html}
89 <div class="description">{ts}Disable the email confirmation for unverified contacts?{/ts}</div></td>
90 </tr>
91 <tr class="crm-campaign-survey-form-block-is_active">
92 <td class="label">{$form.is_active.label}</td>
93 <td>{$form.is_active.html}
94 <div class="description">{ts}Is this petition active?{/ts}</div></td>
95 </tr>
96 <tr class="crm-campaign-survey-form-block-is_default">
97 <td class="label">{$form.is_default.label}</td>
98 <td>{$form.is_default.html}
99 <div class="description">{ts}Is this the default petition?{/ts}</div></td>
100 </tr>
101 </table>
102{/if}
103<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
104</div>
105
106{*include profile link function*}
107{include file="CRM/common/buildProfileLink.tpl"}
108
109{literal}
110<script type="text/javascript">
111 //show edit profile field links
112 cj(function() {
113 // show edit for both contact and activity profile
114 cj('select[id$="profile_id"]').change( function( ) {
115 buildLinks( cj(this), cj(this).val());
116 });
117
118 // make sure we set edit links for both profiles when form loads
119 cj('select[id$="profile_id"]').each( function(e) {
120 buildLinks( cj(this), cj(this).val());
121 });
122 });
123</script>
124{/literal}