Bug 10418 - Correct template markup problems on course reserves add item page
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / course_reserves / add_items-step2.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Course reserves &rsaquo; Add items</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5
6 <body>
7
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'cat-search.inc' %]
10
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> &rsaquo; Reserve <i><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]">[% item.title %]</a></i> for <i><a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]">[% course.course_name %]</a></i></div>
12
13 <div id="doc" class="yui-t7">
14     <div id="bd">
15
16         [% IF course_reserve %]<div class="dialog message" id="already_on_reserve_this">This course already has this item on reserve.</div>[% END %]
17         [% IF course_item %]<div class="dialog message" id="already_on_reserve">Number of courses reserving this item: [% course_item.course_reserves.size %]</div>[% END %]
18
19         <form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
20             <input type="hidden" name="course_id" value="[% course.course_id %]" />
21             <input type="hidden" name="action" value="add" />
22
23             <fieldset class="rows">
24                 <legend>Add <i>[% item.title %]</i> to <i>[% course.course_name %]</i></legend>
25                 <ol>
26                     <li>
27                         <span class="label">Barcode:</span>
28                         <span id="barcode">[% item.barcode %]</span>
29                         <input type="hidden" name="itemnumber" value="[% item.itemnumber %]" />
30                     </li>
31
32                     [% IF item_level_itypes %]
33                     <li>
34                         <label class="required" for="itype">Item type:</label>
35                         <select id="itype" name="itype">
36                             <option value="">LEAVE UNCHANGED</option>
37
38                             [% FOREACH it IN itypes %]
39                                 [% IF course_item.itype && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %]
40                                     <option value="[% it.itemtype %]" selected="selected">[% it.description %]</option>
41                                 [% ELSE %]
42                                     <option value="[% it.itemtype %]">[% it.description %]</option>
43                                 [% END %]
44                             [% END %]
45                         </select>
46                     </li>
47                     [% END %]
48
49                     <li>
50                         <label class="required" for="ccode">Collection code:</label>
51                         <select id="ccode" name="ccode">
52                             <option value="">LEAVE UNCHANGED</option>
53
54                             [% FOREACH c IN ccodes %]
55                                 [% IF course_item.ccode && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %]
56                                     <option value="[% c.authorised_value %]" selected="selected">[% c.lib %]</option>
57                                 [% ELSE %]
58                                     <option value="[% c.authorised_value %]">[% c.lib %]</option>
59                                 [% END %]
60                             [% END %]
61                         </select>
62                     </li>
63
64                     <li>
65                         <label class="required" for="location">Shelving location:</label>
66                         <select id="location" name="location">
67                             <option value="">LEAVE UNCHANGED</option>
68
69                             [% FOREACH s IN locations %]
70                                 [% IF course_item.location && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %]
71                                     <option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option>
72                                 [% ELSE %]
73                                     <option value="[% s.authorised_value %]">[% s.lib %]</option>
74                                 [% END %]
75                             [% END %]
76                         </select>
77                     </li>
78
79                     <li>
80                         <label class="required" for="holdingbranch">Holding library:</label>
81                         <select id="holdingbranch" name="holdingbranch">
82                             <option value="">LEAVE UNCHANGED</option>
83
84                             [% FOREACH b IN branches %]
85                                 [% IF course_item.holdingbranch && ( ( course.enabled == 'yes' && b.value == item.holdingbranch ) || ( course.enabled == 'no' && b.value == course_item.holdingbranch ) ) %]
86                                     <option value="[% b.value %]" selected="selected">[% b.branchname %]</option>
87                                 [% ELSE %]
88                                     <option value="[% b.value %]">[% b.branchname %]</option>
89                                 [% END %]
90                             [% END %]
91                         </select>
92                     </li>
93
94                     <li>
95                         <label for="staff_note">Staff note:</label>
96                         <textarea name="staff_note" id="staff_note">[% course_reserve.staff_note %]</textarea>
97                     </li>
98
99                     <li>
100                         <label for="public_note">Public note:</label>
101                         <textarea name="public_note" id="public_note">[% course_reserve.public_note %]</textarea>
102                     </li>
103
104                 </ol>
105             </fieldset>
106
107             <fieldset class="action">
108                 <input type="submit" id="submit" value="Save" class="submit focus" />
109
110                 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]" class="cancel">Cancel</a>
111             </fieldset>
112         </form>
113     </div>
114
115 [% INCLUDE 'intranet-bottom.inc' %]