Skip to content

Commit

Permalink
LIMS-1382: Add message to users about using the shipping service (#801)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Williams <[email protected]>
  • Loading branch information
ndg63276 and Mark Williams committed Jul 12, 2024
1 parent 0390fd0 commit ca2737e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/js/modules/shipment/views/dispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ define(['marionette', 'views/form',
lab: 'input[name=LABNAME]',

submit: 'button[name=submit]',
shippingadvice: '.shippingadvice',

facc: 'a.facc',
accountNumber: 'input[NAME=DELIVERYAGENT_AGENTCODE]',
Expand Down Expand Up @@ -294,8 +295,10 @@ define(['marionette', 'views/form',
this.ui.dispatchDetails.hide()
this.model.dispatchDetailsRequired = false
this.ui.submit.text("Proceed")
this.ui.shippingadvice.html("<mark>On clicking 'Proceed' you will be redirected to the new Diamond shipping service to book the shipment. Please ensure all stages of the form are completed.</mark><br /><br />")
} else {
this.ui.submit.text("Request Dewar Dispatch")
this.ui.shippingadvice.html("")
}
},

Expand Down Expand Up @@ -332,6 +335,7 @@ define(['marionette', 'views/form',
this.model.visitRequired = false
this.ui.dispatchDetails.hide()
this.ui.submit.text("Proceed")
this.ui.shippingadvice.html("<mark>On clicking 'Proceed' you will be redirected to the new Diamond shipping service to book the shipment. Please ensure all stages of the form are completed.</mark><br /><br />")
}
},

Expand Down
2 changes: 2 additions & 0 deletions client/src/js/templates/shipment/dispatch.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ <h1 data-testid="dispatch-header">Request Dewar Dispatch</h1>
</li>
</ul>

<div class="shippingadvice"></div>

<button name="submit" value="1" class="button submit" data-testid="dispatch-submit">Request Dewar Dispatch</button>

</div>
Expand Down

0 comments on commit ca2737e

Please sign in to comment.