Bug 27936: Clarify AllowItemsOnHoldCheckoutSIP syspref help text
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / edi_ean_accounts.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Administration &rsaquo; Library EANs
6 [% IF ean_form %]
7   [% IF ean %]
8      &rsaquo; Modify library EAN
9   [% ELSE %]
10      &rsaquo; Add new library EAN
11   [% END %]
12 [% END %]
13 [% IF delete_confirm %]
14      &rsaquo; Confirm deletion of EAN
15 [% END %]
16 </title>
17 [% INCLUDE 'doc-head-close.inc' %]
18 </head>
19 <body id="admin_edi_ean" class="admin">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'prefs-admin-search.inc' %]
22
23 <div id="breadcrumbs">
24 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
25  &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
26 [% IF ean_form %]
27   [% IF ean %]
28      &rsaquo; <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">Library EANs</a> &rsaquo; Modify library EAN
29   [% ELSE %]
30      &rsaquo; <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">Library EANs</a> &rsaquo; Add new library EAN
31   [% END %]
32 [% ELSIF delete_confirm %]
33      &rsaquo; <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">Library EANs</a> &rsaquo; Confirm deletion of EAN
34 [% ELSE %]
35      &rsaquo; Library EANs
36 [% END %]
37 </div>
38
39 <div class="main container-fluid">
40     <div class="row">
41         <div class="col-sm-10 col-sm-push-2">
42             <main>
43
44 [% IF display %]
45     <div id="toolbar" class="btn-toolbar">
46     <a class="btn btn-default" id="newediean" href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=ean_form">
47          <i class="fa fa-plus"></i>
48          New EAN
49     </a>
50     </div>
51 [% END %]
52
53 [% IF ean_form %]
54 <form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" name="Eanform" method="post">
55   <input type="hidden" name="op" value="save" />
56   [% IF ean %]
57       <input type="hidden" name="oldbranchcode" value="[% ean.branch.branchcode | html %]" />
58       <input type="hidden" name="id" value="[% ean.id | html %]" />
59   [% END %]
60
61   <fieldset class="rows">
62       <legend>
63           [% IF ean %]
64              Modify EAN
65           [% ELSE %]
66             New EAN
67           [% END %]
68       </legend>
69
70       <ol>
71           <li>
72              <label for="branchcode">Library: </label>
73              <select name="branchcode" id="branchcode">
74                 <option value="">All libraries</option>
75                 [% FOREACH branch IN branches %]
76                     [% IF branch.branchcode == ean.branch.branchcode %]
77                        <option value="[% branch.branchcode | html %]" selected="selected">[% branch.branchname | html %]</option>
78                     [% ELSE %]
79                        <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
80                     [% END %]
81                 [% END %]
82               </select>
83           </li>
84           <li>
85              <label for="description">Description: </label>
86              <input type="text" name="description" id="description" size="30" maxlength="128" value="[% ean.description | html %]" />
87           </li>
88           <li>
89              <label for="ean">EAN: </label>
90              <input type="text" name="ean" id="ean" size="20" maxlength="15" value="[% ean.ean | html %]" />
91           </li>
92           <li>
93              <label for="id_code_qualifier">Qualifier: </label>
94              <select name="id_code_qualifier" id="id_code_qualifier">
95                  [% FOREACH qualifier IN code_qualifiers %]
96                     [% IF qualifier.code == ean.id_code_qualifier %]
97                        <option value="[% qualifier.code | html %]" selected="selected">
98                            [% qualifier.description | html %] ([% qualifier.code | html %])
99                        </option>
100                     [% ELSE %]
101                        <option value="[% qualifier.code | html %]">
102                           [% qualifier.description | html %] ([% qualifier.code | html %])
103                        </option>
104                     [% END %]
105                  [% END %]
106              </select>
107           </li>
108       </ol>
109   </fieldset>
110
111   <fieldset class="action">
112     <input type="submit" value="Submit"/>
113     <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl" class="cancel">Cancel</a>
114   </fieldset>
115 </form>
116 [% END %]
117
118 [% IF delete_confirm %]
119 <div class="dialog alert">
120 <h3>Delete EAN [% ean.ean | html %] for [% ean.branch.branchname | html %]?</h3>
121 <form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" method="post">
122     <input type="hidden" name="op" value="delete_confirmed" />
123     <input type="hidden" name="id" value="[% ean.id | html %]" />
124     <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
125 </form>
126 <form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" method="get">
127     <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
128 </form>
129 </div>
130 [% END %]
131
132 [% IF display %]
133 [% IF ( eans ) %]
134     <h2>Library EANs</h2>
135     <table>
136         <tr>
137             <th>Library</th>
138             <th>Description</th>
139             <th>EAN</th>
140             <th>Qualifier</th>
141             <th class="noExport">Actions</th>
142         </tr>
143         [% FOREACH ean IN eans %]
144             <tr>
145                 [% IF ean.branch %]
146                 <td>[% ean.branch.branchname | html %]</td>
147                 [% ELSE %]
148                 <td>All libraries</td>
149                 [% END %]
150                 <td>[% ean.description | html %]</td>
151                 <td>[% ean.ean | html %]</td>
152                 <td>
153                  [% FOREACH qualifier IN code_qualifiers %]
154                     [% IF qualifier.code == ean.id_code_qualifier %]
155                         [% qualifier.description | html %] ([% qualifier.code | html %])
156                     [% END %]
157                  [% END %]
158                 </td>
159                 <td class="actions">
160                     <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=ean_form&id=[% ean.id | html %]"><i class="fa fa-pencil"></i> Edit</a>
161                     <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=delete_confirm&id=[% ean.id | html %]"><i class="fa fa-trash"></i> Delete</a>
162                 </td>
163             </tr>
164         [% END %]
165     </table>
166 [% ELSE %]
167     <div class="dialog message">
168         There are no library EANs.
169     </div>
170 [% END %]
171 [% END %]
172
173             </main>
174         </div> <!-- /.col-sm-10.col-sm-push-2 -->
175
176         <div class="col-sm-2 col-sm-pull-10">
177             <aside>
178                 [% INCLUDE 'admin-menu.inc' %]
179             </aside>
180         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
181      </div> <!-- /.row -->
182
183 [% MACRO jsinclude BLOCK %]
184     [% Asset.js("js/admin-menu.js") | $raw %]
185 [% END %]
186 [% INCLUDE 'intranet-bottom.inc' %]