| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 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 | <div class="crm-block crm-form-block crm-campaign-form-block"> |
| 27 | |
| 28 | |
| 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> {ts}Are you sure you want to delete this Campaign?{/ts}</div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </table> |
| 37 | {else} |
| 38 | <div class="crm-submit-buttons"> |
| 39 | {include file="CRM/common/formButtons.tpl" location="top"} |
| 40 | </div> |
| 41 | |
| 42 | <table class="form-layout-compressed"> |
| 43 | <tr class="crm-campaign-form-block-title"> |
| 44 | <td class="label">{$form.title.label}</td> |
| 45 | <td class="view-value">{$form.title.html}</td> |
| 46 | </tr> |
| 47 | <tr class="crm-campaign-form-block-campaign_type_id"> |
| 48 | <td class="label">{$form.campaign_type_id.label}</td> |
| 49 | <td class="view-value">{$form.campaign_type_id.html}</td> |
| 50 | </tr> |
| 51 | <tr class="crm-campaign-form-block-description"> |
| 52 | <td class="label">{$form.description.label}</td> |
| 53 | <td class="view-value">{$form.description.html}</td> |
| 54 | </tr> |
| 55 | <tr class="crm-campaign-form-block-includeGroups"> |
| 56 | <td class="label">{$form.includeGroups.label}</td> |
| 57 | <td>{$form.includeGroups.html}</td> |
| 58 | </tr> |
| 59 | <tr class="crm-campaign-form-block-start_date"> |
| 60 | <td class="label">{$form.start_date.label}</td> |
| 61 | <td class="view-value">{include file="CRM/common/jcalendar.tpl" elementName=start_date} |
| 62 | </td> |
| 63 | </tr> |
| 64 | <tr class="crm-campaign-form-block-end_date"> |
| 65 | <td class="label">{$form.end_date.label}</td> |
| 66 | <td class="view-value">{include file="CRM/common/jcalendar.tpl" elementName=end_date}</td> |
| 67 | </tr> |
| 68 | <tr class="crm-campaign-form-block-status_id"> |
| 69 | <td class="label">{$form.status_id.label}</td> |
| 70 | <td class="view-value">{$form.status_id.html}</td> |
| 71 | </tr> |
| 72 | <tr class="crm-campaign-form-block-goal_general"> |
| 73 | <td class="label">{$form.goal_general.label}</td> |
| 74 | <td class="view-value">{$form.goal_general.html}</td> |
| 75 | </tr> |
| 76 | <tr class="crm-campaign-form-block-goal_revenue"> |
| 77 | <td class="label">{$form.goal_revenue.label}</td> |
| 78 | <td class="view-value">{$form.goal_revenue.html}</td> |
| 79 | </tr> |
| 80 | <tr class="crm-campaign-form-block-external_identifier"> |
| 81 | <td class="label">{$form.external_identifier.label}</td> |
| 82 | <td class="view-value">{$form.external_identifier.html}</td> |
| 83 | </tr> |
| 84 | |
| 85 | {* Suppress parent-child feature for now. dgg *} |
| 86 | {* |
| 87 | <tr class="crm-campaign-form-block-parent_id"> |
| 88 | <td class="label">{$form.parent_id.label}</td> |
| 89 | <td class="view-value">{$form.parent_id.html}</td> |
| 90 | </tr> *} |
| 91 | |
| 92 | <tr class="crm-campaign-form-block-is_active"> |
| 93 | <td class="label">{$form.is_active.label}</td> |
| 94 | <td class="view-value">{$form.is_active.html}</td> |
| 95 | </tr> |
| 96 | </table> |
| 97 | |
| 98 | <div id="customData"></div> |
| 99 | |
| 100 | {/if} |
| 101 | <div class="crm-submit-buttons"> |
| 102 | {include file="CRM/common/formButtons.tpl" location="bottom"} |
| 103 | </div> |
| 104 | </div> |
| 105 | |
| 106 | {* include custom data js *} |
| 107 | {include file="CRM/common/customData.tpl"} |
| 108 | |
| 109 | {literal} |
| 110 | <script type="text/javascript"> |
| 111 | CRM.$(function($) { |
| 112 | {/literal}{if $customDataSubType} |
| 113 | CRM.buildCustomData( '{$customDataType}', {$customDataSubType} ); |
| 114 | {else} |
| 115 | CRM.buildCustomData( '{$customDataType}' ); |
| 116 | {/if} |
| 117 | {literal} |
| 118 | }); |
| 119 | </script> |
| 120 | {/literal} |