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