[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha ›
+<title>Koha › Acquisitions ›
[% IF ( add_form ) %]
[% IF ( basketno ) %]Edit basket '[% basketname %]'
- [% ELSE %]add a basket to [% booksellername %]
+ [% ELSE %]Add a basket to [% booksellername %]
[% END %]
[% END %]
</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)\n";
- _alertString +="-------------------------------------------------------------------\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>
-<style type="text/css">
-
-div.workarea { padding:10px; float:left }
-
-ul.draglist {
- position: relative;
- width: 200px;
- height:240px;
- background: #f7f7f7;
- border: 1px solid gray;
- list-style: none;
- margin:0;
- padding:0;
-}
-
-ul.draglist li {
- margin: 1px;
- cursor: move;
- zoom: 1;
-}
-
-ul.draglist_alt {
- position: relative;
- width: 200px;
- list-style: none;
- margin:0;
- padding:0;
- /*
- The bottom padding provides the cushion that makes the empty
- list targetable. Alternatively, we could leave the padding
- off by default, adding it when we detect that the list is empty.
- */
- padding-bottom:20px;
-}
-
-ul.draglist_alt li {
- margin: 1px;
- cursor: move;
-}
-
-
-li.list1 {
- background-color: #D1E6EC;
- border:1px solid #7EA6B2;
-}
-
-li.list2 {
- background-color: #D8D4E2;
- border:1px solid #6B4C86;
-}
-
-#user_actions { float: right; }
-
-</style>
-
</head>
-<body>
+<body id="acq_basketheader" class="acq">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'acquisitions-search.inc' %]
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> ›
- <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]">[% booksellername %]</a> ›
+ <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> ›
[% IF ( add_form ) %]
[% IF ( basketno ) %]Edit basket '[% basketname %]'
- [% ELSE %]add a basket to [% booksellername %]
+ [% ELSE %]Add a basket to [% booksellername %]
[% END %]
[% END %]
</div>
-<div id="doc3" class="yui-t2">
+<div id="doc" class="yui-t7">
<div id="bd">
-
+
<div id="yui-main">
-
- <div class="yui-b">
-
+
[% IF ( add_form ) %]
[% IF ( basketno ) %]
<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>
</li>
[% END %]
<li>
- <label for="basketname" class="required">Basket name</label>
- <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname %]" />
+ <label for="basketname" class="required">Basket name: </label>
+ <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>
+ <select name="billingplace" id="billingplace">
+ <option value="">--</option>
+ [% FOREACH billingplace IN billingplaceloop %]
+ [% IF ( billingplace.selected ) %]
+ <option value="[% billingplace.value %]" selected="selected">
+ [% ELSE %]
+ <option value="[% billingplace.value %]">
+ [% END %]
+ [% billingplace.branchname %]
+ </option>
+ [% END %]
+ </select>
+ </li>
+ <li>
+ <label for="deliveryplace">Delivery place:</label>
+ <select name="deliveryplace" id="deliveryplace">
+ <option value="">--</option>
+ [% FOREACH deliveryplace IN deliveryplaceloop %]
+ [% IF ( deliveryplace.selected ) %]
+ <option value="[% deliveryplace.value %]" selected="selected">
+ [% ELSE %]
+ <option value="[% deliveryplace.value %]">
+ [% END %]
+ [% deliveryplace.branchname %]
+ </option>
+ [% END %]
+ </select>
+ </li>
+ <li>
+ <label for="basketbooksellerid">Vendor: </label>
+ <select name="basketbooksellerid" id="basketbooksellerid">
+ [% FOREACH b IN booksellers %]
+ [% IF booksellerid == b.id %]
+ <option value="[% b.id %]" selected="selected">[% b.name %]</option>
+ [% ELSE %]
+ <option value="[% b.id %]">[% b.name %]</option>
+ [% END %]
+ [% END %]
+ </select>
</li>
<li>
- <label for="basketnote">Internal note</label>
+ <label for="basketnote">Internal note: </label>
<textarea name="basketnote" id="basketnote" rows="5" cols="40">[% basketnote %]</textarea>
</li>
<li>
- <label for="basketbooksellernote">Vendor note</label>
+ <label for="basketbooksellernote">Vendor note: </label>
<textarea name="basketbooksellernote" id="basketbooksellernote" rows="5" cols="40">[% basketbooksellernote %]</textarea>
</li>
[% IF ( contractloop ) %]
- <li><label for="basketcontractnumber">Contract</label>
+ <li><label for="basketcontractnumber">Contract: </label>
<select id="basketcontractnumber" name="basketcontractnumber">
<option value=""></option>
[% FOREACH contractloo IN contractloop %]
</select>
</li>
[% END %]
+ <li>
+ <label for="is_standing">Orders are standing:</label>
+ [% IF is_standing %]
+ <input type="checkbox" id="is_standing" name="is_standing" checked="checked" />
+ [% ELSE %]
+ <input type="checkbox" id="is_standing" name="is_standing"/>
+ [% END %]
+ <div class="hint">Standing orders do not close when received.</div>
+ </li>
</ol>
</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>
[% END %]
</div>
</div>
-<div class="yui-b">
- [% INCLUDE 'acquisitions-menu.inc' %]
-</div>
-</div>
[% INCLUDE 'intranet-bottom.inc' %]