Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
6b83d5bd | 5 | | Copyright CiviCRM LLC (c) 2004-2019 | |
6a488035 TO |
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-mailing-upload-form-block"> | |
27 | {include file="CRM/common/WizardHeader.tpl"} | |
28 | ||
f6eedce7 | 29 | <div class="help"> |
6a488035 TO |
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"} |
31 | </div> | |
32 | ||
33 | {include file="CRM/Mailing/Form/Count.tpl"} | |
34 | ||
35 | <table class="form-layout-compressed"> | |
6a488035 | 36 | <tr class="crm-mailing-upload-form-block-template"> |
1e035d58 | 37 | <td class="label">{$form.SMStemplate.label}</td> |
38 | <td>{$form.SMStemplate.html}</td> | |
6a488035 TO |
39 | </tr> |
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> | |
41 | </table> | |
42 | ||
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} | |
1e035d58 | 45 | {include file="CRM/Mailing/Form/InsertTokens.tpl"} |
6a488035 TO |
46 | </fieldset> |
47 | ||
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> | |
54 | </td> | |
55 | </tr> | |
56 | </table> | |
57 | </fieldset> | |
58 | ||
59 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div> | |
60 | </div><!-- / .crm-form-block --> | |
61 | ||
62 | {* -- Javascript for showing/hiding the upload/compose options -- *} | |
63 | {include file="CRM/common/showHide.tpl"} | |
64 | {literal} | |
65 | <script type="text/javascript"> | |
66 | showHideUpload(); | |
67 | function showHideUpload() | |
68 | { | |
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(); | |
73 | } else { | |
74 | cj('#compose_id').show(); | |
75 | cj('.crm-mailing-upload-form-block-template').show(); | |
76 | cj('#upload_id').hide(); | |
6a488035 TO |
77 | } |
78 | } | |
79 | </script> | |
80 | {/literal} |