Bugzilla – Attachment 54936 Details for
Bug 16752
Remove the use of event attributes from some acquisitions templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16752 - Remove the use of event attributes from some acquisitions templates - Transfer order
Bug-16752---Remove-the-use-of-event-attributes-fro.patch (text/plain), 6.77 KB, created by
Jonathan Druart
on 2016-08-26 14:08:09 UTC
(
hide
)
Description:
Bug 16752 - Remove the use of event attributes from some acquisitions templates - Transfer order
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-08-26 14:08:09 UTC
Size:
6.77 KB
patch
obsolete
>From e2e9a9cb69ce4ce580cae3f79048b5fbd7162f30 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 15 Jun 2016 10:23:41 -0400 >Subject: [PATCH] Bug 16752 - Remove the use of event attributes from some > acquisitions templates - Transfer order > >This patch removes the use of 'onclick' from the acquisitions transfer >order process. The patch also modifies the style of some links and >buttons to conform with current guidelines. > >- Locate an open basket with items in it >- Click the 'Transfer' link for a title in the basket >- In the pop-up window: > - Confirm that the 'Cancel' button at the bottom of the window is a > Bootstrap-style button. > - Search for a vendor; Confirm that the 'Choose' link is a > Bootstrap-style button. > - Choose a vendor; Confirm that the 'Choose' link on the following > page is a Bootstrap-style button. > - Confirm that clicking the 'Choose' button transfers the item to the > correct basket. > >Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../prog/en/modules/acqui/transferorder.tt | 49 +++++++++++++--------- > 1 file changed, 29 insertions(+), 20 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt >index 68e76e4..8f84663 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt >@@ -17,9 +17,11 @@ > [% IF ( bookselleridfrom ) %] > <script type="text/javascript"> > //<![CDATA[ >- function confirmtransfer() { >- return confirm( _("Transfer order to this basket?") ); >- } >+ $(document).ready(function(){ >+ $(".confirm_transfer").on("click",function(){ >+ return confirm( _("Transfer order to this basket?") ); >+ }); >+ }); > //]]> > </script> > [% END %] >@@ -27,7 +29,6 @@ > > </head> > <body id="acq_transferorder" class="acq"> >- > <div id="custom-doc" class="yui-t7"> > <div id="bd"> > <div class="yui-g"> >@@ -38,7 +39,7 @@ > <li><span class="label">From vendor: </span>[% booksellerfromname %]</li> > <li><span class="label">Basket: </span>[% basketfromname %]</li> > <li><span class="label">Order: </span>[% ordernumber %]</li> >- </ol> >+ </ul> > </div> > [% ELSE %] > <h3>Search for a vendor to transfer from</h3> >@@ -53,7 +54,7 @@ > <input type="hidden" name="bookselleridfrom" value="[% bookselleridfrom %]" /> > [% END %] > <label for="query">Vendor:</label> >- <input type="text" name="query" /> >+ <input type="text" id="query" name="query" /> > <input type="submit" value="Search" /> > </fieldset> > </form> >@@ -62,10 +63,12 @@ > [% IF ( basketsloop ) %] > <table> > <thead> >- <th>Basket (#)</th> >- <th>Created by</th> >- <th>Date</th> >- <th> </th> >+ <tr> >+ <th>Basket (#)</th> >+ <th>Created by</th> >+ <th>Date</th> >+ <th> </th> >+ </tr> > </thead> > <tbody> > [% FOREACH basket IN basketsloop %] >@@ -73,7 +76,7 @@ > <td>[% basket.basketname %] (#[% basket.basketno %])</td> > <td>[% basket.createdby %]</td> > <td>[% basket.creationdate | $KohaDates %]</td> >- <td><a href="transferorder.pl?basketno=[% basket.basketno %]&ordernumber=[% ordernumber %]" onclick="return confirmtransfer();">Choose</a> >+ <td><a class="btn btn-mini confirm_transfer" href="transferorder.pl?basketno=[% basket.basketno %]&ordernumber=[% ordernumber %]">Choose</a> > </tr> > [% END %] > </tbody> >@@ -86,9 +89,11 @@ > <h3>Orders for [% booksellerfromname %]</h3> > <table> > <thead> >- <th>Order</th> >- <th>Summary</th> >- <th> </th> >+ <tr> >+ <th>Order</th> >+ <th>Summary</th> >+ <th> </th> >+ </tr> > </thead> > <tbody> > [% FOREACH ordersloo IN ordersloop %] >@@ -100,7 +105,7 @@ > [% IF ( ordersloo.isbn ) %] – [% ordersloo.isbn %][% END %] > [% IF ( ordersloo.publishercode ) %]<br />Publisher :[% ordersloo.publishercode %][% END %] > </td> >- <td><a href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom %]&ordernumber=[% ordersloo.ordernumber %]">Transfer</a></td> >+ <td><a class="btn btn-mini" href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom %]&ordernumber=[% ordersloo.ordernumber %]">Transfer</a></td> > </tr> > [% END %] > </tbody> >@@ -115,14 +120,16 @@ > [% IF ( booksellersloop ) %] > <table> > <thead> >- <th>Name</th> >- <th> </th> >+ <tr> >+ <th>Name</th> >+ <th> </th> >+ </tr> > </thead> > <tbody> > [% FOREACH bookseller IN booksellersloop %] > <tr> > <td>[% bookseller.name %]</td> >- <td><a href="transferorder.pl?[% IF (bookselleridfrom) %]bookselleridto[% ELSE %]bookselleridfrom[% END %]=[% bookseller.id %][% IF (ordernumber) %]&ordernumber=[% ordernumber %][% END %]">Choose</a></td> >+ <td><a class="btn btn-mini" href="transferorder.pl?[% IF (bookselleridfrom) %]bookselleridto[% ELSE %]bookselleridfrom[% END %]=[% bookseller.id %][% IF (ordernumber) %]&ordernumber=[% ordernumber %][% END %]">Choose</a></td> > </tr> > [% END %] > </tbody> >@@ -133,7 +140,9 @@ > [% END %] > </div> > >-<div id="closewindow"><a href="#" class="close">Cancel</a></div> >+<div id="closewindow"><a href="#" class="btn btn-default close">Cancel</a></div> >+ > </div> > </div> >-[% INCLUDE 'intranet-bottom.inc' %] >+</body> >+</html> >-- >2.8.1
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 16752
:
52458
|
52459
|
52460
|
53569
|
54737
|
54738
|
54739
|
54933
|
54935
| 54936 |
54937