Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-06-23-18-25-12
[civicrm-core.git] / templates / CRM / SMS / Page / Provider.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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">
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}
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/enableDisableApi.tpl"}
46 {include file="CRM/common/crmeditable.tpl"}
47 <br/><table class="selector row-highlight">
48 <tr class="columnheader">
49 <th >{ts}Provider Details{/ts}</th>
50 <th >{ts}Username{/ts}</th>
51 <th >{ts}API Parameters{/ts}</th>
52 <th >{ts}Action{/ts}</th>
53 </tr>
54 {foreach from=$rows item=row}
55 <tr id="sms_provider-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
56 <td class="crm-provider-name"><strong>{$row.name}</strong> ({$row.title})<br/>
57 {ts}API Type:{/ts} {$row.api_type}<br/>
58 {ts}API Url:{/ts} {$row.api_url}<br/>
59 </td>
60 <td class="crm-provider-username">{$row.username}
61 </td>
62 <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>
63
64 <td>{$row.action|replace:'xx':$row.id}</td>
65 </tr>
66 {/foreach}
67 </table>
68 {/strip}
69 </div>
70 {elseif $action ne 1}
71 <div class="messages status no-popup">
72 <div class="icon inform-icon"></div>
73 {ts}There are no providers configured.{/ts}
74 </div>
75 <div class="action-link">
76 <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>
77 </div>
78
79 {/if}
80 {/if}