Bugzilla – Attachment 79015 Details for
Bug 21364
Allow closing basket from vendor search/view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21364: Allow closing basket from vendor view/search
Bug-21364-Allow-closing-basket-from-vendor-viewsea.patch (text/plain), 6.25 KB, created by
Nick Clemens (kidclamp)
on 2018-09-16 21:48:20 UTC
(
hide
)
Description:
Bug 21364: Allow closing basket from vendor view/search
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2018-09-16 21:48:20 UTC
Size:
6.25 KB
patch
obsolete
>From f8cc95dc5c46ac701a280616c3f04767bda6b5fd Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Sun, 16 Sep 2018 03:05:59 +0000 >Subject: [PATCH] Bug 21364: Allow closing basket from vendor view/search > >To test: >1 - Have a vendor >2 - Add some empty baskets >3 - Add some non-empty baskets >4 - Search for vendor and note you now > a - Can only 'View' empty or closed baskets > b - Have a dropup menu to 'Add to ' or 'Close' open baskets >5 - Confirm things look correct and buttons work >--- > .../prog/en/modules/acqui/booksellers.tt | 45 ++++++++++++++-------- > 1 file changed, 28 insertions(+), 17 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >index 7fa8f2f..6b48c92 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >@@ -144,24 +144,35 @@ > [% END %] > </td> > <td class="actions"> >- <a class="btn btn-default btn-xs" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | html %]"><i class="fa fa-eye"></i> View</a> >- >- [% IF not basket.closedate and supplier.active %] >- <a class="btn btn-default btn-xs" id="addtoBasketLabel[% basket.basketno | html %]" href="#addtoBasket[% basket.basketno | html %]" role="button" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a> >- <!-- Modal --> >- <div id="addtoBasket[% basket.basketno | html %]" class="modal" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel[% basket.basketno | html %]" aria-hidden="true" data-basketno="[% basket.basketname | html %]"> >- <div class="modal-dialog"> >- <div class="modal-content"> >- <div class="modal-body"> >- [% INCLUDE 'acquisitions-add-to-basket.inc' booksellerid=supplier.booksellerid basketno=basket.basketno %] >- </div> >- <div class="modal-footer"> >- <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> >- </div> >+ [% IF not basket.closedate and supplier.active %] >+ <div class="dropup"> >+ <div class="btn-group"> >+ [%# There should be no space between these two buttons, it would render badly %] >+ <a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | html %]"><i class="fa fa-eye"></i> View</a><a >+ class="btn btn-default btn-xs dropdown-toggle" id="basketactions[% basket.basknetno | html %]" role="button" data-toggle="dropdown" >+ href="#"><b class="caret"></b></a> >+ <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="basketactions[% basketn.basketno | html %]"> >+ <li><a id="addtoBasketLabel[% basket.basketno | html %]" href="#addtoBasket[% basket.basketno | html %]" role="button" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a></li> >+ [% IF basket.total_items %] >+ <li><a href="/cgi-bin/koha/acqui/basket.pl?op=close&basketno=[% basket.basketno | html %]&booksellerid=[% supplier.id | html %]"><i class="fa fa-times-circle"></i> Close this basket</a></li> >+ [% END %] >+ </ul> >+ <!-- Modal --> >+ <div id="addtoBasket[% basket.basketno | html %]" class="modal" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel[% basket.basketno | html %]" aria-hidden="true" data-basketno="[% basket.basketname | html %]"> >+ <div class="modal-dialog"> >+ <div class="modal-content"> >+ <div class="modal-body"> >+ [% INCLUDE 'acquisitions-add-to-basket.inc' booksellerid=supplier.booksellerid basketno=basket.basketno %] >+ </div> >+ <div class="modal-footer"> >+ <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> >+ </div> >+ </div> >+ </div> > </div> >- </div> >- </div> >- [% END %] >+ [% ELSE %] >+ <a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | html %]"><i class="fa fa-eye"></i> View</a> >+ [% END %] > </td> > </tr> > [% END %][%# FOREACH basket IN supplier.loop_basket %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21364
:
79015
|
79019
|
79069
|
79106
|
79121
|
79470
|
88393
|
88787
|
88788
|
88847
|
88848
|
88982
|
88983