2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
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>
30 <table class="form-layout">
34 <div class="icon inform-icon"></div>
35 {ts}Are you sure you want to delete this Petition?{/ts}</div>
42 {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}
45 <table class="form-layout">
46 <tr class="crm-campaign-survey-form-block-title">
47 <td class="label">{$form.title.label}</td>
48 <td>{$form.title.html}
50 <tr class="crm-campaign-survey-form-block-instructions">
51 <td class="label">{$form.instructions.label}</td>
52 <td class="view-value">{$form.instructions.html}
54 <tr class="crm-campaign-survey-form-block-campaign_id">
55 <td class="label">{$form.campaign_id.label}</td>
56 <td>{$form.campaign_id.html}
58 <tr class="crm-campaign-survey-form-block-activity_type_id">
59 <td class="label">{$form.activity_type_id.label}</td>
60 <td>{$form.activity_type_id.html}
62 <tr class="crm-campaign-survey-form-block-profile_id">
63 <td class="label">{$form.contact_profile_id.label}</td>
64 <td>{$form.contact_profile_id.html} <span class="profile-links"></span>
66 <div class="description">{ts}Fields about the contact you want to collect.{/ts}</div>
69 <tr class="crm-campaign-survey-form-block-profile_id">
70 <td class="label">{$form.profile_id.label}</td>
71 <td>{$form.profile_id.html} <span class="profile-links"></span>
73 <div class="description">{ts}Fields about the petition.{/ts}</div>
74 <div class="profile-create">
75 <a href="{crmURL p='civicrm/admin/uf/group/add' q='reset=1&action=add'}"
76 target="_blank">{ts}Click here for new profile{/ts}
80 <tr class="crm-campaign-survey-form-block-thankyou_title">
82 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>
83 <td>{$form.thankyou_title.html}<br/>
85 <div class="description">{ts}This title will be displayed at the top of the thank-you page.{/ts}</div>
88 <tr class="crm-campaign-survey-form-block-thankyou_text">
90 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>
91 <td>{$form.thankyou_text.html}<br/>
94 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>
97 <tr class="crm-campaign-survey-form-block-bypass_confirm">
98 <td class="label">{$form.bypass_confirm.label}</td>
99 <td>{$form.bypass_confirm.html}
100 <div class="description">{ts}Disable the email confirmation for unverified contacts?{/ts}</div>
103 <tr class="crm-campaign-survey-form-block-is_share">
104 <td class="label">{$form.is_share.label}</td>
105 <td>{$form.is_share.html}
107 <tr class="crm-campaign-survey-form-block-is_active">
108 <td class="label">{$form.is_active.label}</td>
109 <td>{$form.is_active.html}
110 <div class="description">{ts}Is this petition active?{/ts}</div>
113 <tr class="crm-campaign-survey-form-block-is_default">
114 <td class="label">{$form.is_default.label}</td>
115 <td>{$form.is_default.html}
116 <div class="description">{ts}Is this the default petition?{/ts}</div>
121 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
124 {*include profile link function*}
125 {include file="CRM/common/buildProfileLink.tpl"}
128 <script type="text/javascript">
129 //show edit profile field links
131 // show edit for both contact and activity profile
132 $('select[id$="profile_id"]').change(function () {
133 buildLinks($(this), $(this).val());
136 // make sure we set edit links for both profiles when form loads
137 $('select[id$="profile_id"]').each(function (e) {
138 buildLinks($(this), $(this).val());