commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / templates / CRM / SMS / Form / Provider.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
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 {* 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>
29
30 {if $action eq 8}
31 <div class="messages status no-popup">
32 <div class="icon inform-icon"></div>
33 {ts}Do you want to continue?{/ts}
34 </div>
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}
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}&nbsp;{$form.is_active.label}</td>
65 </tr>
66 <tr class="crm-job-form-block-is_active">
67 <td></td><td>{$form.is_default.html}&nbsp;{$form.is_default.label}</td>
68 </tr>
69 </table>
70 {/if}
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}
79 CRM.$(function($) {
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');
84 });
85 });
86 {/literal}
87 </script>
88 {/if}