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