Koha/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasketform.tmpl
Owen Leonard 475fcc1f51 Setting focus on form fields
This patch includes an addition to the OPAC's default js (identical to one in the staff client) which lets you add a "focus" class to an element on the page and have javascript move the focus to that element (input or link).

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-04-18 18:36:11 -05:00

38 lines
1.4 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Sending Your Cart
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
</head>
<body style="padding: 1em;" id="sendbasket">
<div class="container"><!-- TMPL_IF NAME="email_add" -->
<!-- TMPL_IF NAME="SENT" -->
<h3>Message Sent</h3>
<p>The cart was sent to: <!-- TMPL_VAR NAME="email_add" --></p>
<p><a class="focus close" href="#">Close window</a></p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="error" -->
<p>Problem sending the cart...</p>
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<form action="<!-- TMPL_VAR NAME="url" -->" method="post">
<fieldset class="rows">
<legend>Sending your cart</legend>
<ol> <li>
<label for="email_add">Email Address:</label>
<input type="text" id="email_add" name="email_add" size="43" class="focus" />
</li>
<li>
<label for="comment">Comment:</label>
<textarea id="comment" name="comment" rows="4" cols="40"></textarea>
</li>
<li>
<input type="hidden" name="bib_list" value="<!-- TMPL_VAR NAME="bib_list" -->" />
</li></ol></fieldset>
<fieldset class="action"> <input type="submit" value="Send" /> <a class="cancel close" href="#">Cancel</a> </fieldset>
</form>
<!-- /TMPL_IF --></div>
</body>
</html>