(bug #3622) fix supplier url
[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="<!-- TMPL_VAR NAME="yuipath" -->/fonts/fonts-min.css" />
6 <script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/yahoo-dom-event/yahoo-dom-event.js"></script>
7 <script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/animation/animation-min.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/dragdrop/dragdrop-min.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/element/element-min.js"></script>
10 <script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/tabview/tabview-min.js"></script>
11 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/acq.js"></script>
12 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME='yuipath' -->/tabview/assets/skins/sam/tabview.css" /> 
13  
14 <style type="text/css">
15 /*margin and padding on body element
16   can introduce errors in determining
17   element position and are not recommended;
18   we turn them off as a foundation for YUI
19   CSS treatments. */
20 body {
21         margin:0;
22         padding:0;
23 }
24
25 #ungrouped {
26         overflow: auto;
27         height: 400px;
28 }
29
30 .draglist{
31         width: 200px;
32         height: 300px;
33         overflow: auto;
34 }
35
36 div.workarea_alt { padding: 5px; float:left; width: 95%;}
37 div.closed { background-color="pink"; padding:10px; float:left; width: 45%;}
38
39 ul.closed {
40     position: relative;
41     background: grey;
42     padding-bottom:10;
43     border: 1px solid gray;
44     list-style: none;
45     margin:0;
46     padding: 5px;
47 }
48
49 ul.draglist {
50     position: relative;
51     background: #f7f7f7;
52     padding-bottom:10;
53     border: 1px solid gray;
54     list-style: none;
55     margin:0;
56     padding: 5px;
57 }
58
59 ul.draglist li {
60     margin: 1px;
61     cursor: move;
62     list-style: none;
63 }
64
65 ul.draglist_alt {
66     position: relative;
67     border: 1px solid gray;
68     list-style: none;
69     margin: 0;
70     background: #f7f7f7;
71     padding: 5px;
72     cursor: move;
73 }
74
75 ul.draglist_alt li {
76     margin: 1px;
77     list-style: none;
78 }
79
80 li.grouped {
81     background-color: #D1E6EC;
82     border:1px solid #7EA6B2;
83     list-style: none;
84 }
85
86 li.ungrouped {
87     background-color: #D8D4E2;
88     border:1px solid #6B4C86;
89 }
90
91 fieldset.various li {
92     list-style: none;
93     clear: none;
94 }
95
96 .basketgroup {
97         margin-top: 10px;
98         font-size: 1.2em;
99         font-weight: bold;
100         list-style: none;
101         background-color: #D8D4E2;
102         display: block;
103 }
104 .basketgroup li{
105         font-size: 0.5em;
106         list-style: none;
107         display: inline;
108 }
109
110 </style>
111
112 <script type="text/javascript">
113 //<![CDATA[
114         YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true);
115         var tabView = new YAHOO.widget.TabView('bgtabs');
116 //]]>
117 </script>
118 </head>
119 <body>
120 <!-- TMPL_INCLUDE NAME="header.inc" -->
121 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
122
123 <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>
124
125 <div id="doc" class="yui-t7">
126             
127         <div class="yui-b"> 
128                 <div id="toolbar">
129                                 <script type="text/javascript">
130                                         //<![CDATA[
131                                 
132                                         // prepare DOM for YUI Toolbar
133                                 
134                                          $(document).ready(function() {
135                                           //  $("#toolbar").empty();
136                                             yuiToolbar();
137                                          });
138                                 
139                                         // YUI Toolbar Functions
140                                 
141                                         function yuiToolbar() {
142                                                 var booksellermenu = [
143                                                         { text: _("Bookseller"), url: "/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR name="booksellerid" -->" },
144                                                         { text: _("Edit bookseller"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->"},
145                                                 ]
146                                                 var ordersbutton = [
147                                                          { text: _("Manage orders"), url: "/cgi-bin/koha/acqui/booksellers.pl?supplier=<!-- TMPL_VAR name="booksellerid" -->" },
148                                                          { text: _("Edit uncertain prices"), url: "/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&owner=1" },
149                                                 ]
150                                                 new YAHOO.widget.Button("newbasketgroup");
151                                             new YAHOO.widget.Button({
152                                                 type: "menu",
153                                                 label: _("Bookseller"),
154                                                 name: "booksellerbutton",
155                                                 menu: booksellermenu,
156                                                 container: "toolbar"
157                                             });
158                                             
159                                             new YAHOO.widget.Button({
160                                                 type: "menu",
161                                                 label: _("Orders"),
162                                                 name: "ordersbutton",
163                                                 menu: ordersbutton,
164                                                 container: "toolbar"
165                                             });
166                                         }
167                                         //]]>
168                                 </script>
169                                 <a href="?op=add&amp;booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->" name="newbasketgroup" id="newbasketgroup">New Basket Group</a>
170                         </div>
171                 <h1>Basket grouping for Vendor <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR name="booksellername" --></a></h1>
172                 </div>
173 <!--  TMPL_IF NAME="grouping" -->
174         <div id="bd"> 
175             <div class="yui-gc"> 
176                     <div class="yui-u first"> 
177
178                                 <form action="<!-- TMPL_VAR name="scriptname" -->" method="post" name="basketgroups" id="basketgroups">
179                     <div id="groups">
180                     <div class="workarea_alt" >
181                     <h3>Ungrouped Baskets</h3>
182                     <ul id="ungrouped" class="draglist_alt">
183                     <!-- TMPL_IF NAME="baskets" -->
184                         <!-- TMPL_LOOP NAME="baskets" -->
185                             <li class="ungrouped" id="b-<!-- TMPL_VAR NAME="basketno" -->" >
186                                 <a href="basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">
187                                 <!-- TMPL_IF NAME="basketname" -->
188                                     <!-- TMPL_VAR NAME="basketname" -->
189                                 <!-- TMPL_ELSE -->
190                                     No name, basketnumber: <!-- TMPL_VAR NAME="basketno" -->
191                                 <!-- /TMPL_IF -->
192                                 </a>, <br />
193                                 Total: <!-- TMPL_VAR name="total" -->
194                                 <input type="hidden" class="basket" name="basket" value="<!-- TMPL_VAR NAME="basketno" -->" />
195                             </li>
196                             <!-- /TMPL_LOOP -->
197                         <!-- /TMPL_IF -->
198                         </ul>
199                     </div>
200                     </div>
201                     </form>
202
203                         </div> 
204                         
205                     <div class="yui-u grouping"> 
206                         <form action="" method="post">
207                                         <fieldset id="various" class='various' >
208                                 <h3><label for="basketgroupname">Basketgroup Name:</label></h3>
209                                 <input type="text" name="basketgroupname" id="basketgroupname" />
210                                         <div class="workarea">
211                                                         <h3>Grouping</h3>
212                                                         <ul class="draglist" id="bg">
213                                                                 <!-- TMPL_LOOP NAME="selectedbaskets" -->
214                                                     <li class="grouped" id="b-<!-- TMPL_VAR NAME="basketno" -->" >
215                                                         <a href="basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">
216                                                         <!-- TMPL_IF NAME="basketname" -->
217                                                             <!-- TMPL_VAR NAME="basketname" -->
218                                                         <!-- TMPL_ELSE -->
219                                                             No name, basketnumber: <!-- TMPL_VAR NAME="basketno" -->
220                                                         <!-- /TMPL_IF -->
221                                                         </a>, <br />
222                                                         Total: <!-- TMPL_VAR name="total" -->
223                                                         <input type="hidden" class="basket" name="basket" value="<!-- TMPL_VAR NAME="basketno" -->" />
224                                                     </li>
225                                             <!-- /TMPL_LOOP -->
226
227                                                         </ul>
228                                                 </div>
229                                                 <div><input type="checkbox" name="close">Close</input></div>
230                                 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
231                                 <!-- TMPL_IF NAME="basketgroupid" -->
232                                         <input type="hidden" name="basketgroupid" value="<!-- TMPL_VAR name="basketgroupid" -->" />
233                                 <!-- /TMPL_IF -->
234                                 <input type="hidden" name="op" value="attachbasket" />
235                                 <input type="submit" value="Save" />
236                                         </fieldset>
237                                 </form>
238                         </div> 
239                 </div>   
240     </div> 
241 <!-- TMPL_ELSE -->
242         <div class="yui-g"> 
243                 <div id="bgtabs" class="yui-navset">
244                     <ul class="yui-nav">
245                         <li class="selected"><a href="#opened"><em>Opened</em></a></li>
246                         <li><a href="#closed"><em>Closed</em></a></li>
247                     </ul>            
248                     <div class="yui-content">
249                         <div id="opened">
250                                 <ul>
251                                         <!-- TMPL_LOOP NAME="basketgroups" -->
252                                                 <!-- TMPL_UNLESS NAME="closed" -->
253                                         <li class="basketgroup">
254                                                 <!-- TMPL_IF NAME="name" -->
255                                                         <!-- TMPL_VAR NAME="name" -->
256                                                 <!-- TMPL_ELSE -->
257                                                         Basket Group n°<!-- TMPL_VAR NAME="id" -->
258                                                 <!-- /TMPL_IF -->
259                                                 <ul>
260                                                         <li>
261                                                                 <span class="yui-button yui-link-button">
262                                                                         <span class="first-child">
263                                                                                 <a href="javascript:closeandprint(<!-- TMPL_VAR "id" -->)" class="yui-button yui-link-button">Close & Print</a>
264                                                                         </span>
265                                                                 </span>
266                                                         </li>
267                                                         <li>
268                                                                 <span class="yui-button yui-link-button">
269                                                                         <span class="first-child">
270                                                                                 <a href="?op=add&amp;booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketgroupid=<!-- TMPL_VAR NAME="id" -->" class="yui-button yui-link-button" >Edit</a>
271                                                                         </span>
272                                                                 </span>
273                                                         </li>
274                                                         <li>
275                                                                 <span class="yui-button yui-link-button">
276                                                                         <span class="first-child">
277                                                                                 <a href="?op=delete&amp;booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketgroupid=<!-- TMPL_VAR NAME="id" -->" class="yui-button yui-link-button" >Delete</a>
278                                                                         </span>
279                                                                 </span>
280                                                         </li>
281                                                         
282                                                 </ul>
283                                         </li>
284                                                 <!-- /TMPL_UNLESS -->
285                                         <!-- /TMPL_LOOP -->
286                                 </ul>
287                         </div>
288                         <div id="closed">
289                                 <ul>
290                                         <!-- TMPL_LOOP NAME="basketgroups" -->
291                                                 <!-- TMPL_IF NAME="closed" -->
292                                                 <li class="basketgroup">
293                                                         <!-- TMPL_IF NAME="name" -->
294                                                                 <!-- TMPL_VAR NAME="name" -->
295                                                         <!-- TMPL_ELSE -->
296                                                                 Basket Group n°<!-- TMPL_VAR NAME="id" -->
297                                                         <!-- /TMPL_IF -->
298                                                         <ul>
299                                                                 <li>
300                                                                                 <span class="yui-button yui-link-button">
301                                                                                 <span class="first-child">
302                                                                                         <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=reopen&amp;booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketgroupid=<!-- TMPL_VAR "id" -->" class="yui-button yui-link-button">Reopen</a>
303                                                                                 </span>
304                                                                         </span>
305                                                                 </li>
306                                                                 <li>
307                                                                                 <span class="yui-button yui-link-button">
308                                                                                 <span class="first-child">
309                                                                                         <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=print&amp;basketgroupid=<!-- TMPL_VAR "id" -->" class="yui-button yui-link-button">Print</a>
310                                                                                 </span>
311                                                                         </span>
312                                                                 </li>
313                                                         </ul>
314                                                 </li>
315                                                 <!-- /TMPL_IF -->
316                                         <!-- /TMPL_LOOP -->
317                                 </ul>
318                         </div>
319                     </div>
320                 </div>
321                 
322         </div> 
323 <!--  /TMPL_IF -->
324
325 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->