</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
-<script type="text/javascript">
-//<![CDATA[
-// to check if the data are correctly entered.
-function Check(ff) {
- var ok=0;
- var _alertString="Form not submitted because of the following problem(s)";
- _alertString +="\n-------------------------------------------------------------------\n\n";
- if (!(isNotNull(ff.basketname,0))){
- ok=1;
- _alertString += "- name missing\n";
- }
- if (ok) { // if there is a problem
- alert(_alertString);
- return false;
-}
-// if all is good
- ff.submit();
-}
-//]]>
-</script>
</head>
<body id="acq_basketheader" class="acq">
[% INCLUDE 'header.inc' %]
<h1>Edit basket [% basketname %]</h1>
[% ELSE %]<h1>Add a basket to [% booksellername %]</h1>
[% END %]
- <form name="Aform" action="[% script_name %]" method="post">
+ <form name="Aform" action="[% script_name %]" method="post" class="validated">
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
<fieldset class="rows">
<ol>
[% END %]
<li>
<label for="basketname" class="required">Basket name: </label>
- <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname %]" class="focus" />
+ <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname %]" required="required" class="required" />
+ <span class="required">Required</span>
</li>
<li>
<label for="billingplace">Billing place:</label>
</fieldset>
<fieldset class="action">
<input type="hidden" name="op" value="add_validate" />
- <input type="button" value="Save" onclick="Check(this.form);" />
+ <input type="submit" value="Save" />
<a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">Cancel</a>
</fieldset>
</form>