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