2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
11 <div class="crm-block crm-form-block crm-campaign-survey-form-block">
12 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
14 <table class="form-layout">
18 {icon icon="fa-info-circle"}{/icon}
19 {ts}Are you sure you want to delete this Petition?{/ts}</div>
26 {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}
29 <table class="form-layout">
30 <tr class="crm-campaign-survey-form-block-title">
31 <td class="label">{$form.title.label}</td>
32 <td>{$form.title.html}
34 <tr class="crm-campaign-survey-form-block-instructions">
35 <td class="label">{$form.instructions.label}</td>
36 <td class="view-value">{$form.instructions.html}
38 <tr class="crm-campaign-survey-form-block-campaign_id">
39 <td class="label">{$form.campaign_id.label}</td>
40 <td>{$form.campaign_id.html}
42 <tr class="crm-campaign-survey-form-block-activity_type_id">
43 <td class="label">{$form.activity_type_id.label}</td>
44 <td>{$form.activity_type_id.html}
46 <tr class="crm-campaign-survey-form-block-profile_id">
47 <td class="label">{$form.contact_profile_id.label}</td>
48 <td>{$form.contact_profile_id.html} <span class="profile-links"></span>
50 <div class="description">{ts}Fields about the contact you want to collect.{/ts}</div>
53 <tr class="crm-campaign-survey-form-block-profile_id">
54 <td class="label">{$form.profile_id.label}</td>
55 <td>{$form.profile_id.html} <span class="profile-links"></span>
57 <div class="description">{ts}Fields about the petition.{/ts}</div>
58 <div class="profile-create">
59 <a href="{crmURL p='civicrm/admin/uf/group/add' q='reset=1&action=add'}"
60 target="_blank">{ts}Click here for new profile{/ts}
64 <tr class="crm-campaign-survey-form-block-thankyou_title">
66 class="label">{$form.thankyou_title.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_survey' field='thankyou_title' id=$surveyId}{/if}</td>
67 <td>{$form.thankyou_title.html}<br/>
69 <div class="description">{ts}This title will be displayed at the top of the thank-you page.{/ts}</div>
72 <tr class="crm-campaign-survey-form-block-thankyou_text">
74 class="label">{$form.thankyou_text.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_survey' field='thankyou_text' id=$surveyId}{/if}</td>
75 <td>{$form.thankyou_text.html}<br/>
78 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>
81 <tr class="crm-campaign-survey-form-block-bypass_confirm">
82 <td class="label">{$form.bypass_confirm.label}</td>
83 <td>{$form.bypass_confirm.html}
84 <div class="description">{ts}Disable the email confirmation for unverified contacts?{/ts}</div>
87 <tr class="crm-campaign-survey-form-block-is_share">
88 <td class="label">{$form.is_share.label}</td>
89 <td>{$form.is_share.html}
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>
97 <tr class="crm-campaign-survey-form-block-is_default">
98 <td class="label">{$form.is_default.label}</td>
99 <td>{$form.is_default.html}
100 <div class="description">{ts}Is this the default petition?{/ts}</div>
104 {include file="CRM/common/customDataBlock.tpl"}
106 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
109 {*include profile link function*}
110 {include file="CRM/common/buildProfileLink.tpl"}
113 <script type="text/javascript">
114 //show edit profile field links
116 // show edit for both contact and activity profile
117 $('select[id$="profile_id"]').change(function () {
118 buildLinks($(this), $(this).val());
121 // make sure we set edit links for both profiles when form loads
122 $('select[id$="profile_id"]').each(function (e) {
123 buildLinks($(this), $(this).val());