Bug 30695: (follow-up) Fix selenium test
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / course_reserves / add_items-step1.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Add items &rsaquo; Course reserves &rsaquo; Koha</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body id="courses_add_items_step1" class="course">
7
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'cat-search.inc' %]
10
11 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
12     <ol>
13         <li>
14             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
15         </li>
16         <li>
17             <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a>
18         </li>
19         <li>
20             <a href="#" aria-current="page">
21                 Add reserves for <em>[% course.course_name | html %]</em>
22             </a>
23         </li>
24     </ol>
25 </nav>
26
27 <div class="main container-fluid">
28     <div class="row">
29         <div class="col-md-8 col-md-offset-2">
30             <h1>Add reserves for <em>[% course.course_name | html %]</em></h1>
31
32         [% IF ERROR_ITEM_NOT_FOUND %]
33             [% IF UNKNOWN_BARCODE %]
34                 <div class="dialog alert">No item found with barcode [% UNKNOWN_BARCODE | html %]</div>
35             [% ELSIF UNKNOWN_BIBLIONUMBER %]
36                 <div class="dialog alert">No bibliographic record found with biblionumber [% UNKNOWN_BIBLIONUMBER | html %]</div>
37             [% ELSE %]
38                  <div class="dialog alert">No item or bibliographic record found</div>
39             [% END %]
40         [% END %]
41
42         <form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
43             <input type="hidden" name="course_id" value="[% course.course_id | html %]" />
44             <input type="hidden" name="action" value="lookup" />
45
46             <fieldset class="rows">
47                 <legend>Add items: scan barcode</legend>
48                 <ol>
49                     <li>
50                         <label class="required" for="barcode">Item barcode:</label>
51                         <input id="barcode" name="barcode" class="focus" type="text" />
52                     </li>
53                 </ol>
54             </fieldset>
55
56             <fieldset class="rows">
57                 <legend>Or use biblionumber of a bibliographic record</legend>
58                 <ol>
59                     <li>
60                         <label class="required" for="biblionumber">Biblionumber:</label>
61                         <input id="biblionumber" name="biblionumber" type="text" />
62                     </li>
63                 </ol>
64             </fieldset>
65
66             <fieldset class="action">
67                 <input type="submit" value="Submit" class="submit" />
68
69                 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id | uri %]" class="cancel">Cancel</a>
70             </fieldset>
71         </form>
72     </div>
73 </div>
74
75 [% MACRO jsinclude BLOCK %]
76     <script>
77         $(document).ready(function(){
78             $("input[type='submit']").click(function(e){
79                 if ( $("#biblionumber").val().length > 0 && $("#barcode").val().length > 0 ) {
80                     e.preventDefault();
81                     alert(__("Please enter only a barcode, or only a biblionumber."));
82                 }
83             });
84         });
85     </script>
86 [% END %]
87
88 [% INCLUDE 'intranet-bottom.inc' %]