]> git.koha-community.org Git - koha.git/blob - koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt
Merge remote branch 'kc/new/enh/bug_5917' into kcmaster
[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               <input type="checkbox" name="removeItem" [% IF ( removeChecked ) %]checked[% END %] >
48               <label for="removeItem">Remove Item from Collection</label>
49             </td>
50           </tr>
51
52           <input type="hidden" id="colId" name="colId" value="[% colId %]" />
53           <input type="hidden" name="action" value="addItem" />
54           <tr><td align="right" colspan="99"><input type="submit" value="Submit" /></td></tr>
55         </table>
56         </form>
57       </div>
58
59       <div>
60         <h2>Items In This Collection</h2>
61         [% IF ( collectionItemsLoop ) %]
62           <table>
63             <tr>
64               <th>Title</th>
65               <th>Callnumber</th>
66               <th>Barcode</th>
67             </tr>
68             [% FOREACH collectionItemsLoo IN collectionItemsLoop %]
69               <tr>
70                 <td>[% collectionItemsLoo.title |html %]</td>
71                 <td>[% collectionItemsLoo.itemcallnumber %]</td>
72                 <td>[% collectionItemsLoo.barcode %]</td>
73               </tr>
74             [% END %]
75           </table>
76         [% ELSE %]
77           There are no Items in this Collection.
78         [% END %]
79       </div>
80
81       <div>
82         <br/>
83         <input type="button" value="Return to Rotating Collections Home" onclick="window.location.href='rotatingCollections.pl'">
84       </div>
85
86 </div>
87 </div>
88 [% INCLUDE 'intranet-bottom.inc' %]
89