2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
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-template">
37 <td class="label">{$form.SMStemplate.label}</td>
38 <td>{$form.SMStemplate.html}</td>
40 <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>
43 <fieldset id="compose_id"><legend>{ts}Compose On-screen{/ts}</legend>
44 {include file="CRM/Contact/Form/Task/SMSCommon.tpl" upload=1 noAttach=1}
45 {include file="CRM/Mailing/Form/InsertTokens.tpl"}
48 <fieldset id="upload_id"><legend>{ts}Upload Content{/ts}</legend>
49 <table class="form-layout-compressed">
50 <tr class="crm-mailing-upload-form-block-textFile">
51 <td class="label">{$form.textFile.label}</td>
52 <td>{$form.textFile.html}<br />
53 <span class="description">{ts}Browse to the <strong>TEXT</strong> message file you have prepared for this SMS.{/ts}<br /> {$docLink}</span>
59 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
60 </div><!-- / .crm-form-block -->
62 {* -- Javascript for showing/hiding the upload/compose options -- *}
63 {include file="CRM/common/showHide.tpl"}
65 <script type="text/javascript">
67 function showHideUpload()
69 if (document.getElementsByName("upload_type")[0].checked) {
70 cj('#compose_id').hide();
71 cj('.crm-mailing-upload-form-block-template').hide();
72 cj('#upload_id').show();
74 cj('#compose_id').show();
75 cj('.crm-mailing-upload-form-block-template').show();
76 cj('#upload_id').hide();