text change (minor)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / basketgroup.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Basket grouping for Vendor <!-- TMPL_VAR name="booksellername" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/fonts/fonts-min.css" />
6 <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
7 <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/animation/animation-min.js"></script>
8 <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/dragdrop/dragdrop-min.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/acq.js"></script>
10
11 <script type="text/javascript">
12 //<![CDATA[
13 function Check(ff) {
14     ff.submit();
15 }
16 var basketgroups = 1;
17 YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true);
18 //]]>
19 </script>
20 <style type="text/css">
21 /*margin and padding on body element
22   can introduce errors in determining
23   element position and are not recommended;
24   we turn them off as a foundation for YUI
25   CSS treatments. */
26 body {
27         margin:0;
28         padding:0;
29 }
30
31 div.workarea { padding:10px; float:left; width: 45%;}
32 div.workarea_alt { padding: 5px; float:left; width: 95%;}
33 div.closed { background-color="pink"; padding:10px; float:left; width: 45%;}
34
35 ul.closed {
36     position: relative;
37     background: grey;
38     padding-bottom:10;
39     border: 1px solid gray;
40     list-style: none;
41     margin:0;
42     padding: 5px;
43 }
44
45 ul.draglist {
46     position: relative;
47     background: #f7f7f7;
48     padding-bottom:10;
49     border: 1px solid gray;
50     list-style: none;
51     margin:0;
52     padding: 5px;
53 }
54
55 ul.draglist li {
56     margin: 1px;
57     cursor: move;
58     list-style: none;
59 }
60
61 ul.draglist_alt {
62     position: relative;
63     border: 1px solid gray;
64     list-style: none;
65     margin: 0;
66     background: #f7f7f7;
67     padding: 5px;
68     cursor: move;
69 }
70
71 ul.draglist_alt li {
72     margin: 1px;
73     list-style: none;
74 }
75
76 li.grouped {
77     background-color: #D1E6EC;
78     border:1px solid #7EA6B2;
79     list-style: none;
80 }
81
82 li.ungrouped {
83     background-color: #D8D4E2;
84     border:1px solid #6B4C86;
85 }
86
87 fieldset.various li {
88     list-style: none;
89     clear: none;
90 }
91
92 </style>
93 </head>
94 <body>
95 <!-- TMPL_INCLUDE NAME="header.inc" -->
96 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
97
98 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;<a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="booksellername" --></a> &rsaquo; Basket grouping for vendor: <!-- TMPL_VAR NAME="booksellername" --></div>
99
100 <div id="doc" class="yui-t7">
101     <div id="bd">
102         <div id="yui-main">
103
104                 <div id="toolbar">
105 <script type="text/javascript">
106         //<![CDATA[
107
108         // prepare DOM for YUI Toolbar
109
110          $(document).ready(function() {
111             $("#toolbar").empty();
112             yuiToolbar();
113          });
114
115         // YUI Toolbar Functions
116
117         function yuiToolbar() {
118             new YAHOO.widget.Button("newrecord");
119                 var booksellermenu = [
120                         { text: _("Bookseller"), url: "/cgi-bin/koha/acqui/supplier.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->" },
121                         { text: _("Edit bookseller"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->"},
122                 ]
123                 var ordersbutton = [
124                          { text: _("Manage orders"), url: "/cgi-bin/koha/acqui/booksellers.pl?supplier=<!-- TMPL_VAR name="booksellerid" -->" },
125                          { text: _("Edit uncertain prices"), url: "/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&owner=1" },
126                 ]
127
128             new YAHOO.widget.Button({
129                 type: "menu",
130                 label: _("Bookseller"),
131                 name: "booksellerbutton",
132                 menu: booksellermenu,
133                 container: "toolbar"
134             });
135             
136             new YAHOO.widget.Button({
137                 type: "menu",
138                 label: _("Orders"),
139                 name: "ordersbutton",
140                 menu: ordersbutton,
141                 container: "toolbar"
142             });
143         }
144         //]]>
145         </script>
146         </div>
147                 
148             </div>
149             <div class="yui-b"> 
150         <h1>Basket grouping for Vendor <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR name="booksellername" --></a></h1>
151             <div class="yui-gc"> 
152            <div class="yui-u">
153             <fieldset id="various" class='various' >
154                 <ul >
155                 <li>
156                 <label for="newbasketgroupname">New Basketgroup:</label>
157                 <input type="text" name="newbasketgroupname" id="newbasketgroupname" onkeypress="newGroup(event, document.getElementById('newbasketgroupname').value);" checked/>
158                 <span class="yui-button yui-link-button">
159                     <span class=" first-child"><a href="javascript: newGroup('button', document.getElementById('newbasketgroupname').value);">Ok</a></span>
160                 </span>
161                 </li>
162                 <li>
163                 <label for="filter baskets (regexp)">Filter Basketgroups (regexps allowed):</label>
164                 <input type="text" name="filter baskets (regexp)" id="filter baskets (regexp)" onkeypress="filterGroups(event, document.getElementById('filter baskets (regexp)').value);" />
165                 <span class="yui-button yui-link-button">
166                     <span class=" first-child"><a href="javascript: filterGroups('button', document.getElementById('filter baskets (regexp)').value);">Ok</a></span>
167                 </span>
168                 </li>
169                 <li>
170                 <label for="showclosed">Show closed basketgroups</label>
171                 <input type="checkbox" name="showclosed" id="showclosed" value="1" onChange="showhideclosegroups(document.getElementById('showclosed').checked);" unchecked />
172                 </li>
173                 <li>
174                 <label for="Move all ungrouped baskets to:">Move all ungrouped baskets to</label>
175                 <input type="text" name="Move all ungrouped baskets to:" id="Move all ungrouped baskets to:" onkeypress="moveallungroupedto(event, document.getElementById('Move all ungrouped baskets to:').value);" />
176                 <span class="yui-button yui-link-button">
177                     <span class=" first-child"><a href="javascript: moveallungroupedto('button', document.getElementById('Move all ungrouped baskets to:').value);">Ok</a></span>
178                 </span>
179                 </li>
180                 </ul>
181             </fieldset>
182         </div>
183         <div class="yui-u first">
184         <form action="<!-- TMPL_VAR name="scriptname" -->" method="post" name="basketgroups" id="basketgroups">
185             <div id="groups">
186             <div class="workarea_alt" >
187             <h3>Ungrouped Baskets</h3>
188             <ul id="ungrouped" class="draglist_alt">
189             <!-- TMPL_IF NAME="baskets" -->
190                 <!-- TMPL_LOOP NAME="baskets" -->
191                     <li class="ungrouped" id="<!-- TMPL_VAR NAME="basketno" -->" >
192                         <a href="basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">
193                         <!-- TMPL_IF NAME="basketname" -->
194                             <!-- TMPL_VAR NAME="basketname" -->
195                         <!-- TMPL_ELSE -->
196                             No name, basketnumber: <!-- TMPL_VAR NAME="basketno" -->
197                         <!-- /TMPL_IF -->
198                         </a>, <br />
199                         Total: <!-- TMPL_VAR name="total" -->
200                         <input type="hidden" id="<!-- TMPL_VAR NAME="basketno" -->-group" name="<!-- TMPL_VAR NAME="basketno" -->-group" value="0" />
201                         <input type="hidden" id="basket-<!-- TMPL_VAR NAME="basketno" -->-changed" name="basket-<!-- TMPL_VAR NAME="basketno" -->-changed" value="0" />
202                     </li>
203                     <!-- /TMPL_LOOP -->
204                 <!-- /TMPL_IF>
205                 </ul>
206             </div>
207
208             <!-- TMPL_IF NAME="basketgroups" -->
209                 <!-- TMPL_LOOP NAME="basketgroups" -->
210                     <!-- TMPL_IF NAME="closed" -->
211                         <div class="closed" style="display: none">
212                         <h3 ><!-- TMPL_VAR NAME="name" --></h3>
213                         <p > [ 
214                                 <a href="javascript:parent.location='basketgroup.pl?op=printbgroup&bgroupid=<!-- TMPL_VAR NAME="id" -->';">print</a>/
215                                 <a href="javascript:unclosegroup('<!-- TMPL_VAR name="id" -->');">Unclose group</a>
216                         ]</p>
217                         <ul id="bg-<!-- TMPL_VAR NAME="id" -->" class="closed">
218                     <!-- TMPL_ELSE -->
219                         <div class="workarea">
220                         <h3 ><!-- TMPL_VAR NAME="name" --></h3>
221                         <p > [ 
222                             <a href="javascript:renameinit(<!-- TMPL_VAR NAME="id" -->);">rename</a> / 
223                             <a href="javascript:closebasketgroup('<!-- TMPL_VAR NAME="id" -->');">close</a>
224                         ]</p>
225                         <ul id="bg-<!-- TMPL_VAR NAME="id" -->" class="draglist">
226
227                     <!-- /TMPL_IF -->
228                         <!-- TMPL_LOOP NAME="baskets" -->
229                             <li class="grouped" id="<!-- TMPL_VAR NAME="basketno" -->">
230                                 <a href="basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">
231                                 <!-- TMPL_IF NAME="basketname" -->
232                                     <!-- TMPL_VAR NAME="basketname" -->
233                                 <!-- TMPL_ELSE -->
234                                     No name, basketnumber: <!-- TMPL_VAR NAME="basketno" -->
235                                 <!-- /TMPL_IF -->
236                                 </a>, <br />
237                                 Total: <!-- TMPL_VAR name="total" -->
238                                 <input type="hidden" id="<!-- TMPL_VAR NAME="basketno" -->-group"name="<!-- TMPL_VAR NAME="basketno" -->-group" value="<!-- TMPL_VAR NAME="id" -->" />
239                                 <input type="hidden" id="basket-<!-- TMPL_VAR NAME="basketno" -->-changed" name="basket-<!-- TMPL_VAR NAME="basketno" -->-changed" value="0" />
240                             </li>
241                         <!-- /TMPL_LOOP -->
242                         </ul>
243                         <input type="hidden" name="basketgroup-<!-- TMPL_VAR NAME="id" -->-name" id="basketgroup-<!-- TMPL_VAR NAME="id" -->-name" value='<!-- TMPL_VAR NAME="name" -->' />
244                         <input type="hidden" id="basketgroup-<!-- TMPL_VAR NAME="id" -->-closed" name="basketgroup-<!-- TMPL_VAR NAME="id" -->-closed" value="<!-- TMPL_VAR NAME="closed" -->" />
245                         <input type="hidden" id="basketgroup-<!-- TMPL_VAR NAME="id" -->-changed" name="basketgroup-<!-- TMPL_VAR NAME="id" -->-changed" value="0" />
246                     </div>
247                 <!-- /TMPL_LOOP -->
248             <!-- /TMPL_IF -->
249             </div>
250             <fieldset class="action">
251                 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
252                 <input type="hidden" name="op" value="validate" />
253                 <input type="button" value="Save" onclick="Check(this.form);" />
254             </fieldset>
255             </form>
256             </div>
257             </div>
258             </div>
259         </div>
260     </div>
261 </div>