+ <div class="btn-group"><a href="/cgi-bin/koha/acqui/basket.pl?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="exportbutton"><i class="fa fa-download"></i> Export this basket as CSV</a></div>
+ [% IF ediaccount %]
+ <div class="btn-group"><a href="/cgi-bin/koha/acqui/edi_ean.pl?op=ediorder&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="ediorderbutton"><i class="fa fa-download"></i> Create EDIFACT order</a></div>
+ [% END %]
+ [% IF ( active && books_loop ) %]
+ <div class="btn-group">
+ <form action="/cgi-bin/koha/acqui/basket.pl" method="post">
+ <input type="hidden" name="op" value="email" />
+ <input type="hidden" name="basketno" value="[% basketno %]" />
+ <button type="submit" class="btn btn-small" id="emailvendorbutton"><i class="fa fa-envelope"></i> E-mail order</button>
+ </form>
+ </div>
+ [% END %]
+ </div>
+<!-- Modal for confirm deletion box-->
+ <div class="modal hide" id="deleteBasketModal" tabindex="-1" role="dialog" aria-labelledby="delbasketModalLabel" aria-hidden="true">
+ <div class="modal-header">
+ <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
+ <h3>Confirm deletion</h3>
+ </div>
+ [% UNLESS book_foot_loop %]
+ <div class="modal-body">
+ <p>Are you sure you want to delete this basket?</p>
+ </div>
+ <div class="modal-footer">
+ <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
+ <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
+ <input type="hidden" name="op" value="delete_confirm" />
+ <input type="hidden" name="basketno" value="[% basketno %]" />
+ <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
+ <input type="hidden" name="delbiblio" value="0" />
+ <button type="submit" class="btn btn-default">Delete basket</button>
+ </form>
+ </div>
+ [% ELSE %]
+ <div class="modal-body">
+ <p>Are you sure you want to delete this basket?</p>
+ <p>Warning:</p>
+ <p>All orders of this basket will be cancelled and used funds will be refunded.</p>
+ <p>If items have been created when ordering or receiving, they will be deleted.</p>
+ <p>You can choose to delete bibliographic records if possible (bibliographic records that have other items or that are used in a subscription or another order will not be deleted).</p>
+ </div>
+ <div class="modal-footer">
+ <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
+ <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
+ <input type="hidden" name="op" value="delete_confirm" />
+ <input type="hidden" name="basketno" value="[% basketno %]" />
+ <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
+ <input type="hidden" name="delbiblio" value="0" />
+ <button type="submit" class="btn btn-default">Delete basket and orders</button>
+ </form>
+
+ <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
+ <input type="hidden" name="op" value="delete_confirm" />
+ <input type="hidden" name="basketno" value="[% basketno %]" />
+ <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
+ <input type="hidden" name="delbiblio" value="1" />
+ <button type="submit" class="btn btn-default">Delete basket, orders, and records</button>
+ </form>