Merge branch 'bug_9850' into 3.14-master
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / rotating_collections / addItems.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Tools &rsaquo; Rotating collections &rsaquo; Add/Remove items</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body>
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'cat-search.inc' %]
8
9 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> &rsaquo; Add/Remove items</div>
10
11 <div id="doc3">
12 <div id="bd">
13         <div class="yui-gb">
14
15       <h1>Rotating collections: Add/Remove items</h1>
16
17       <div>
18           <br />
19           [% IF ( previousActionAdd ) %]
20             [% IF ( addSuccess ) %]
21               <div>Item with barcode '[% addedBarcode %]' Added successfully!</div>
22             [% ELSE %]
23               <div>Failed to add item with barcode '[% addedBarcode %]'!</div>
24               <div>Reason: <strong>[% failureMessage %]</strong></div>
25             [% END %]
26           [% END %]
27
28           [% IF ( previousActionRemove ) %]
29             [% IF ( removeSuccess ) %]
30               <div>Item with barcode '[% addedBarcode %]' Removed successfully!</div>
31             [% ELSE %]
32               <div>Failed to remove item with barcode '[% removedBarcode %]'!</div>
33               <div>Reason: <strong>[% failureMessage %]</strong></div>
34             [% END %]
35           [% END %]
36
37           <h3>Add item to <i>[% colTitle %]</i></h3>
38       </div>
39
40       <div>
41         <form action="addItems.pl" method="post">
42         <table>
43           <tr>
44             <th><label for="barcode">Barcode: </label></td>
45             <td><input type="text" id="barcode" name="barcode" /></td>
46             <td>
47               [% IF ( removeChecked ) %]<input type="checkbox" name="removeItem" checked="checked" />
48               [% ELSE %]<input type="checkbox" name="removeItem" />[% END %]
49               <label for="removeItem">Remove item from collection</label>
50             </td>
51           </tr>
52
53           <input type="hidden" id="colId" name="colId" value="[% colId %]" />
54           <input type="hidden" name="action" value="addItem" />
55           <tr><td align="right" colspan="99"><input type="submit" value="Submit" /></td></tr>
56         </table>
57         </form>
58       </div>
59
60       <div>
61         <h2>Items in this collection</h2>
62         [% IF ( collectionItemsLoop ) %]
63           <table>
64             <tr>
65               <th>Title</th>
66               <th>Call number</th>
67               <th>Barcode</th>
68             </tr>
69             [% FOREACH collectionItemsLoo IN collectionItemsLoop %]
70               <tr>
71                 <td>[% collectionItemsLoo.title |html %]</td>
72                 <td>[% collectionItemsLoo.itemcallnumber %]</td>
73                 <td>[% collectionItemsLoo.barcode %]</td>
74               </tr>
75             [% END %]
76           </table>
77         [% ELSE %]
78           There are no items in this collection.
79         [% END %]
80       </div>
81
82       <div>
83         <br/>
84         <input type="button" value="Return to rotating collections home" onclick="window.location.href='rotatingCollections.pl'">
85       </div>
86
87 </div>
88 </div>
89 [% INCLUDE 'intranet-bottom.inc' %]
90