Bug 17402 Enhance the actions button on serials-search.pl
Test plan: 1) Apply the patch 2) Go to serials home page 3) Search for a subscription 4) Ensure you have permission to receive serials 5) In the most right column of table you should see "Receive serial" button with caret button, that should work as trigger form dropdown menu with other options 6) Ensure that all actions work as expected 7) Login with user without permission to receive serials 8) repeat 2-3 9) In the most right column of table you should see normal dropdown mane with label "Actions" and all applicable options 10) Ensure that all actions work as expected Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
f9da6f9739
commit
bbcb19a7f6
1 changed files with 8 additions and 8 deletions
|
@ -210,9 +210,13 @@
|
|||
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<a class="btn btn-mini dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#">
|
||||
Actions <b class="caret"></b>
|
||||
</a>
|
||||
<div class="btn-group">
|
||||
[% IF ( CAN_user_serials_receive_serials ) %]
|
||||
<a class="btn btn-mini" role="button" href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7"><i class="fa fa-inbox"></i> Serial receive</a>
|
||||
<a class="btn btn-mini dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a>
|
||||
[% ELSE %]
|
||||
<a class="btn btn-mini dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#">Actions <b class="caret"></b></a>
|
||||
[% END %]
|
||||
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="subactions[% subscription.subscriptionid %]">
|
||||
|
||||
[% IF ( routing && CAN_user_serials_routing ) %]
|
||||
|
@ -233,12 +237,8 @@
|
|||
<li>
|
||||
<a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-list-alt"></i> Issue history</a>
|
||||
</li>
|
||||
[% IF ( CAN_user_serials_receive_serials ) %]
|
||||
<li>
|
||||
<a href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7"> <i class="fa fa-inbox"></i> Serial receive</a>
|
||||
</li>
|
||||
[% END %]
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
|
Loading…
Reference in a new issue