Merge pull request #139 from lcdservices/master
[civicrm-core.git] / templates / CRM / SMS / Form / Upload.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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
29 <div id="help">
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">
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>
38 </tr>
39
40 <tr class="crm-mailing-upload-form-block-template">
41 <td class="label">{$form.template.label}</td>
42 <td>{$form.template.html}</td>
43 </tr>
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>
45 </table>
46
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}
49 </fieldset>
50
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>
57 </td>
58 </tr>
59 </table>
60 </fieldset>
61
62 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
63 </div><!-- / .crm-form-block -->
64
65 {* -- Javascript for showing/hiding the upload/compose options -- *}
66 {include file="CRM/common/showHide.tpl"}
67 {literal}
68 <script type="text/javascript">
69 showHideUpload();
70 function showHideUpload()
71 {
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();
76 } else {
77 cj('#compose_id').show();
78 cj('.crm-mailing-upload-form-block-template').show();
79 cj('#upload_id').hide();
80 verify( );
81 }
82 }
83 </script>
84 {/literal}
85
86 {* include jscript to warn if unsaved form field changes *}
87 {include file="CRM/common/formNavigate.tpl"}