1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › SMS cellular providers</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
6 var MSG_SMS_PATRONS_USING = _("Are you sure you want to delete %s? %s patron(s) are using it!");
7 var MSG_SMS_DELETE_CONFIRM = _("Are you sure you want to delete %s?");
8 var LABEL_SMS_ADD_PROVIDER = _("Add an SMS cellular provider");
9 var LABEL_SMS_EDIT_PROVIDER = _("Edit provider %s");
12 <script type="text/javascript" src="[% interface %]/[% theme %]/js/sms_providers.js"></script>
15 <body id="admin_sms_providers" class="admin">
16 [% INCLUDE 'header.inc' %]
17 [% INCLUDE 'prefs-admin-search.inc' %]
19 <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>
21 <div id="doc3" class="yui-t2">
26 <div id="toolbar" class="btn-toolbar">
27 <a class="btn btn-default btn-sm" id="new_provider" href="#"><i class="fa fa-plus"></i> New SMS provider</a>
30 <h2>SMS cellular providers</h2>
32 [% IF providers.size %]
34 <table id="providerst">
39 <th title="Patrons using this provider">Patrons</th>
45 [% FOREACH p IN providers %]
47 <td id="name_[% p.id %]">[% p.name %]</td>
48 <td id="domain_[% p.id %]">[% p.domain %]</td>
49 <td id="patrons_using_[% p.id %]">[% p.patrons_using %]</td>
51 <a class="btn btn-default btn-xs edit" href="#" id="edit_[% p.id %]" data-providerid="[% p.id %]">
52 <i class="fa fa-pencil"></i> Edit
54 <a class="btn btn-default btn-xs delete" href="#" data-providerid="[% p.id %]" data-patrons_using="[% p.patrons_using %]" id="delete_[% p.id %]">
55 <i class="fa fa-trash"></i> Delete
65 <div class="dialog message">
66 There are no SMS cellular providers defined.
71 <div id="sms_add_form">
72 <form id="sms_form" action="sms_providers.pl" method="post" class="validated">
73 <fieldset class="rows">
74 <legend>Add an SMS cellular provider</legend>
75 <input type="hidden" id="id" name="id" value="" />
76 <input type="hidden" id="op" name="op" value="add_update" />
79 <label for="name" class="required">Name: </label>
80 <input type="text" id="name" name="name" required="required" />
81 <span class="required">Required</span>
84 <label for="domain" class="required">Domain: </label>
85 <input type="text" id="domain" name="domain" required="required" size="40"/>
86 <span class="required">Required</span>
90 <fieldset class="action">
91 <input type="submit" id="submit_save" value="Submit" />
92 <input type="submit" value="Submit" id="submit_update" />
93 <a class="cancel cancel_edit" id="cancel" href="sms_providers.pl">Cancel</a>
101 [% INCLUDE 'admin-menu.inc' %]
105 [% INCLUDE 'intranet-bottom.inc' %]