| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
| 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.SMStemplate.label}</td> |
| 42 | <td>{$form.SMStemplate.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 | {include file="CRM/Mailing/Form/InsertTokens.tpl"} |
| 50 | </fieldset> |
| 51 | |
| 52 | <fieldset id="upload_id"><legend>{ts}Upload Content{/ts}</legend> |
| 53 | <table class="form-layout-compressed"> |
| 54 | <tr class="crm-mailing-upload-form-block-textFile"> |
| 55 | <td class="label">{$form.textFile.label}</td> |
| 56 | <td>{$form.textFile.html}<br /> |
| 57 | <span class="description">{ts}Browse to the <strong>TEXT</strong> message file you have prepared for this SMS.{/ts}<br /> {$docLink}</span> |
| 58 | </td> |
| 59 | </tr> |
| 60 | </table> |
| 61 | </fieldset> |
| 62 | |
| 63 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div> |
| 64 | </div><!-- / .crm-form-block --> |
| 65 | |
| 66 | {* -- Javascript for showing/hiding the upload/compose options -- *} |
| 67 | {include file="CRM/common/showHide.tpl"} |
| 68 | {literal} |
| 69 | <script type="text/javascript"> |
| 70 | showHideUpload(); |
| 71 | function showHideUpload() |
| 72 | { |
| 73 | if (document.getElementsByName("upload_type")[0].checked) { |
| 74 | cj('#compose_id').hide(); |
| 75 | cj('.crm-mailing-upload-form-block-template').hide(); |
| 76 | cj('#upload_id').show(); |
| 77 | } else { |
| 78 | cj('#compose_id').show(); |
| 79 | cj('.crm-mailing-upload-form-block-template').show(); |
| 80 | cj('#upload_id').hide(); |
| 81 | } |
| 82 | } |
| 83 | </script> |
| 84 | {/literal} |