Bug 26703: admin folder
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / sms_providers.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>SMS cellular providers &rsaquo; Administration &rsaquo; Koha</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 </head>
8
9 <body id="admin_sms_providers" class="admin">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'prefs-admin-search.inc' %]
12
13 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
14     <ol>
15         <li>
16             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
17         </li>
18         <li>
19             <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
20         </li>
21         <li>
22             <a href="#" aria-current="page">
23                 SMS cellular providers
24             </a>
25         </li>
26     </ol>
27 </nav>
28
29 <div class="main container-fluid">
30     <div class="row">
31         <div class="col-sm-10 col-sm-push-2">
32             <main>
33
34                 <div id="toolbar" class="btn-toolbar">
35                     <a class="btn btn-default" id="new_provider" href="#"><i class="fa fa-plus"></i> New SMS provider</a>
36                 </div>
37
38                 <h2>SMS cellular providers</h2>
39
40                 [% IF providers.size %]
41
42                     <table id="providerst">
43                         <thead>
44                             <tr>
45                                 <th>Name</th>
46                                 <th>Domain</th>
47                                 <th title="Patrons using this provider">Patrons</th>
48                                 <th>&nbsp;</th>
49                             </tr>
50                         </thead>
51
52                         <tbody>
53                             [% FOREACH p IN providers %]
54                                 <tr>
55                                     <td id="name_[% p.id | html %]">[% p.name | html %]</td>
56                                     <td id="domain_[% p.id | html %]">[% p.domain | html %]</td>
57                                     <td id="patrons_using_[% p.id | html %]">[% p.patrons_using | html %]</td>
58                                     <td class="actions">
59                                         <a class="btn btn-default btn-xs edit" href="#" id="edit_[% p.id | html %]" data-providerid="[% p.id | html %]">
60                                             <i class="fa fa-pencil"></i> Edit
61                                         </a>
62                                         <a class="btn btn-default btn-xs delete" href="#" data-providerid="[% p.id | html %]" data-patrons_using="[% p.patrons_using | html %]" id="delete_[% p.id | html %]">
63                                             <i class="fa fa-trash"></i> Delete
64                                         </a>
65                                     </td>
66                                 </tr>
67                             [% END %]
68                         </tbody>
69                     </table>
70
71                 [% ELSE %]
72
73                     <div class="dialog message">
74                         There are no SMS cellular providers defined.
75                     </div>
76
77                 [% END %]
78
79                 <div id="sms_add_form">
80                     <form id="sms_form" action="sms_providers.pl" method="post" class="validated">
81                         <fieldset class="rows">
82                             <legend>Add an SMS cellular provider</legend>
83                             <input type="hidden" id="id" name="id" value="" />
84                             <input type="hidden" id="op" name="op" value="add_update" />
85                             <ol>
86                                 <li>
87                                     <label for="name" class="required">Name: </label>
88                                     <input type="text" id="name" name="name" required="required" />
89                                     <span class="required">Required</span>
90                                 </li>
91                                 <li>
92                                     <label for="domain" class="required">Domain: </label>
93                                     <input type="text" id="domain" name="domain" required="required" size="40"/>
94                                     <span class="required">Required</span>
95                                 </li>
96                             </ol>
97                         </fieldset>
98                         <fieldset class="action">
99                             <input type="submit" id="submit_save" value="Submit" />
100                             <input type="submit" value="Submit" id="submit_update" />
101                             <a class="cancel cancel_edit" id="cancel" href="sms_providers.pl">Cancel</a>
102                         </fieldset>
103                     </form>
104                 </div>
105
106             </main>
107         </div> <!-- /.col-sm-10.col-sm-push-2 -->
108
109         <div class="col-sm-2 col-sm-pull-10">
110             <aside>
111                 [% INCLUDE 'admin-menu.inc' %]
112             </aside>
113         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
114      </div> <!-- /.row -->
115
116 [% MACRO jsinclude BLOCK %]
117     [% Asset.js("js/admin-menu.js") | $raw %]
118     [% Asset.js("js/sms_providers.js") | $raw %]
119 [% END %]
120 [% INCLUDE 'intranet-bottom.inc' %]