Bug 19623: (follow-up) Correct footer include in pop-up windows
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / sms_providers.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Administration &rsaquo; SMS cellular providers</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6
7 <body id="admin_sms_providers" class="admin">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'prefs-admin-search.inc' %]
10
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; SMS cellular providers</div>
12
13 <div id="doc3" class="yui-t2">
14     <div id="bd">
15         <div id="yui-main">
16             <div class="yui-b">
17
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>
20                 </div>
21
22                 <h2>SMS cellular providers</h2>
23
24                 [% IF providers.size %]
25
26                     <table id="providerst">
27                         <thead>
28                             <tr>
29                                 <th>Name</th>
30                                 <th>Domain</th>
31                                 <th title="Patrons using this provider">Patrons</th>
32                                 <th>&nbsp;</th>
33                             </tr>
34                         </thead>
35
36                         <tbody>
37                             [% FOREACH p IN providers %]
38                                 <tr>
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>
42                                     <td class="actions">
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
45                                         </a>
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
48                                         </a>
49                                     </td>
50                                 </tr>
51                             [% END %]
52                         </tbody>
53                     </table>
54
55                 [% ELSE %]
56
57                     <div class="dialog message">
58                         There are no SMS cellular providers defined.
59                     </div>
60
61                 [% END %]
62
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" />
69                             <ol>
70                                 <li>
71                                     <label for="name" class="required">Name: </label>
72                                     <input type="text" id="name" name="name" required="required" />
73                                     <span class="required">Required</span>
74                                 </li>
75                                 <li>
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>
79                                 </li>
80                             </ol>
81                         </fieldset>
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>
86                         </fieldset>
87                     </form>
88                 </div>
89
90             </div>
91         </div>
92         <div class="yui-b">
93             [% INCLUDE 'admin-menu.inc' %]
94         </div>
95     </div>
96 </div>
97
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");
105     </script>
106     <script type="text/javascript" src="[% interface %]/[% theme %]/js/sms_providers.js"></script>
107 [% END %]
108 [% INCLUDE 'intranet-bottom.inc' %]