-[% USE KohaBranchName %]
+[% USE raw %]
+[% USE Asset %]
+[% USE Branches %]
+[% USE Price %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Basket grouping for [% booksellername |html %]</title>
-<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+<title>Koha › Basket grouping for [% booksellername | html %]</title>
+[% Asset.css("css/datatables.css") | $raw %]
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'datatables.inc' %]
-<script type="text/javascript" src="[% yuipath %]/utilities/utilities.js"></script>
-<script type="text/javascript" src="[% yuipath %]/button/button-min.js"></script>
-<script type="text/javascript" src="[% yuipath %]/container/container_core-min.js"></script>
-<script type="text/javascript" src="[% yuipath %]/menu/menu-min.js"></script>
-<script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
+[% Asset.js("lib/yui/utilities/utilities.js") | $raw %]
+[% Asset.js("lib/yui/button/button-min.js") | $raw %]
+[% Asset.js("lib/yui/container/container_core-min.js") | $raw %]
+[% Asset.js("lib/yui/menu/menu-min.js") | $raw %]
+[% Asset.js("js/basketgroup.js") | $raw %]
[% IF ( grouping ) %]
-<script type="text/javascript" src="[% yuipath %]/yahoo-dom-event/yahoo-dom-event.js"></script>
-<script type="text/javascript" src="[% yuipath %]/animation/animation-min.js"></script>
-<script type="text/javascript" src="[% yuipath %]/dragdrop/dragdrop-min.js"></script>
-<script type="text/javascript" src="[% yuipath %]/element/element-min.js"></script>
+[% Asset.js("lib/yui/yahoo-dom-event/yahoo-dom-event.js") | $raw %]
+[% Asset.js("lib/yui/animation/animation-min.js") | $raw %]
+[% Asset.js("lib/yui/dragdrop/dragdrop-min.js") | $raw %]
+[% Asset.js("lib/yui/element/element-min.js") | $raw %]
<style type="text/css">
/*margin and padding on body element
can introduce errors in determining
element position and are not recommended;
we turn them off as a foundation for YUI
CSS treatments. */
-body {
- margin:0;
- padding:0;
-}
-#basketgroupcolumns {
- width: 58em;
-}
+
#ungrouped {
overflow: auto;
height: 400px;
"aoColumnDefs": [
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
],
- sDom: 't',
- "bAutoWidth": false
+ "bAutoWidth": false,
+ "sPaginationType": "four_button"
} ));
});
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> ›
[% IF ( grouping ) %]
- <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]">Basket grouping</a> › Add basket group for [% booksellername |html %]</div>
+ <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a> › <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid | html %]">Basket grouping</a> › Add basket group for [% booksellername | html %]</div>
[% ELSE %]
- <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › Basket grouping</div>
+ <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a> › Basket grouping</div>
[% END %]
-<div id="doc3" class="yui-t2">
- <div id="bd">
- <div id="yui-main">
- <div class="yui-b">
-
-[% IF ( grouping ) %]
- <h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
- <div id="basketgroupcolumns" class="yui-g">
- <div class="yui-u">
-
- <form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups">
- <div id="groups">
- <fieldset class="brief">
- <div class="workarea_alt" >
- <h3>Ungrouped baskets</h3>
- <ul id="ungrouped" class="draglist_alt">
- [% IF ( baskets ) %]
- [% FOREACH basket IN baskets %]
- <li class="ungrouped" id="b-[% basket.basketno %]" >
- <a href="basket.pl?basketno=[% basket.basketno %]">
- [% IF ( basket.basketname ) %]
- [% basket.basketname %]
- [% ELSE %]
- No name, basketnumber: [% basket.basketno %]
- [% END %]
- </a>, <br />
- Total: [% basket.total %]
- <input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" />
- </li>
- [% END %]
- [% END %]
- </ul>
- </div>
- </fieldset>
- </div>
- </form>
- </div>
-
- <div class="yui-u first">
- <form action="" method="post" id="groupingform" onsubmit="return submitForm(this)">
- <fieldset id="various" class="brief">
- <ol>
- <li><label for="basketgroupname">Basket group name:</label>
- <input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" /></li>
- <li><label for="billingplace">Billing place:</label>
- <select name="billingplace" id="billingplace" style="width:13em;">
- <option value="">--</option>
- [% FOREACH billingplaceloo IN billingplaceloop %]
- [% IF ( billingplaceloo.selected ) %]<option value="[% billingplaceloo.value %]" selected="selected">[% billingplaceloo.branchname %]</option>
- [% ELSE %]<option value="[% billingplaceloo.value %]">[% billingplaceloo.branchname %]</option>[% END%]
- [% END %]
- </select></li>
- <li><label for="deliveryplace">Delivery place:</label>
- <select name="deliveryplace" id="deliveryplace" style="width:13em;">
- <option value="">--</option>
- [% FOREACH deliveryplaceloo IN deliveryplaceloop %]
- [% IF ( deliveryplaceloo.selected ) %]<option value="[% deliveryplaceloo.value %]" selected="selected">[% deliveryplaceloo.branchname %]</option>
- [% ELSE %]<option value="[% deliveryplaceloo.value %]">[% deliveryplaceloo.branchname %]</option>[% END %]
- [% END %]
- </select></li>
- <li><p>or</p></li>
- <li><label for="freedeliveryplace">Delivery place:</label>
- <textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea></li>
- <li><label for="deliverycomment">Delivery comment:</label>
- <textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea>
- </li>
- <li><span class="label">Baskets in this group:</span>
- <ul class="draglist" id="bg">
- [% FOREACH selectedbasket IN selectedbaskets %]
- <li class="grouped" id="b-[% selectedbasket.basketno %]" >
- <a href="basket.pl?basketno=[% selectedbasket.basketno %]">
- [% IF ( selectedbasket.basketname ) %]
- [% selectedbasket.basketname %]
- [% ELSE %]
- No name, basketnumber: [% selectedbasket.basketno %]
- [% END %]
- </a>, <br />
- Total: [% selectedbasket.total %]
- <input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" />
- </li>
- [% END %]
- </ul>
- </li>
- <li><label><input type="checkbox" id="close" name="close" /> Close basket group</label></li>
- </ol>
- </fieldset>
+<div class="main container-fluid">
+ <div class="row">
+ <div class="col-sm-10 col-sm-push-2">
+ <main>
- <fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" />
- [% IF ( basketgroupid ) %]
- <input type="hidden" name="basketgroupid" value="[% basketgroupid %]" />
- [% END %]
- <input type="hidden" name="op" value="attachbasket" />
- <input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a>
- </fieldset>
- </form>
- </div>
- </div>
-[% ELSE %]
-
- <div id="toolbar" class="btn-toolbar">
- <div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]" class="btn btn-small" id="newbasketgroup"><i class="icon-plus"></i> New basket group</a></div>
- </div>
- <h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
-
- <div id="basket_groups" class="toptabs">
- <ul class="ui-tabs-nav">
- [% UNLESS ( closed ) %]<li class="ui-tabs-selected"><a href="#opened">Open</a></li>
- [% ELSE%]<li><a href="#opened">Open</a></li>[% END %]
- [% IF ( closed ) %]<li class="ui-tabs-selected"><a href="#closed">Closed</a></li>
- [% ELSE %]<li><a href="#closed">Closed</a></li>[% END %]
- </ul>
- <div id="opened">
- <table id="basket_group_opened">
- <thead>
- <tr>
+ [% IF ( grouping ) %]
+ [% IF (closedbg) %]
+ <div id="toolbar" class="btn-toolbar">
+ <div class="btn-group"><a href="[% script_name | url %]?op=reopen&basketgroupid=[% basketgroupid | uri %]&booksellerid=[% booksellerid | uri %]&mode=singlebg" class="btn btn-default btn-sm" id="reopenbutton"><i class="fa fa-download"></i> Reopen this basket group</a></div>
+ <div class="btn-group"><a href="[% script_name | url %]?op=export&basketgroupid=[% basketgroupid | uri %]&booksellerid=[% booksellerid | uri %]" class="btn btn-default btn-sm" id="exportbutton"><i class="fa fa-download"></i> Export this basket group as CSV</a></div>
+ <div class="btn-group"><a href="[% script_name | url %]?op=print&basketgroupid=[% basketgroupid | uri %]&booksellerid=[% booksellerid | uri %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Print this basket group in PDF</a></div>
+ [% IF (ediaccount) %]
+ <div class="btn-group"><a href="[% script_name | url %]?op=ediprint&basketgroupid=[% basketgroupid | uri %]&booksellerid=[% booksellerid | uri %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Generate EDIFACT order</a></div>
+ [% END %]
+ </div>
+ [% END %]
+ [% IF (name && closedbg) %]
+ <h1>Basket group [% name | html %] ([% basketgroupid | html %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1>
+ [% ELSIF (name) %]
+ <h1>Edit basket group [% name | html %] ([% basketgroupid | html %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1>
+ [% ELSE %]
+ <h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1>
+ [% END %]
+ <div id="basketgroupcolumns" class="row">
+ [% UNLESS (closedbg) %]
+ <div class="col-xs-6 col-xs-push-6">
+ <form action="[% scriptname | html %]" method="post" name="basketgroups" id="basketgroups">
+ <div id="groups">
+ <fieldset class="brief">
+ <div class="workarea_alt" >
+ <h3>Ungrouped baskets</h3>
+ <ul id="ungrouped" class="draglist_alt">
+ [% IF ( baskets ) %]
+ [% FOREACH basket IN baskets %]
+ <li class="ungrouped" id="b-[% basket.basketno | html %]" >
+ <a href="basket.pl?basketno=[% basket.basketno | uri %]">
+ [% IF ( basket.basketname ) %]
+ [% basket.basketname | html %]
+ [% ELSE %]
+ No name, basketnumber: [% basket.basketno | html %]
+ [% END %]
+ </a>, <br />
+ Total: [% basket.total | $Price %]
+ <input type="hidden" class="basket" name="basket" value="[% basket.basketno | html %]" />
+ </li>
+ [% END %]
+ [% END %]
+ </ul>
+ </div>
+ </fieldset>
+ </div>
+ </form>
+ </div>
+ [% END %]
+ [% IF ( closedbg ) %]
+ <div class="col-xs-12">
+ [% ELSE %]
+ <div class="col-xs-6 col-xs-pull-6">
+ [% END %]
+ <form action="" method="post" id="groupingform" onsubmit="return submitForm(this)">
+ <fieldset id="various" class="brief">
+ <ol>
+ [% UNLESS (closedbg) %]
+ <li>
+ <label for="basketgroupname">Basket group name:</label>
+ <input type="text" name="basketgroupname" id="basketgroupname" value="[% name | html %]" class="focus" />
+ </li>
+ [% ELSE %]
+ <input type="hidden" name="basketgroupname" id="basketgroupname" value="[% name | html %]" />
+ [% END %]
+ <li>
+ [% UNLESS (closedbg) %]
+ <label for="billingplace">Billing place:</label>
+ <select name="billingplace" id="billingplace">
+ <option value="">--</option>
+ [% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %]
+ </select>
+ [% ELSE %]
+ <span class="label">Billing place:</span>
+ <input name="billingplace" id="billingplace" type ="hidden" value="[% billingplace | html %]" />[% Branches.GetName( billingplace ) | html %]
+ [% END %]
+ </li>
+ [% UNLESS (closedbg) %]
+ <li>
+ <label for="deliveryplace">Delivery place:</label>
+ <select name="deliveryplace" id="deliveryplace">
+ <option value="">--</option>
+ [% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %]
+ </select>
+ </li>
+ <li><p>or</p></li>
+ <li>
+ <label for="freedeliveryplace">Delivery place:</label>
+ <textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace | html %]</textarea>
+ </li>
+ [% ELSE %]
+ <li>
+ <span class="label">Delivery place:</span>
+ [% IF (freedeliveryplace) %]
+ <input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="[% freedeliveryplace | html %]" />[% freedeliveryplace | html %]
+ <input name="deliveryplace" id="deliveryplace" type ="hidden" value="" />
+ [% ELSE %]
+ <input name="deliveryplace" id="deliveryplace" type ="hidden" value="[% deliveryplace | html %]" />[% Branches.GetName( deliveryplace ) | html %]
+ <input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="" />
+ [% END %]
+ </li>
+ [% END %]
+ <li>
+ [% UNLESS (closedbg) %]
+ <label for="deliverycomment">Delivery comment:</label>
+ <textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment | html %]</textarea>
+ [% ELSE %]
+ <span class="label">Delivery comment:</span>[% deliverycomment | html %]
+ <input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment | html %]" />
+ [% END %]
+ </li>
+ <li>
+ <span class="label">Baskets in this group:</span>
+ [% UNLESS (closedbg) %]
+ <ul class="draglist" id="bg">
+ [% ELSE %]
+ <ul>
+ [% END %]
+ [% FOREACH selectedbasket IN selectedbaskets %]
+ <li class="grouped" id="b-[% selectedbasket.basketno | html %]" >
+ <a href="basket.pl?basketno=[% selectedbasket.basketno | uri %]">
+ [% IF ( selectedbasket.basketname ) %]
+ [% selectedbasket.basketname | html %]
+ [% ELSE %]
+ No name, basketnumber: [% selectedbasket.basketno | html %]
+ [% END %]
+ </a>, <br />
+ Total: [% selectedbasket.total | $Price %]
+ <input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno | html %]" />
+ </li>
+ [% END %]
+ </ul>
+ </li>
+ [% UNLESS (closedbg) %]
+ <li><label><input type="checkbox" id="closedbg" name="closedbg" />Close basket group</label></li>
+ [% ELSE %]
+ <input type="hidden" id="closedbg" name="closedbg" value ="1"/>
+ [% END %]
+ </ol>
+ </fieldset>
+ [% UNLESS (closedbg) %]
+ <fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
+ [% IF ( basketgroupid ) %]
+ <input type="hidden" name="basketgroupid" value="[% basketgroupid | html %]" />
+ [% END %]
+ <input type="hidden" name="op" value="attachbasket" />
+ <input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid | uri %]" class="cancel">Cancel</a>
+ </fieldset>
+ [% END %]
+ </form>
+ </div>
+ </div>
+ [% ELSE %]
+ <div id="toolbar" class="btn-toolbar">
+ <div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid | uri %]" class="btn btn-default btn-sm" id="newbasketgroup"><i class="fa fa-plus"></i> New basket group</a></div>
+ </div>
+ <h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1>
+ [% IF (NoEDIMessage) %]<div><strong>No EDIFACT configuration for [% booksellername | html %]</strong></div>[% END %]
+ <div id="basket_groups" class="toptabs">
+ <ul class="ui-tabs-nav">
+ [% UNLESS ( listclosed) %]<li class="ui-tabs-active"><a href="#opened">Open</a></li>
+ [% ELSE%]<li><a href="#opened">Open</a></li>[% END %]
+ [% IF ( listclosed) %]<li class="ui-tabs-active"><a href="#closed">Closed</a></li>
+ [% ELSE %]<li><a href="#closed">Closed</a></li>[% END %]
+ </ul>
+ <div id="opened">
+ <table id="basket_group_opened">
+ <thead>
+ <tr>
<th>Name</th>
<th>Number</th>
<th>Billing place</th>
<th>Delivery place</th>
<th>Number of baskets</th>
<th>Action</th>
- </tr>
- </thead>
- <tbody>
- [% FOREACH basketgroup IN basketgroups %]
- [% UNLESS ( basketgroup.closed ) %]
- <tr>
- <td>[% IF ( basketgroup.name ) %]
- [% basketgroup.name %]
- [% ELSE %]
- Basket group no. [% basketgroup.id %]
- [% END %]
- </td>
- <td>[% basketgroup.id %]</td>
- <td>[% basketgroup.billingplace | $KohaBranchName %]</td>
- <td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplace | $KohaBranchName %][% END %]</td>
- <td>[% basketgroup.basketsqty %]</td>
- <td>
- <input type="button" onclick="closeandprint([% basketgroup.id %])" value="Close and print" />
- <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form>
- <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form>
- </td>
- </tr>
- [% END %]
- [% END %]
- </tbody>
- </table>
- </div>
- <div id="closed">
- <table id="basket_group_closed">
- <thead>
- <tr>
+ </tr>
+ </thead>
+ <tbody>
+ [% FOREACH basketgroup IN basketgroups %]
+ [% UNLESS ( basketgroup.closed ) %]
+ <tr>
+ <td>[% IF ( basketgroup.name ) %]
+ [% basketgroup.name | html %]
+ [% ELSE %]
+ Basket group no. [% basketgroup.id | html %]
+ [% END %]
+ </td>
+ <td>[% basketgroup.id | html %]</td>
+ <td>[% Branches.GetName( basketgroup.billingplace ) | html %]</td>
+ <td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) | html %][% END %]</td>
+ <td>[% basketgroup.basketsqty | html %]</td>
+ <td>
+ <input type="button" onclick="closeandprint('[% basketgroup.id | html %]');" value="Close and export as PDF" />
+ <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Edit" /></form>
+ [% UNLESS basketgroup.basketsqty %]
+ <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Delete" /></form>
+ [% END %]
+ </td>
+ </tr>
+ [% END %]
+ [% END %]
+ </tbody>
+ </table>
+ </div>
+ <div id="closed">
+ <table id="basket_group_closed">
+ <thead>
+ <tr>
<th>Name</th>
<th>Number</th>
<th>Billing place</th>
<th>Delivery place</th>
<th>Number of baskets</th>
<th>Action</th>
- </tr>
- </thead>
- <tbody>
- [% FOREACH basketgroup IN basketgroups %]
- [% IF ( basketgroup.closed ) %]
- <tr>
- <td>
- [% IF ( basketgroup.name ) %]
- [% basketgroup.name %]
- [% ELSE %]
- Basket group no. [% basketgroup.id %]
- [% END %]
- </td>
- <td>[% basketgroup.id %]</td>
- <td>[% basketgroup.billingplace | $KohaBranchName %]</td>
- <td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplace | $KohaBranchName %][% END %]</td>
- <td>[% basketgroup.basketsqty %]</td>
- <td>
- <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Reopen" /></form>
- <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Print" /></form>
- <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="export" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Export as CSV" /></form>
- </td>
- </tr>
- [% END %]
- [% END %]
- </tbody>
- </table>
- </div>
+ </tr>
+ </thead>
+ <tbody>
+ [% FOREACH basketgroup IN basketgroups %]
+ [% IF ( basketgroup.closed ) %]
+ <tr>
+ <td>
+ [% IF ( basketgroup.name ) %]
+ [% basketgroup.name | html %]
+ [% ELSE %]
+ Basket group no. [% basketgroup.id | html %]
+ [% END %]
+ </td>
+ <td>[% basketgroup.id | html %]</td>
+ <td>[% Branches.GetName( basketgroup.billingplace ) | html %]</td>
+ <td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) | html %][% END %]</td>
+ <td>[% basketgroup.basketsqty | html %]</td>
+ <td>
+ <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="View" /></form>
+ <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Reopen" /></form>
+ <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Export as PDF" /></form>
+ <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="export" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Export as CSV" /></form>
+ [% IF (ediaccount) %]
+ <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="ediprint" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Generate EDIFACT order" /></form>
+ [% ELSE %]
+ <div>No EDIFACT configuration for [% booksellername | html %]</div>
+ [% END %]
+ </td>
+ </tr>
+ [% END %]
+ [% END %]
+ </tbody>
+ </table>
+ </div>
+ </div>
+ [% END %]
+ </main>
+ </div> <!-- /.col-sm-10.col-sm-push-2 -->
+
+ <div class="col-sm-2 col-sm-pull-10">
+ <aside>
+ [% IF ( booksellerid ) %]
+ [% INCLUDE 'vendor-menu.inc' %]
+ [% END %]
+ [% INCLUDE 'acquisitions-menu.inc' %]
+ </aside>
</div>
-[% END %]
-</div>
-</div>
-<div class="yui-b">
-[% IF ( booksellerid ) %]
-[% INCLUDE 'vendor-menu.inc' %]
-[% END %]
-[% INCLUDE 'acquisitions-menu.inc' %]
-</div>
-</div>
-[% INCLUDE 'intranet-bottom.inc' %]
+ </div> <!-- /.row -->
+ [% INCLUDE 'intranet-bottom.inc' %]