Owen Leonard
5fbf07df7c
This patch corrects several problems with the course reserves add item pages: - Non-standard grid markup. - Extra </div>. - Incorrect styling of errors and messages. - Redundant JS for adding focus to a field (use "focus" class). - Invalid use of <label> with no corresponding input (use <span class="label"> instead). - Incorrect capitalization. To test, apply the patch and examing both steps of the process of adding an item to an existing course: The initial "scan barcode" form, and the form for editing details of a scanned item. Some cases to check: - Scan an invalid barcode. - Scan a barcode which has already been added to a course. - Scan a barcode wihch has already been added to the course you're working with. Forms should look correct and work correctly. This patch contains whitespace changes, so please ignore whitespace when examining changes. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> The add item screen continues to work as before. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Passes koha-qa.pl. Works as advertised. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
40 lines
1.6 KiB
Text
40 lines
1.6 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Course reserves › Add items</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body>
|
|
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'cat-search.inc' %]
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> › Add reserves for <i><a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]">[% course.course_name %]</a></i></div>
|
|
|
|
<div id="doc" class="yui-t7">
|
|
<div id="bd">
|
|
[% IF ERROR_BARCODE_NOT_FOUND %]
|
|
<div class="dialog alert">No item found with barcode [% ERROR_BARCODE_NOT_FOUND %]</div>
|
|
[% END %]
|
|
|
|
<form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
|
|
<input type="hidden" name="course_id" value="[% course.course_id %]" />
|
|
<input type="hidden" name="action" value="lookup" />
|
|
|
|
<fieldset class="rows">
|
|
<legend>Add items: scan barcode</legend>
|
|
<ol>
|
|
<li>
|
|
<label class="required" for="barcode">Item barcode:</label>
|
|
<input id="barcode" name="barcode" class="focus" type="text" />
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
|
|
<fieldset class="action">
|
|
<input type="submit" value="Submit" class="submit" />
|
|
|
|
<a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]" class="cancel">Cancel</a>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|