commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / templates / CRM / Campaign / Form / Survey / Main.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 {if $cdType }
28 {include file="CRM/Custom/Form/CustomData.tpl"}
29 {else}
30 <div class="crm-block crm-form-block crm-campaign-survey-main-form-block">
31 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
32 {if $action eq 1}
33 <div id="help">
34 {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}
35 </div>
36 {/if}
37 <table class="form-layout-compressed">
38 <tr class="crm-campaign-survey-main-form-block-title">
39 <td class="label">{$form.title.label}</td>
40 <td class="view-value">{$form.title.html}
41 <div class="description">{ts}Title of the survey.{/ts}</div></td>
42 </tr>
43 <tr class="crm-campaign-survey-main-form-block-campaign_id">
44 <td class="label">{$form.campaign_id.label}</td>
45 <td class="view-value">{$form.campaign_id.html} &nbsp; <span class="action-link crm-campaign-survey-new_campaign_link"><a href="{crmURL p='civicrm/campaign/add' q='reset=1'}" target="_blank" title="{ts}Opens New Campaign form in a separate window{/ts}">{ts}new campaign{/ts}</a></span>
46 <div class="description">{ts}Select the campaign for which survey is created.{/ts}</div>
47 </td>
48 </tr>
49 <tr class="crm-campaign-survey-main-form-block-activity_type_id">
50 <td class="label">{$form.activity_type_id.label}</td>
51 <td class="view-value">{$form.activity_type_id.html}
52 <div class="description">{ts}Select the Activity Type.{/ts}</div></td>
53 </tr>
54 <tr class="crm-campaign-survey-main-form-block-instructions">
55 <td class="label">{$form.instructions.label}</td>
56 <td class="view-value">{$form.instructions.html}
57 </tr>
58 <tr class="crm-campaign-survey-main-form-block-default_number_of_contacts">
59 <td class="label">{$form.default_number_of_contacts.label}</td>
60 <td class="view-value">{$form.default_number_of_contacts.html}
61 <div class="description">{ts}Maximum number of contacts that can be reserved for an interviewer at one time.{/ts}</div></td>
62 </tr>
63 <tr class="crm-campaign-survey-main-form-block-max_number_of_contacts">
64 <td class="label">{$form.max_number_of_contacts.label}</td>
65 <td class="view-value">{$form.max_number_of_contacts.html}
66 <div class="description">{ts}Maximum total number of contacts that can be in a reserved state for an interviewer.{/ts}</div></td>
67 </tr>
68 <tr class="crm-campaign-survey-main-form-block-release_frequency">
69 <td class="label">{$form.release_frequency.label}</td>
70 <td class="view-value">{$form.release_frequency.html}
71 <div class="description">{ts}Reserved respondents are released if they haven't been surveyed within this number of days. The Respondent Processor script must be run periodically to release respondents.{/ts} {docURL page="Managing Scheduled Jobs" resource="wiki"}</div> </td>
72 </tr>
73 <tr class="crm-campaign-survey-main-form-block-is_active">
74 <td class="label">{$form.is_active.label}</td>
75 <td class="view-value">{$form.is_active.html}
76 <div class="description">{ts}Is this survey active?{/ts}</div></td>
77 </tr>
78 <tr class="crm-campaign-survey-main-form-block-is_default">
79 <td class="label">{$form.is_default.label}</td>
80 <td class="view-value">{$form.is_default.html}
81 <div class="description">{ts}Is this the default survey?{/ts}</div></td>
82 </tr>
83 <tr class="crm-campaign-form-block-custom_data">
84 <td colspan="2">
85 <div id="customData"></div>
86 </td>
87 </tr>
88 </table>
89 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
90 </div>
91
92 {*include profile link function*}
93 {include file="CRM/common/buildProfileLink.tpl"}
94
95 {literal}
96 <script type="text/javascript">
97 //show edit profile field links
98 CRM.$(function($) {
99 // show edit for profile
100 $('select[id="profile_id"]').change( function( ) {
101 buildLinks( $(this), $(this).val());
102 });
103
104 // show edit links on form loads
105 var profileField = $('select[id="profile_id"]');
106 buildLinks( profileField, profileField.val());
107 });
108 </script>
109 {/literal}
110 {* editor has already been included in TabHeader.tpl so set flag true *}
111 {include file="CRM/common/customData.tpl" includeWysiwygEditor=true}
112 {literal}
113 <script type="text/javascript">
114 CRM.$(function($) {
115 {/literal}
116 CRM.buildCustomData( 'Survey' );
117 {literal}
118 });
119 </script>
120 {/literal}
121
122 {/if}