2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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 +--------------------------------------------------------------------+
26 <div class="crm-block crm-form-block crm-mailing-upload-form-block">
27 {include file="CRM/common/WizardHeader.tpl"}
30 {ts}You can either <strong>upload</strong> the sms content from your computer OR <strong>compose</strong> the content on this screen.{/ts} {help id="content-intro"}
33 {include file="CRM/Mailing/Form/Count.tpl"}
35 <table class="form-layout-compressed">
36 <tr class="crm-mailing-upload-form-block-sms_provider_id"><td class="label">{$form.sms_provider_id.label}</td>
37 <td>{$form.sms_provider_id.html} {help id ="id-sms_provider" isAdmin=$isAdmin}</td>
40 <tr class="crm-mailing-upload-form-block-template">
41 <td class="label">{$form.template.label}</td>
42 <td>{$form.template.html}</td>
44 <tr class="crm-mailing-upload-form-block-upload_type"><td></td><td colspan="2">{$form.upload_type.label} {$form.upload_type.html} {help id="upload-compose"}</td></tr>
47 <fieldset id="compose_id"><legend>{ts}Compose On-screen{/ts}</legend>
48 {include file="CRM/Contact/Form/Task/SMSCommon.tpl" upload=1 noAttach=1}
51 <fieldset id="upload_id"><legend>{ts}Upload Content{/ts}</legend>
52 <table class="form-layout-compressed">
53 <tr class="crm-mailing-upload-form-block-textFile">
54 <td class="label">{$form.textFile.label}</td>
55 <td>{$form.textFile.html}<br />
56 <span class="description">{ts}Browse to the <strong>TEXT</strong> message file you have prepared for this SMS.{/ts}<br /> {$docLink}</span>
62 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
63 </div><!-- / .crm-form-block -->
65 {* -- Javascript for showing/hiding the upload/compose options -- *}
66 {include file="CRM/common/showHide.tpl"}
68 <script type="text/javascript">
70 function showHideUpload()
72 if (document.getElementsByName("upload_type")[0].checked) {
73 cj('#compose_id').hide();
74 cj('.crm-mailing-upload-form-block-template').hide();
75 cj('#upload_id').show();
77 cj('#compose_id').show();
78 cj('.crm-mailing-upload-form-block-template').show();
79 cj('#upload_id').hide();
86 {* include jscript to warn if unsaved form field changes *}
87 {include file="CRM/common/formNavigate.tpl"}