Owen Leonard
56aa775602
This patch makes a number of changes to the vendor search/view template in order to make it work better in different contexts: - Add a vendor-specific toolbar under each vendor search result. This gives instant access to the options for a new basket, new contract, vendor edit, or to receive shipments. A delete button will appear if available. - Add a summary of the number of baskets and subscriptions. This helps the user know if there are closed baskets and whether an outstanding subscription might be blocking the option to delete. Each number is linked to the view of those entries. - Indicate whether a vendor is inactive. The vendor name appears in a different color when it is inactve and is labeled as such. To test, apply the patch and rebuild the staff interface CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). - To test you should have multiple vendors in your system, some active and some inactive. Add some baskets and subscriptions to one or more if necessary. - Go to Acquisitions and submit an empty vendor search to show all vendors. - Verify that the page looks correct and that all controls work as expected. - Open the basket view for a single vendor and compare the two views. Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
42 lines
2.5 KiB
HTML
42 lines
2.5 KiB
HTML
[% INCLUDE 'blocking_errors.inc' %]
|
|
<!-- acquisitions-toolbar.inc -->
|
|
<div id="toolbar" class="btn-toolbar">
|
|
[% IF ( booksellerid ) %]
|
|
<div class="btn-group">
|
|
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-plus"></i> New
|
|
<span class="caret"></span>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
[% IF CAN_user_acquisition_order_manage && active %]
|
|
<li><a href="/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% booksellerid | uri %]&op=add_form">Basket</a></li>
|
|
[% END %]
|
|
[% IF CAN_user_acquisition_contracts_manage && active %]
|
|
<li><a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&booksellerid=[% booksellerid | uri %]">Contract</a></li>
|
|
[% END %]
|
|
[% IF ( CAN_user_acquisition_vendors_manage ) %]
|
|
<li><a href="/cgi-bin/koha/acqui/supplier.pl?op=enter">Vendor</a></li>
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
[% IF ( CAN_user_acquisition_vendors_manage ) %]
|
|
<div class="btn-group">
|
|
<a class="btn btn-default" id="editsupplier" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]&op=enter"><i class="fa fa-pencil"></i> Edit vendor</a>
|
|
</div>
|
|
[% UNLESS ( basketcount OR subscriptioncount ) %]
|
|
<div class="btn-group">
|
|
<form action="/cgi-bin/koha/acqui/supplier.pl" method="post">
|
|
<input type="hidden" name="op" value="delete" />
|
|
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
|
|
<button class="btn btn-default" id="deletesupplier" type="submit"><i class="fa fa-trash"></i> Delete vendor</button>
|
|
</form>
|
|
</div>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF CAN_user_acquisition_order_receive && basketcount && active %]
|
|
<div class="btn-group"><a class="btn btn-default" id="receive" href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid | html %]"><i class="fa fa-inbox"></i> Receive shipments</a></div>
|
|
[% END %]
|
|
[% ELSE %]
|
|
<div class="btn-group"><a class="btn btn-default" href="/cgi-bin/koha/acqui/supplier.pl?op=enter"><i class="fa fa-plus"></i> New vendor</a></div>
|
|
[% END %]
|
|
</div>
|
|
<!-- / acquisitions-toolbar.inc -->
|