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