Merge remote-tracking branch 'origin/new/bug_6291'
[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>Callnumber</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