Skip to content

Commit 2535d07

Browse files
committed
temp put back dhl link
1 parent 850245c commit 2535d07

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

client/js/modules/shipment/views/shipmentadd.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ define(['marionette', 'views/form',
3535

3636
return FormView.extend({
3737
template: template,
38+
39+
templateHelpers: {
40+
DHL_ENABLE: app.options.get('dhl_enable'),
41+
DHL_LINK: app.options.get('dhl_link'),
42+
},
3843

3944
events: {
4045
'change input[name=DEWARS]': 'updateFCodes',

client/js/templates/shipment/shipmentadd.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ <h1>Add New Shipment</h1>
109109
<label>Courier Name
110110
<span class="small">Courier name for the return shipment</span>
111111
</label>
112-
<input type="text" name="DELIVERYAGENT_AGENTNAME" />
112+
<input type="text" name="DELIVERYAGENT_AGENTNAME" />
113+
<% if (!DHL_ENABLE) { %><a href="<%=DHL_LINK%>" class="dhl button"><i class="fa fa-envelope"></i> Use Diamond Account (UK ONLY)</a><% } %>
113114
</li>
114115

115116
<li>

0 commit comments

Comments
 (0)