Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
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 | *} | |
6a488035 TO |
26 | {if $action eq 1 or $action eq 2 or $action eq 8} |
27 | {include file="CRM/SMS/Form/Provider.tpl"} | |
28 | {else} | |
e2046b33 CW |
29 | {capture assign=wikiLink}{docURL page="Setting up a SMS Provider for CiviSMS" text="(How to add a SMS Provider)" resource="wiki"}{/capture} |
30 | <div id="help"> | |
31 | {ts}You can configure one or more SMS Providers for your CiviCRM installation. To learn more about the procedure to install SMS extension and Provider, refer{/ts} {$wikiLink} | |
32 | </div> | |
6a488035 TO |
33 | |
34 | {if $rows} | |
35 | ||
e2046b33 | 36 | <div id="ltype"> |
6a488035 TO |
37 | {strip} |
38 | {* handle enable/disable actions*} | |
4d17a233 | 39 | {include file="CRM/common/enableDisableApi.tpl"} |
16850d34 | 40 | <br/><table class="selector row-highlight"> |
6a488035 TO |
41 | <tr class="columnheader"> |
42 | <th >{ts}Provider Details{/ts}</th> | |
43 | <th >{ts}Username{/ts}</th> | |
44 | <th >{ts}API Parameters{/ts}</th> | |
45 | <th >{ts}Action{/ts}</th> | |
46 | </tr> | |
47 | {foreach from=$rows item=row} | |
da54ec85 | 48 | <tr id="sms_provider-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}"> |
6a488035 TO |
49 | <td class="crm-provider-name"><strong>{$row.name}</strong> ({$row.title})<br/> |
50 | {ts}API Type:{/ts} {$row.api_type}<br/> | |
51 | {ts}API Url:{/ts} {$row.api_url}<br/> | |
52 | </td> | |
53 | <td class="crm-provider-username">{$row.username} | |
54 | </td> | |
55 | <td class="crm-api-params">{if $row.api_params eq null}<em>{ts}no parameters{/ts}</em>{else}<pre>{$row.api_params}</pre>{/if}</td> | |
56 | ||
57 | <td>{$row.action|replace:'xx':$row.id}</td> | |
58 | </tr> | |
59 | {/foreach} | |
60 | </table> | |
61 | {/strip} | |
e2046b33 CW |
62 | </div> |
63 | {else} | |
6a488035 TO |
64 | <div class="messages status no-popup"> |
65 | <div class="icon inform-icon"></div> | |
e2046b33 | 66 | {ts}None found.{/ts} |
6a488035 TO |
67 | </div> |
68 | ||
e2046b33 CW |
69 | {/if} |
70 | <div class="action-link"> | |
80bc2820 | 71 | {crmButton p='civicrm/admin/sms/provider' q="action=add&reset=1" icon="plus-circle"}{ts}Add SMS Provider{/ts}{/crmButton} |
e2046b33 | 72 | </div> |
232624b1 | 73 | {/if} |