Merge pull request #1243 from yashodha/4.4.CRM-13112
[civicrm-core.git] / templates / CRM / Campaign / Form / Campaign.tpl
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 <div class="crm-block crm-form-block crm-campaign-form-block">
27
28 {* load the custom data *}
29 {if $cdType}
30 {include file="CRM/Custom/Form/CustomData.tpl"}
31 {else}
32
33 {if $action eq 8}
34 <table class="form-layout">
35 <tr>
36 <td colspan="2">
37 <div class="status"><div class="icon inform-icon"></div>&nbsp;{ts}Are you sure you want to delete this Campaign?{/ts}</div>
38 </td>
39 </tr>
40 </table>
41 {else}
42 <div class="crm-submit-buttons">
43 {include file="CRM/common/formButtons.tpl" location="top"}
44 </div>
45
46 <table class="form-layout-compressed">
47 <tr class="crm-campaign-form-block-title">
48 <td class="label">{$form.title.label}</td>
49 <td class="view-value">{$form.title.html}</td>
50 </tr>
51 <tr class="crm-campaign-form-block-campaign_type_id">
52 <td class="label">{$form.campaign_type_id.label}</td>
53 <td class="view-value">{$form.campaign_type_id.html}</td>
54 </tr>
55 <tr class="crm-campaign-form-block-description">
56 <td class="label">{$form.description.label}</td>
57 <td class="view-value">{$form.description.html}</td>
58 </tr>
59 <tr class="crm-campaign-form-block-includeGroups">
60 <td class="label">{$form.includeGroups.label}</td>
61 <td>{$form.includeGroups.html}</td>
62 </tr>
63 <tr class="crm-campaign-form-block-start_date">
64 <td class="label">{$form.start_date.label}</td>
65 <td class="view-value">{include file="CRM/common/jcalendar.tpl" elementName=start_date}
66 </td>
67 </tr>
68 <tr class="crm-campaign-form-block-end_date">
69 <td class="label">{$form.end_date.label}</td>
70 <td class="view-value">{include file="CRM/common/jcalendar.tpl" elementName=end_date}</td>
71 </tr>
72 <tr class="crm-campaign-form-block-status_id">
73 <td class="label">{$form.status_id.label}</td>
74 <td class="view-value">{$form.status_id.html}</td>
75 </tr>
76 <tr class="crm-campaign-form-block-goal_general">
77 <td class="label">{$form.goal_general.label}</td>
78 <td class="view-value">{$form.goal_general.html}</td>
79 </tr>
80 <tr class="crm-campaign-form-block-goal_revenue">
81 <td class="label">{$form.goal_revenue.label}</td>
82 <td class="view-value">{$form.goal_revenue.html}</td>
83 </tr>
84 <tr class="crm-campaign-form-block-external_identifier">
85 <td class="label">{$form.external_identifier.label}</td>
86 <td class="view-value">{$form.external_identifier.html}</td>
87 </tr>
88
89 {* Suppress parent-child feature for now. dgg *}
90 {*
91 <tr class="crm-campaign-form-block-parent_id">
92 <td class="label">{$form.parent_id.label}</td>
93 <td class="view-value">{$form.parent_id.html}</td>
94 </tr> *}
95
96 <tr class="crm-campaign-form-block-is_active">
97 <td class="label">{$form.is_active.label}</td>
98 <td class="view-value">{$form.is_active.html}</td>
99 </tr>
100 </table>
101
102 <div id="customData"></div>
103
104 {/if}
105 <div class="crm-submit-buttons">
106 {include file="CRM/common/formButtons.tpl" location="bottom"}
107 </div>
108 </div>
109
110 {* include custom data js *}
111 {include file="CRM/common/customData.tpl"}
112
113 {literal}
114 <script type="text/javascript">
115 cj( document ).ready( function( ) {
116 {/literal}{if $customDataSubType}
117 CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
118 {else}
119 CRM.buildCustomData( '{$customDataType}' );
120 {/if}
121 {literal}
122 });
123 </script>
124 {/literal}
125
126
127 {/if} {* load custom data *}
128