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 | {* This template is used for adding/configuring SMS Providers *} | |
6a488035 TO |
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> | |
29 | ||
30 | {if $action eq 8} | |
7f7fa13a EM |
31 | <div class="messages status no-popup"> |
32 | <div class="icon inform-icon"></div> | |
6a488035 TO |
33 | {ts}Do you want to continue?{/ts} |
34 | </div> | |
35 | {elseif $action eq 128} | |
7f7fa13a EM |
36 | <div class="messages status no-popup"> |
37 | <div class="icon inform-icon"></div> | |
6a488035 TO |
38 | {ts}Are you sure you would like to execute this job?{/ts} |
39 | </div> | |
40 | {else} | |
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> | |
44 | </tr> | |
45 | <tr class="crm-job-form-block-title"> | |
46 | <td class="label">{$form.title.label}</td><td>{$form.title.html}</td> | |
47 | </tr> | |
48 | <tr class="crm-job-form-block-username"> | |
49 | <td class="label">{$form.username.label}</td><td>{$form.username.html}</td> | |
50 | </tr> | |
51 | <tr class="crm-job-form-block-password"> | |
52 | <td class="label">{$form.password.label}</td><td>{$form.password.html}</td> | |
53 | </tr> | |
54 | <tr class="crm-job-form-block-api_type"> | |
55 | <td class="label">{$form.api_type.label}</td><td>{$form.api_type.html}</td> | |
56 | </tr> | |
57 | <tr class="crm-job-form-block-api_url"> | |
58 | <td class="label">{$form.api_url.label}</td><td>{$form.api_url.html}</td> | |
59 | </tr> | |
60 | <tr class="crm-job-form-block-api_params"> | |
61 | <td class="label">{$form.api_params.label}</td><td>{$form.api_params.html}</td> | |
62 | </tr> | |
63 | <tr class="crm-job-form-block-is_active"> | |
64 | <td></td><td>{$form.is_active.html} {$form.is_active.label}</td> | |
65 | </tr> | |
66 | <tr class="crm-job-form-block-is_active"> | |
67 | <td></td><td>{$form.is_default.html} {$form.is_default.label}</td> | |
68 | </tr> | |
69 | </table> | |
7f7fa13a | 70 | {/if} |
6a488035 TO |
71 | </table> |
72 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
73 | </fieldset> | |
74 | </div> | |
75 | ||
76 | {if $action eq 1 or $action eq 2} | |
77 | <script type="text/javascript" > | |
78 | {literal} | |
185eb0fc | 79 | CRM.$(function($) { |
b50fdacc | 80 | var $form = $("form.{/literal}{$form.formClass}{literal}"); |
185eb0fc CW |
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'); | |
84 | }); | |
85 | }); | |
6a488035 TO |
86 | {/literal} |
87 | </script> | |
88 | {/if} |