Bug 27846: (follow-up) Add id back to breadcrumbs container
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / subscription-batchedit.tt
1 [% USE AuthorisedValues %]
2 [% USE Branches %]
3 [% USE ItemTypes %]
4 [% USE KohaDates %]
5 [% INCLUDE 'doc-head-open.inc' %]
6     <title>Koha &rsaquo; Serials &rsaquo; Batch edit</title>
7     [% INCLUDE 'doc-head-close.inc' %]
8     [% INCLUDE 'calendar.inc' %]
9 </head>
10 <body id="ser_subscription-batchedit" class="ser">
11     [% INCLUDE 'header.inc' %]
12     [% INCLUDE 'serials-search.inc' %]
13
14     <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
15         <ol>
16             <li>
17                 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
18             </li>
19             <li>
20                 <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
21             </li>
22             <li>
23                 <a href="#" aria-current="page">
24                     Batch edit
25                 </a>
26             </li>
27         </ol>
28     </nav>
29
30 <div class="main container-fluid">
31     <div class="row">
32         <div class="col-sm-10 col-sm-push-2">
33             <main>
34
35                     <h1>Subscription batch edit</h1>
36
37                     <div>
38                         <p>You are about to edit the following subscriptions:</p>
39                         <table>
40                             <thead>
41                                 <tr>
42                                     <th>ISSN</th>
43                                     <th>Title</th>
44                                     <th>Vendor</th>
45                                     <th>Location</th>
46                                     <th>Library</th>
47                                     <th>Item type</th>
48                                     <th>Public notes</th>
49                                     <th>Nonpublic notes</th>
50                                     <th>Call number</th>
51                                     <th>Create item when receiving</th>
52                                     <th>Expiration date</th>
53                                 </tr>
54                             </thead>
55                             <tbody>
56                                 [% FOREACH subscription IN subscriptions %]
57                                     <tr>
58                                         <td>[% subscription.biblio.biblioitem.issn | html %]</td>
59                                         <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">[% subscription.biblio.title | html %] (#[% subscription.subscriptionid | html %])</a></td>
60                                         <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% subscription.vendor.id | uri %]">[% subscription.vendor.name | html %]</a></td>
61                                         <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %]</td>
62                                         <td>[% Branches.GetName(subscription.branchcode) | html %]</td>
63                                         <td>[% ItemTypes.GetDescription( subscription.itemtype ) | html %]</td>
64                                         <td>[% subscription.notes | html %]</td>
65                                         <td>[% subscription.internalnotes | html %]</td>
66                                         <td>[% subscription.callnumber | html %]</td>
67                                         <td>
68                                             [% IF subscription.serialsadditems %]
69                                                 <span>Yes</span>
70                                             [% ELSE %]
71                                                 <span>No</span>
72                                             [% END %]
73                                         </td>
74                                         <td>[% subscription.enddate | $KohaDates %]</td>
75                                     </tr>
76                                 [% END %]
77                             </tbody>
78                         </table>
79                     </div>
80
81                     <form method="post">
82                         [% FOREACH subscription IN subscriptions %]
83                             <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]"/>
84                         [% END %]
85                         [% IF referrer %]
86                             <input type="hidden" name="referrer" value="[% referrer | html %]"/>
87                         [% END %]
88                         <fieldset class="rows">
89                             <ol>
90                                 <li>
91                                     <label for="booksellerid">Vendor:  </label>
92                                     <select id="booksellerid" name="booksellerid">
93                                         <option value="">No change</option>
94                                         [% FOREACH bookseller IN booksellers %]
95                                             <option value="[% bookseller.id | html %]">[% bookseller.name | html %]</option>
96                                         [% END %]
97                                     </select>
98                                 </li>
99                                 <li>
100                                     <label for="location">Location: </label>
101                                     <select id="location" name="location">
102                                         <option value="">No change</option>
103                                         [% FOREACH av IN AuthorisedValues.Get('LOC') %]
104                                             <option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
105                                         [% END %]
106                                     </select>
107                                 </li>
108                                 <li>
109                                     <label for="branchcode">Library: </label>
110                                     <select id="branchcode" name="branchcode">
111                                         <option value="">No change</option>
112                                         [% FOREACH branch IN Branches.all %]
113                                             <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
114                                         [% END %]
115                                     </select>
116                                 </li>
117                                 <li>
118                                     <label for="itemtype">Item type: </label>
119                                     <select id="itemtype" name="itemtype">
120                                         <option value="">No change</option>
121                                         [% FOREACH itemtype IN ItemTypes.Get() %]
122                                             <option value="[% itemtype.itemtype | html %]">[% itemtype.description | html %]</option>
123                                         [% END %]
124                                     </select>
125                                 </li>
126                                 <li>
127                                     <label for="notes">Public note: </label>
128                                     <textarea id="notes" name="notes" placeholder="No change"></textarea>
129                                 </li>
130                                 <li>
131                                     <label for="internalnotes">Nonpublic note: </label>
132                                     <textarea id="internalnotes" name="internalnotes" placeholder="No change"></textarea>
133                                 </li>
134                                 <li>
135                                     <label for="serialsadditems">Create item when receiving: </label>
136                                     <select id="serialsadditems" name="serialsadditems">
137                                         <option value="">No change</option>
138                                         <option value="0">No</option>
139                                         <option value="1">Yes</option>
140                                     </select>
141
142                                 </li>
143                                 <li>
144                                     <label for="enddate">Expiration date: </label>
145                                     <input type="text" class="datepicker" id="enddate" name="enddate" placeholder="No change"/>
146                                 </li>
147                                 [% FOREACH field IN additional_fields %]
148                                     <li>
149                                         <label for="field_[% field.id | html %]">[% field.name | html %]</label>
150                                         [% IF field.authorised_value_category %]
151                                             <select id="field_[% field.id | html %]" name="field_[% field.id | html %]">
152                                                 <option value="">No change</option>
153                                                 [% FOREACH av IN AuthorisedValues.Get(field.authorised_value_category) %]
154                                                     <option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
155                                                 [% END %]
156                                             </select>
157                                         [% ELSE %]
158                                             <input type="text" id="field_[% field.id | html %]" name="field_[% field.id | html %]" placeholder="No change"/>
159                                         [% END %]
160                                     </li>
161                                 [% END %]
162                             </ol>
163                         </fieldset>
164
165                         <fieldset class="action">
166                             <button type="submit" name="batchedit" value="1">Save</button>
167                             <a class="cancel" href="[% referrer | url %]">Cancel</a>
168                         </fieldset>
169                     </form>
170
171             </main>
172         </div> <!-- /.col-sm-10.col-sm-push-2 -->
173
174         <div class="col-sm-2 col-sm-pull-10">
175             <aside>
176                 [% INCLUDE 'serials-menu.inc' %]
177             </aside>
178         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
179     </div> <!-- /.row -->
180
181
182     [% INCLUDE 'intranet-bottom.inc' %]