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 {* This template is used for adding/configuring SMS Providers *}
27 <div class="crm-block crm-form-block crm-job-form-block">
28 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
31 <div class="messages status no-popup">
32 <div class="icon inform-icon"></div>
33 {ts}Do you want to continue?{/ts}
35 {elseif $action eq 128}
36 <div class="messages status no-popup">
37 <div class="icon inform-icon"></div>
38 {ts}Are you sure you would like to execute this job?{/ts}
41 <table class="form-layout-compressed">
42 <tr class="crm-job-form-block-name">
43 <td class="label">{$form.name.label}</td><td>{$form.name.html}</td>
45 <tr class="crm-job-form-block-title">
46 <td class="label">{$form.title.label}</td><td>{$form.title.html}</td>
48 <tr class="crm-job-form-block-username">
49 <td class="label">{$form.username.label}</td><td>{$form.username.html}</td>
51 <tr class="crm-job-form-block-password">
52 <td class="label">{$form.password.label}</td><td>{$form.password.html}</td>
54 <tr class="crm-job-form-block-api_type">
55 <td class="label">{$form.api_type.label}</td><td>{$form.api_type.html}</td>
57 <tr class="crm-job-form-block-api_url">
58 <td class="label">{$form.api_url.label}</td><td>{$form.api_url.html}</td>
60 <tr class="crm-job-form-block-api_params">
61 <td class="label">{$form.api_params.label}</td><td>{$form.api_params.html}</td>
63 <tr class="crm-job-form-block-is_active">
64 <td></td><td>{$form.is_active.html} {$form.is_active.label}</td>
66 <tr class="crm-job-form-block-is_active">
67 <td></td><td>{$form.is_default.html} {$form.is_default.label}</td>
72 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
76 {if $action eq 1 or $action eq 2}
77 <script type="text/javascript" >
80 var $form = $("form.{/literal}{$form.formClass}{literal}");
81 $('select[name=name]', $form).change(function() {
82 var url = {/literal}"{$refreshURL}"{literal} + "&key=" + this.value;
83 $(this).closest('.crm-ajax-container, #crm-main-content-wrapper').crmSnippet({url: url}).crmSnippet('refresh');