commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / SMS / Page / 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 {if $action eq 1 or $action eq 2 or $action eq 8}
27 {include file="CRM/SMS/Form/Provider.tpl"}
28 {else}
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>
33
34 {if $rows}
35
36 <div id="ltype">
37 {strip}
38 {* handle enable/disable actions*}
39 {include file="CRM/common/enableDisableApi.tpl"}
40 <br/><table class="selector row-highlight">
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}
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}">
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}
62 </div>
63 {else}
64 <div class="messages status no-popup">
65 <div class="icon inform-icon"></div>
66 {ts}None found.{/ts}
67 </div>
68
69 {/if}
70 <div class="action-link">
71 {crmButton p='civicrm/admin/sms/provider' q="action=add&reset=1" icon="circle-plus"}{ts}Add SMS Provider{/ts}{/crmButton}
72 </div>
73 {/if}