Import from SVN (r45945, r596)
[civicrm-core.git] / templates / CRM / SMS / Form / Provider.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 {* This template is used for adding/configuring SMS Providers *}
27 <h3>{if $action eq 1}{ts}New Provider{/ts}{elseif $action eq 2}{ts}Edit Provider{/ts}{else}{ts}Delete Provider{/ts}{/if}</h3>
28 <div class="crm-block crm-form-block crm-job-form-block">
29 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
30
31 {if $action eq 8}
32 <div class="messages status no-popup">
33 <div class="icon inform-icon"></div>
34 {ts}Do you want to continue?{/ts}
35 </div>
36 {elseif $action eq 128}
37 <div class="messages status no-popup">
38 <div class="icon inform-icon"></div>
39 {ts}Are you sure you would like to execute this job?{/ts}
40 </div>
41 {else}
42 <table class="form-layout-compressed">
43 <tr class="crm-job-form-block-name">
44 <td class="label">{$form.name.label}</td><td>{$form.name.html}</td>
45 </tr>
46 <tr class="crm-job-form-block-title">
47 <td class="label">{$form.title.label}</td><td>{$form.title.html}</td>
48 </tr>
49 <tr class="crm-job-form-block-username">
50 <td class="label">{$form.username.label}</td><td>{$form.username.html}</td>
51 </tr>
52 <tr class="crm-job-form-block-password">
53 <td class="label">{$form.password.label}</td><td>{$form.password.html}</td>
54 </tr>
55 <tr class="crm-job-form-block-api_type">
56 <td class="label">{$form.api_type.label}</td><td>{$form.api_type.html}</td>
57 </tr>
58 <tr class="crm-job-form-block-api_url">
59 <td class="label">{$form.api_url.label}</td><td>{$form.api_url.html}</td>
60 </tr>
61 <tr class="crm-job-form-block-api_params">
62 <td class="label">{$form.api_params.label}</td><td>{$form.api_params.html}</td>
63 </tr>
64 <tr class="crm-job-form-block-is_active">
65 <td></td><td>{$form.is_active.html}&nbsp;{$form.is_active.label}</td>
66 </tr>
67 <tr class="crm-job-form-block-is_active">
68 <td></td><td>{$form.is_default.html}&nbsp;{$form.is_default.label}</td>
69 </tr>
70 </table>
71 {/if}
72 </table>
73 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
74 </fieldset>
75 </div>
76
77 {if $action eq 1 or $action eq 2}
78 <script type="text/javascript" >
79 {literal}
80 function reload(refresh) {
81 var provider = document.getElementById("name");
82 var url = {/literal}"{$refreshURL}"{literal}
83 var post = url + "&key=" + provider.value;
84 if( refresh ) {
85 window.location = post;
86 }
87 }
88 {/literal}
89 </script>
90 {/if}