diff --git a/client/src/js/modules/shipment/views/shipments.js b/client/src/js/modules/shipment/views/shipments.js index 5542d2c5b..9aa4f709d 100644 --- a/client/src/js/modules/shipment/views/shipments.js +++ b/client/src/js/modules/shipment/views/shipments.js @@ -40,10 +40,12 @@ define(['marionette', return Marionette.LayoutView.extend({ className: 'content', - template: '

Shipments

This page shows a list of shipments associated with the currently selected proposal

In order to register your samples you need to create a shipment. Shipments contain dewars, dewars contain containers, and containers individual samples. These can be created sequentially by viewing a particular shipment

Add Shipment
', + template: '

Shipments

eBIC is switching to SCAUP for shipments. Click here to select a session and create a new shipment.

This page shows a list of shipments associated with the currently selected proposal

In order to register your samples you need to create a shipment. Shipments contain dewars, dewars contain containers, and containers individual samples. These can be created sequentially by viewing a particular shipment

Add Shipment
', regions: { 'wrap': '.wrapper' }, ui: { add: 'a.add', + ebicBanner: 'div#ebic-banner', + ebicLink: 'a#ebic-link' }, initialize: function(options) { @@ -70,6 +72,10 @@ define(['marionette', onRender: function() { if (app.proposal && app.proposal.get('ACTIVE') != 1) this.ui.add.hide() + if (app.proposal.get("TYPES").includes("em") && "em" in app.options.get("redirects")) { + this.ui.ebicBanner.show(); + this.ui.ebicLink.prop("href", `${app.options.get("redirects").em }/proposals/${app.proposal.get("PROPOSAL")}`); + } this.wrap.show(this.table) } })