2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Administration › SMS cellular providers</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="admin_sms_providers" class="admin">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'prefs-admin-search.inc' %]
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › SMS cellular providers</div>
13 <div id="doc3" class="yui-t2">
18 <div id="toolbar" class="btn-toolbar">
19 <a class="btn btn-default btn-sm" id="new_provider" href="#"><i class="fa fa-plus"></i> New SMS provider</a>
22 <h2>SMS cellular providers</h2>
24 [% IF providers.size %]
26 <table id="providerst">
31 <th title="Patrons using this provider">Patrons</th>
37 [% FOREACH p IN providers %]
39 <td id="name_[% p.id %]">[% p.name %]</td>
40 <td id="domain_[% p.id %]">[% p.domain %]</td>
41 <td id="patrons_using_[% p.id %]">[% p.patrons_using %]</td>
43 <a class="btn btn-default btn-xs edit" href="#" id="edit_[% p.id %]" data-providerid="[% p.id %]">
44 <i class="fa fa-pencil"></i> Edit
46 <a class="btn btn-default btn-xs delete" href="#" data-providerid="[% p.id %]" data-patrons_using="[% p.patrons_using %]" id="delete_[% p.id %]">
47 <i class="fa fa-trash"></i> Delete
57 <div class="dialog message">
58 There are no SMS cellular providers defined.
63 <div id="sms_add_form">
64 <form id="sms_form" action="sms_providers.pl" method="post" class="validated">
65 <fieldset class="rows">
66 <legend>Add an SMS cellular provider</legend>
67 <input type="hidden" id="id" name="id" value="" />
68 <input type="hidden" id="op" name="op" value="add_update" />
71 <label for="name" class="required">Name: </label>
72 <input type="text" id="name" name="name" required="required" />
73 <span class="required">Required</span>
76 <label for="domain" class="required">Domain: </label>
77 <input type="text" id="domain" name="domain" required="required" size="40"/>
78 <span class="required">Required</span>
82 <fieldset class="action">
83 <input type="submit" id="submit_save" value="Submit" />
84 <input type="submit" value="Submit" id="submit_update" />
85 <a class="cancel cancel_edit" id="cancel" href="sms_providers.pl">Cancel</a>
93 [% INCLUDE 'admin-menu.inc' %]
98 [% MACRO jsinclude BLOCK %]
99 <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
100 <script type="text/javascript">
101 var MSG_SMS_PATRONS_USING = _("Are you sure you want to delete %s? %s patron(s) are using it!");
102 var MSG_SMS_DELETE_CONFIRM = _("Are you sure you want to delete %s?");
103 var LABEL_SMS_ADD_PROVIDER = _("Add an SMS cellular provider");
104 var LABEL_SMS_EDIT_PROVIDER = _("Edit provider %s");
106 <script type="text/javascript" src="[% interface %]/[% theme %]/js/sms_providers.js"></script>
108 [% INCLUDE 'intranet-bottom.inc' %]