Bug 15911: Use noEnterSubmit CSS class instead of prevent_submit.js
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / subscription-batchedit.tt
index b53cb07..327e08f 100644 (file)
         Batch edit
     </div>
 
-    <div id="doc3" class="yui-t2">
-        <div id="bd">
-            <div id="yui-main">
-                <div class="yui-b">
+<div class="main container-fluid">
+    <div class="row">
+        <div class="col-sm-10 col-sm-push-2">
+            <main>
+
                     <h1>Subscription batch edit</h1>
 
                     <div>
                                 <tr>
                                     <th>ISSN</th>
                                     <th>Title</th>
-                                    <th>Notes</th>
-                                    <th>Library</th>
+                                    <th>Vendor</th>
                                     <th>Location</th>
+                                    <th>Library</th>
+                                    <th>Item type</th>
+                                    <th>Public notes</th>
+                                    <th>Nonpublic notes</th>
                                     <th>Call number</th>
+                                    <th>Create item when receiving</th>
                                     <th>Expiration date</th>
                                 </tr>
                             </thead>
                             <tbody>
                                 [% FOREACH subscription IN subscriptions %]
                                     <tr>
-                                        <td>[% subscription.biblio.biblioitem.issn %]</td>
-                                        <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]">[% subscription.biblio.title %] (#[% subscription.subscriptionid %])</a></td>
-                                        <td>[% subscription.notes %] [% IF subscription.internalnotes %]([% subscription.internalnotes %])[% END %]</td>
-                                        <td>[% Branches.GetName(subscription.branchcode) %]</td>
-                                        <td>[% AuthorisedValues.GetByCode('LOC', subscription.location) %]</td>
-                                        <td>[% subscription.callnumber %]</td>
+                                        <td>[% subscription.biblio.biblioitem.issn | html %]</td>
+                                        <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">[% subscription.biblio.title | html %] (#[% subscription.subscriptionid | html %])</a></td>
+                                        <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% subscription.vendor.id | uri %]">[% subscription.vendor.name | html %]</a></td>
+                                        <td>[% AuthorisedValues.GetByCode('LOC', subscription.location) | html %]</td>
+                                        <td>[% Branches.GetName(subscription.branchcode) | html %]</td>
+                                        <td>[% ItemTypes.GetDescription( subscription.itemtype ) | html %]</td>
+                                        <td>[% subscription.notes | html %]</td>
+                                        <td>[% subscription.internalnotes | html %]</td>
+                                        <td>[% subscription.callnumber | html %]</td>
+                                        <td>
+                                            [% IF subscription.serialsadditems %]
+                                                <span>Yes</span>
+                                            [% ELSE %]
+                                                <span>No</span>
+                                            [% END %]
+                                        </td>
                                         <td>[% subscription.enddate | $KohaDates %]</td>
                                     </tr>
                                 [% END %]
 
                     <form method="post">
                         [% FOREACH subscription IN subscriptions %]
-                            <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid %]"/>
+                            <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]"/>
                         [% END %]
                         [% IF referrer %]
-                            <input type="hidden" name="referrer" value="[% referrer %]"/>
+                            <input type="hidden" name="referrer" value="[% referrer | html %]"/>
                         [% END %]
                         <fieldset class="rows">
                             <ol>
@@ -69,7 +84,7 @@
                                     <select id="booksellerid" name="booksellerid">
                                         <option value="">No change</option>
                                         [% FOREACH bookseller IN booksellers %]
-                                            <option value="[% bookseller.id %]">[% bookseller.name %]</option>
+                                            <option value="[% bookseller.id | html %]">[% bookseller.name | html %]</option>
                                         [% END %]
                                     </select>
                                 </li>
@@ -78,7 +93,7 @@
                                     <select id="location" name="location">
                                         <option value="">No change</option>
                                         [% FOREACH av IN AuthorisedValues.Get('LOC') %]
-                                            <option value="[% av.authorised_value | html %]">[% av.lib %]</option>
+                                            <option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
                                         [% END %]
                                     </select>
                                 </li>
                                     <select id="branchcode" name="branchcode">
                                         <option value="">No change</option>
                                         [% FOREACH branch IN Branches.all %]
-                                            <option value="[% branch.branchcode | html %]">[% branch.branchname %]</option>
+                                            <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
                                         [% END %]
                                     </select>
                                 </li>
                                     <select id="itemtype" name="itemtype">
                                         <option value="">No change</option>
                                         [% FOREACH itemtype IN ItemTypes.Get() %]
-                                            <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
+                                            <option value="[% itemtype.itemtype | html %]">[% itemtype.description | html %]</option>
                                         [% END %]
                                     </select>
                                 </li>
                                 </li>
                                 [% FOREACH field IN additional_fields %]
                                     <li>
-                                        <label for="field_[% field.id %]">[% field.name %]</label>
+                                        <label for="field_[% field.id | html %]">[% field.name | html %]</label>
                                         [% IF field.authorised_value_category %]
-                                            <select id="field_[% field.id %]" name="field_[% field.id %]">
+                                            <select id="field_[% field.id | html %]" name="field_[% field.id | html %]">
                                                 <option value="">No change</option>
                                                 [% FOREACH av IN AuthorisedValues.Get(field.authorised_value_category) %]
-                                                    <option value="[% av.authorised_value %]">[% av.lib %]</option>
+                                                    <option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
                                                 [% END %]
                                             </select>
                                         [% ELSE %]
-                                            <input id="field_[% field.id %]" name="field_[% field.id %]" placeholder="No change"/>
+                                            <input type="text" id="field_[% field.id | html %]" name="field_[% field.id | html %]" placeholder="No change"/>
                                         [% END %]
                                     </li>
                                 [% END %]
                         </fieldset>
 
                         <fieldset class="action">
-                            <button type="submit" name="batchedit" value="1">Start batch edit</button>
+                            <button type="submit" name="batchedit" value="1">Save</button>
+                            <a class="cancel" href="[% referrer | url %]">Cancel</a>
                         </fieldset>
                     </form>
-                </div>
-            </div>
-            <div class="yui-b">
+
+            </main>
+        </div> <!-- /.col-sm-10.col-sm-push-2 -->
+
+        <div class="col-sm-2 col-sm-pull-10">
+            <aside>
                 [% INCLUDE 'serials-menu.inc' %]
-            </div>
-        </div>
+            </aside>
+        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
+    </div> <!-- /.row -->
+
 
     [% INCLUDE 'intranet-bottom.inc' %]