Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-08-21-20-13-45
[civicrm-core.git] / templates / CRM / SMS / Page / Provider.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
232624b1 3 | CiviCRM version 4.4 |
6a488035
TO
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{capture assign=wikiLink}{docURL page="Setting up a SMS Provider for CiviSMS" text="(How to add a SMS Provider)" resource="wiki"}{/capture}
27<div id="help">
24571eea 28 {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}
6a488035
TO
29</div>
30{if $action eq 1 or $action eq 2 or $action eq 8}
31 {include file="CRM/SMS/Form/Provider.tpl"}
32{else}
33
34 {if $rows}
35
36 {if $action ne 1 and $action ne 2}
37 <div class="action-link">
38 <a href="{crmURL q="action=add&reset=1"}" id="newProvider" class="button"><span><div class="icon add-icon"></div>{ts}Add New Provider{/ts}</span></a>
39 </div>
40 {/if}
41
42<div id="ltype">
43 {strip}
44 {* handle enable/disable actions*}
45 {include file="CRM/common/enableDisable.tpl"}
46 <br/><table class="selector">
47 <tr class="columnheader">
48 <th >{ts}Provider Details{/ts}</th>
49 <th >{ts}Username{/ts}</th>
50 <th >{ts}API Parameters{/ts}</th>
51 <th >{ts}Action{/ts}</th>
52 </tr>
53 {foreach from=$rows item=row}
54 <tr id="row_{$row.id}" class="crm-provider {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
55 <td class="crm-provider-name"><strong>{$row.name}</strong> ({$row.title})<br/>
56 {ts}API Type:{/ts} {$row.api_type}<br/>
57 {ts}API Url:{/ts} {$row.api_url}<br/>
58 </td>
59 <td class="crm-provider-username">{$row.username}
60 </td>
61 <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>
62
63 <td>{$row.action|replace:'xx':$row.id}</td>
64 </tr>
65 {/foreach}
66 </table>
67 {/strip}
68</div>
69{elseif $action ne 1}
70 <div class="messages status no-popup">
71 <div class="icon inform-icon"></div>
72 {ts}There are no providers configured.{/ts}
73 </div>
74 <div class="action-link">
75 <a href="{crmURL p='civicrm/admin/sms/provider' q="action=add&reset=1"}" class="button"><span><div class="icon add-icon"></div>{ts}Add SMS Provider{/ts}</span></a>
76 </div>
77
78{/if}
232624b1 79{/if}