Merge pull request #15986 from civicrm/5.20
[civicrm-core.git] / templates / CRM / SMS / Form / Upload.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 <div class="crm-block crm-form-block crm-mailing-upload-form-block">
11 {include file="CRM/common/WizardHeader.tpl"}
12
13 <div class="help">
14 {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"}
15 </div>
16
17 {include file="CRM/Mailing/Form/Count.tpl"}
18
19 <table class="form-layout-compressed">
20 <tr class="crm-mailing-upload-form-block-template">
21 <td class="label">{$form.SMStemplate.label}</td>
22 <td>{$form.SMStemplate.html}</td>
23 </tr>
24 <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>
25 </table>
26
27 <fieldset id="compose_id"><legend>{ts}Compose On-screen{/ts}</legend>
28 {include file="CRM/Contact/Form/Task/SMSCommon.tpl" upload=1 noAttach=1}
29 {include file="CRM/Mailing/Form/InsertTokens.tpl"}
30 </fieldset>
31
32 <fieldset id="upload_id"><legend>{ts}Upload Content{/ts}</legend>
33 <table class="form-layout-compressed">
34 <tr class="crm-mailing-upload-form-block-textFile">
35 <td class="label">{$form.textFile.label}</td>
36 <td>{$form.textFile.html}<br />
37 <span class="description">{ts}Browse to the <strong>TEXT</strong> message file you have prepared for this SMS.{/ts}<br /> {$docLink}</span>
38 </td>
39 </tr>
40 </table>
41 </fieldset>
42
43 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
44 </div><!-- / .crm-form-block -->
45
46 {* -- Javascript for showing/hiding the upload/compose options -- *}
47 {include file="CRM/common/showHide.tpl"}
48 {literal}
49 <script type="text/javascript">
50 showHideUpload();
51 function showHideUpload()
52 {
53 if (document.getElementsByName("upload_type")[0].checked) {
54 cj('#compose_id').hide();
55 cj('.crm-mailing-upload-form-block-template').hide();
56 cj('#upload_id').show();
57 } else {
58 cj('#compose_id').show();
59 cj('.crm-mailing-upload-form-block-template').show();
60 cj('#upload_id').hide();
61 }
62 }
63 </script>
64 {/literal}