wickes-css2 2.98.0-develop.2 → 2.98.0-develop.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/build/css/category-main.css +1 -1
  2. package/build/css/emulation.css +1 -1
  3. package/build/css/homepage-main.css +1 -1
  4. package/build/css/main.css +1 -1
  5. package/build/css/my-account-main-v2.css +1 -1
  6. package/build/css/my-account-main.css +1 -1
  7. package/build/css/pages/checkout-new.css +1 -1
  8. package/build/css/pages/my-account-v2.css +1 -1
  9. package/build/css/pages/page_address-book.css +1 -1
  10. package/build/css/pages/page_change-password.css +1 -1
  11. package/build/css/pages/page_default-store.css +1 -1
  12. package/build/css/pages/page_discount.css +1 -0
  13. package/build/css/pages/page_personal-details.css +1 -1
  14. package/build/css/pages/page_products-list-combined.css +1 -1
  15. package/build/css/pages/page_products-list.css +1 -1
  16. package/build/css/pages/page_track-my-order.css +1 -1
  17. package/build/css/pdp-main-before-combine.css +1 -1
  18. package/build/css/pdp-main-critical.css +1 -1
  19. package/build/css/pdp-main-non-critical.css +1 -1
  20. package/build/css/pdp-main.css +1 -1
  21. package/build/css/plp-main.css +1 -1
  22. package/build/css/store-locator-main.css +1 -1
  23. package/build/img/apps/app-lg.png +0 -0
  24. package/build/img/apps/app-md.png +0 -0
  25. package/build/js/basket.min.js +2 -2
  26. package/build/js/bundle.min.js +1 -1
  27. package/build/js/checkout.min.js +1 -1
  28. package/build/js/default-store.min.js +1 -1
  29. package/build/js/general.bundle.min.js +1 -1
  30. package/build/js/merged-checkout.min.js +1 -1
  31. package/build/js/my-account.min.js +1 -1
  32. package/build/js/page/basket-v2.js +6 -14
  33. package/build/js/page/components/charity.js +43 -58
  34. package/build/js/page/default-store.js +1 -4
  35. package/build/js/page/my-account.js +9 -2
  36. package/build/js/page/personal-details.js +22 -1
  37. package/build/js/pdp.bundle.min.js +1 -1
  38. package/build/js/personal-details.min.js +1 -1
  39. package/build/js/plp.bundle.min.js +1 -1
  40. package/build/js/project-list.min.js +1 -1
  41. package/package.json +2 -2
  42. package/src/components/header-menu/logout-action.hbs +8 -0
  43. package/src/components/header-menu/popover-actions-mob.hbs +11 -0
  44. package/src/components/header-menu/popover-actions.hbs +13 -0
  45. package/src/components/header-menu/user-actions-mob.hbs +18 -0
  46. package/src/components/header-menu/user-actions.hbs +12 -0
  47. package/src/components/my-account/clipboard-code-card.hbs +13 -6
  48. package/src/components/my-account/discount.hbs +3 -1
  49. package/src/components/price-block-order.hbs +0 -1
  50. package/src/components/track-my-order-info.hbs +1 -3
  51. package/src/data/data_header-menu.json +153 -0
  52. package/src/data/data_shopping-cart-v2.json +0 -51
  53. package/src/data/my-account/data_discount.json +80 -0
  54. package/src/data/my-account/data_personal-details.json +22 -0
  55. package/src/img/apps/app-lg.png +0 -0
  56. package/src/img/apps/app-md.png +0 -0
  57. package/src/js/components/general/clamp-content.js +1 -0
  58. package/src/js/components/general/main-nav.js +5 -5
  59. package/src/js/page/basket-v2.js +6 -14
  60. package/src/js/page/components/charity.js +43 -58
  61. package/src/js/page/default-store.js +1 -4
  62. package/src/js/page/my-account.js +9 -2
  63. package/src/js/page/personal-details.js +22 -1
  64. package/src/page_my-account-installer.html +2 -1
  65. package/src/page_my-account-trade-pro.html +1 -0
  66. package/src/page_my-account.html +10 -1
  67. package/src/page_personal-details.html +5 -0
  68. package/src/page_plp_v2-vat.html +8 -2
  69. package/src/page_shopping-cart-charity.html +56 -0
  70. package/src/page_shopping-cart-v2.html +1 -1
  71. package/src/page_tradepro-discount-app.html +82 -0
  72. package/src/page_tradepro-discount.html +82 -0
  73. package/src/partials/header.hbs +40 -41
  74. package/src/partials/main-nav.hbs +51 -171
  75. package/src/scss/common/_rewards-counter.scss +1 -1
  76. package/src/scss/components/_charity-donations.scss +186 -114
  77. package/src/scss/components/_leave-modal.scss +6 -2
  78. package/src/scss/components/_price-block-critical.scss +3 -3
  79. package/src/scss/components/_price-block.scss +8 -3
  80. package/src/scss/components/my-account/_barcode.scss +58 -0
  81. package/src/scss/components/my-account/_clipboard-code.scss +77 -0
  82. package/src/scss/components/my-account/_discount.scss +51 -0
  83. package/src/scss/emulation.scss +1 -1
  84. package/src/scss/helpers/_mixins.scss +9 -0
  85. package/src/scss/pages/checkout-new.scss +0 -1
  86. package/src/scss/pages/my-account-v2.scss +38 -171
  87. package/src/scss/pages/page_change-password.scss +1 -1
  88. package/src/scss/pages/page_default-store.scss +5 -4
  89. package/src/scss/pages/page_discount.scss +212 -0
  90. package/src/scss/pages/page_personal-details.scss +1 -74
  91. package/src/scss/pages/page_products-list-combined.scss +13 -3
  92. package/src/scss/pages/page_products-list.scss +9 -1
  93. package/src/scss/pages/page_track-my-order.scss +21 -0
  94. package/src/scss/partials/_header-critical.scss +2 -5
  95. package/src/scss/partials/_header.scss +58 -25
  96. package/src/scss/partials/_main-nav.scss +43 -29
  97. package/src/scss/plp-main.scss +1 -0
  98. package/src/sitemap.html +4 -0
  99. package/build/img/calm-primary-logo.png +0 -0
  100. package/src/components/basket-charity-donations-new.hbs +0 -40
  101. package/src/components/donation-cart-new.hbs +0 -38
  102. package/src/img/calm-primary-logo.png +0 -0
  103. package/src/scss/components/_donation-cart-new.scss +0 -192
@@ -8,47 +8,34 @@ const charityEl = {
8
8
  charityInput: '#donation',
9
9
  charityTitleWrap: '.title-wrap',
10
10
  donationCart: '.donation-cart',
11
+ donationCartBtn: '.donation-cart__btn',
12
+ donationCartHolder: '.donation-cart__holder',
11
13
  donationCartHide: 'donation-cart__hide',
12
- donationCartBtn: '.donation-cart__btn, .donation-cart-new__btn',
13
- donationCartBtnSelected: '.donation-cart-new__btn.btn-selected',
14
- donationCartHolder: '.donation-cart__holder, .donation-cart-new__holder',
15
- donationCartValue: '.donation-cart__value, .donation-cart-new__value',
14
+ donationCartValue: '.donation-cart__value',
16
15
  charityAdded: 'charity-added',
17
- donationCartCostBlock: '.donation-cart-new__cost',
18
- donationCartCostBlockHide: 'donation-cart-new__cost-hide',
19
- donationCartRemove: '.donation-cart-new__cost .order-item__remove',
20
16
  }
21
17
 
22
- export function updateCharity(button) {
18
+ export function updateCharity() {
19
+ //checkbox action
23
20
  if ($('#donation').attr('disabled') === 'disabled') {
24
- $('#donation').removeAttr('disabled');
21
+ $('#donation').removeAttr('disabled')
25
22
  } else {
26
23
  $('#donation').prop('disabled', (_, value) => !value);
27
24
  }
28
25
 
29
- const context = getCurrentCharityItem(button);
26
+ const context = getCurrentCharityItem(this);
30
27
  const productCode = getCurrentProductCode(context);
31
- const quantity = getSelectedCharityAmount(button);
32
28
 
33
29
  showLoader('.basket-loader');
34
30
 
35
31
  if (context.hasClass(charityEl.charityAdded)) {
36
- $(button).removeAttr('checked');
32
+ $(this).removeAttr('checked');
37
33
  } else {
38
- $(button).attr('checked', 'checked');
39
- repaintCharityButton(button);
40
- context
41
- .find(charityEl.donationCartValue)
42
- .text(quantity);
43
- showDonationCostBlock(context);
44
- charityActionForAdd(productCode, quantity);
34
+ $(this).attr('checked', 'checked');
35
+ charityActionForAdd(productCode);
45
36
  }
46
37
  }
47
38
 
48
- function getSelectedCharityAmount(context) {
49
- return $(context).data('value');
50
- }
51
-
52
39
  function getCurrentCharityItem(context) {
53
40
  return $(context).closest(charityEl.charityItem);
54
41
  }
@@ -57,13 +44,13 @@ function getCurrentProductCode(context) {
57
44
  return context.find('input[name="productCode"]').val();
58
45
  }
59
46
 
60
- export function charityActionForAdd(value, quantity) {
47
+ export function charityActionForAdd(value) {
61
48
  if (!Wick.checkLocalEnv) {
62
49
  const payload = {
63
50
  url: ROUTES.CHARITY_ADD,
64
51
  queries: {
65
52
  productCodePost: value,
66
- qty: quantity,
53
+ qty: getDefaultCharityAmount(),
67
54
  },
68
55
  type: 'POST',
69
56
  };
@@ -74,10 +61,19 @@ export function charityActionForAdd(value, quantity) {
74
61
 
75
62
  callAction(payload, executeCharityAction, productInfo);
76
63
  } else {
64
+ toggleCharityElements();
77
65
  Wick.BasketPage.updateCart(...Array(2), true);
78
66
  }
79
67
  }
80
68
 
69
+ export function toggleCharityElements() {
70
+ if ($(charityEl.charityItem).hasClass(charityEl.charityAdded)) {
71
+ $(charityEl.charityInput).prop('checked', false);
72
+ }
73
+ $(charityEl.charityItem).toggleClass(charityEl.charityAdded);
74
+ $(charityEl.charityItem).hasClass(charityEl.charityMultiple) && toggleMultipleCharityChoose($(charityEl.charityItem));
75
+ }
76
+
81
77
  function executeCharityAction(response, productInfo) {
82
78
  if (response.addedProducts && response.addedProducts[0]) {
83
79
  productInfo.quantity = response.addedProducts[0].qty;
@@ -85,6 +81,7 @@ function executeCharityAction(response, productInfo) {
85
81
  }
86
82
 
87
83
  Wick.BasketPage.updateCart(...Array(2), true);
84
+ toggleCharityElements();
88
85
  }
89
86
 
90
87
  export function changeCharityPrice() {
@@ -98,7 +95,6 @@ export function changeCharityPrice() {
98
95
 
99
96
  repaintCharityButton(this);
100
97
  $(charityEl.donationCartValue).text(charityValue);
101
- showDonationCostBlock(context);
102
98
  charityActionForChangePrice(this);
103
99
  }
104
100
 
@@ -123,26 +119,22 @@ function repaintCharityButton(context) {
123
119
  $(context).removeClass(btnSecondary).addClass(btnSelected);
124
120
  }
125
121
 
126
- function getDefaultCharityAmount() {
127
- const donationButtons = $(charityEl.charityItem).find(charityEl.donationCartBtn);
128
- return donationButtons.first().attr('data-value');
129
- }
122
+ function resetCharityButton(context) {
123
+ const donationButtons = $(context).find(charityEl.donationCartBtn);
124
+ const btnSelected = 'btn-selected';
125
+ const btnSecondary = 'btn-secondary';
126
+ const defaultAmount = getDefaultCharityAmount();
130
127
 
131
- export function setDefaultCharityValue() {
132
- $(charityEl.donationCartBtnSelected).each(function() {
133
- const $btn = $(this);
134
- const $item = $btn.closest(charityEl.charityItem);
135
- const value = $btn.data('value');
136
-
137
- $item.find(charityEl.donationCartValue).text(value);
138
- $item.find(charityEl.donationCartCostBlock)
139
- .removeClass(charityEl.donationCartCostBlockHide);
140
- });
128
+ donationButtons.each((i, btn) => {
129
+ $(btn).attr('data-value') === defaultAmount
130
+ ? $(btn).removeClass(btnSecondary).addClass(btnSelected)
131
+ : $(btn).removeClass(btnSelected).addClass(btnSecondary);
132
+ })
141
133
  }
142
134
 
143
- function showDonationCostBlock($charity) {
144
- $charity.find(charityEl.donationCartCostBlock)
145
- .removeClass(charityEl.donationCartCostBlockHide);
135
+ function getDefaultCharityAmount() {
136
+ const donationButtons = $(charityEl.charityItem).find(charityEl.donationCartBtn);
137
+ return donationButtons.first().attr('data-value');
146
138
  }
147
139
 
148
140
  function resetCharityValue() {
@@ -150,19 +142,12 @@ function resetCharityValue() {
150
142
  $(charityEl.donationCartValue).text(defaultValue);
151
143
  }
152
144
 
153
- export function initCharityInteractions() {
154
- $(document).on('click', charityEl.donationCartRemove, function(e) {
155
- e.preventDefault();
156
-
157
- const $item = $(this).closest(charityEl.charityItem);
158
- $item.removeClass(charityEl.charityAdded);
159
- $item
160
- .find(charityEl.donationCartCostBlock)
161
- .addClass(charityEl.donationCartCostBlockHide);
162
- $item
163
- .find(charityEl.donationCartBtn)
164
- .removeClass('btn-selected')
165
- .addClass('btn-secondary');
166
- resetCharityValue();
167
- });
145
+ export function toggleMultipleCharityChoose(context) {
146
+ context.find(charityEl.donationCart).toggleClass(charityEl.donationCartHide);
147
+ resetCharityButton(context);
148
+ resetCharityValue();
149
+ }
150
+
151
+ export function setDefaultCharityValue() {
152
+ $(charityEl.charityItem).hasClass(charityEl.charityMultiple) && resetCharityValue();
168
153
  }
@@ -18,7 +18,7 @@ Wick.DefaultStore = {
18
18
  const dropdowns = $("#openingTimes, #specialTimes, #facilities");
19
19
  const btn = $('[data-toggle="collapse"]');
20
20
 
21
- if ($(window).width() >= 768) {
21
+ if (Wick.Responsive.getCurrentBreakpoint() !== 'down-sm') {
22
22
  dropdowns.addClass("show");
23
23
  if (btn.length) {
24
24
  btn.attr("aria-expanded", "true");
@@ -32,9 +32,6 @@ Wick.DefaultStore = {
32
32
  },
33
33
  init () {
34
34
  Wick.DefaultStore.updateCollapseState();
35
- $(window).resize( _.debounce(function () {
36
- Wick.DefaultStore.updateCollapseState();
37
- }, 200));
38
35
  Wick.DefaultStore.el.$searchInput.on('input', Wick.DefaultStore.checkVisibilityOfClearButton);
39
36
  }
40
37
  }
@@ -1,10 +1,13 @@
1
1
  import {copyToClipboard} from "./utils/copy-to-clipboard";
2
+ import {isApp} from "./utils/helpers";
2
3
 
3
4
  var Wick = window.Wick || {};
4
5
 
5
6
  Wick.MyAccount = {
6
7
  el: {
7
- $myAccount: $('.my-account'),
8
+ $clipboardCode: $('.clipboard-code'),
9
+ appInfo: '.app-info',
10
+ hideAppInfo: 'app-info--hide'
8
11
  },
9
12
  clipboardCodes: {
10
13
  tradeProId: {
@@ -39,11 +42,15 @@ Wick.MyAccount = {
39
42
  const { btnCopy } = Wick.MyAccount.clipboardCodes[codeType];
40
43
  $(btnCopy).on('click', () => Wick.MyAccount.copyCode(codeType));
41
44
  });
45
+
46
+ if($(Wick.MyAccount.el.appInfo).length && isApp()) {
47
+ $(Wick.MyAccount.el.appInfo).addClass(Wick.MyAccount.el.hideAppInfo);
48
+ }
42
49
  }
43
50
  }
44
51
 
45
52
  $(document).ready(function () {
46
- if (!Wick.MyAccount.el.$myAccount.length) {
53
+ if (!Wick.MyAccount.el.$clipboardCode.length) {
47
54
  return;
48
55
  }
49
56
 
@@ -25,7 +25,9 @@ Wick.PersonalDetails = {
25
25
  notification: '.notification',
26
26
  fieldError: '.form-row.form-row_validation-error',
27
27
  changePasswordPopup: '#change-password-popup',
28
+ confirmationEmailPopup: '#confirmation-email-popup',
28
29
  globalMessage: '.globalMessages',
30
+ newEmailElement: '.new-email',
29
31
  },
30
32
  errorMessages: {
31
33
  errorFirstName: 'Please enter your first name',
@@ -150,10 +152,25 @@ Wick.PersonalDetails = {
150
152
  });
151
153
  }
152
154
  },
155
+ showConfirmationEmailPopup(currentEmail) {
156
+ const $popup = $(Wick.PersonalDetails.el.confirmationEmailPopup);
157
+ $popup.find(Wick.PersonalDetails.el.newEmailElement).text(currentEmail);
158
+ $popup.modal('show');
159
+
160
+ $popup.find(Wick.PersonalDetails.el.btnContinue).off('click').on('click', function () {
161
+ Wick.LeaveEvent.removeLeaveEvent();
162
+ $popup.modal('hide');
163
+ Wick.PersonalDetails.requestToUpdateForm();
164
+ });
165
+ },
153
166
  submitForm(event) {
154
167
  event.preventDefault();
155
168
  Wick.PersonalDetails.trimAndRewriteInputs(Wick.PersonalDetails.el.userForm);
156
169
 
170
+ const currentState = Wick.LeaveEvent.getState(Wick.PersonalDetails.el.userForm);
171
+ const initialEmail = Wick.LeaveEvent.initialFormState.find(field => field.name === 'email')?.value;
172
+ const currentEmail = currentState.find(field => field.name === 'email')?.value;
173
+
157
174
  if (!Wick.PersonalDetails.hasUnsavedChanges()) {
158
175
  Wick.PersonalDetails.hideForm();
159
176
  $(Wick.PersonalDetails.el.notification).remove();
@@ -162,7 +179,11 @@ Wick.PersonalDetails = {
162
179
  }
163
180
 
164
181
  if (Wick.PersonalDetails.validateForm()) {
165
- Wick.PersonalDetails.requestToUpdateForm();
182
+ if (initialEmail !== currentEmail) {
183
+ Wick.PersonalDetails.showConfirmationEmailPopup(currentEmail);
184
+ } else {
185
+ Wick.PersonalDetails.requestToUpdateForm();
186
+ }
166
187
  } else {
167
188
  Wick.Notification.show({
168
189
  ...Wick.PersonalDetails.defaultNotificationConfig,
@@ -1,11 +1,12 @@
1
1
  {{#extend "my-account-v2"
2
- customIconUserClass=my_account.installer.icons.installer
2
+ customIconUserClass=header_menu.installer.[0].items.[0].icon
3
3
  dataBreadcrumbs=my_account.installer.breadcrumbs
4
4
  pageClass="page_my-account_new"
5
5
  title=my_account.installer.title
6
6
  pageMyAcc=true
7
7
  myAccV2=true
8
8
  isLoggedIn=true
9
+ installer-nav=true
9
10
  mainClass="my-account"
10
11
  switch-vat=true
11
12
  }}
@@ -7,6 +7,7 @@
7
7
  pageMyAcc=true
8
8
  myAccV2=true
9
9
  isLoggedIn=true
10
+ tradepro-nav=true
10
11
  mainClass="my-account"
11
12
  switch-vat=true
12
13
  }}
@@ -1,4 +1,13 @@
1
- {{#extend "my-account-v2" dataBreadcrumbs=my_account.diy.breadcrumbs pageClass="page_my-account_new" title="My Account DIY" pageMyAcc=true myAccV2=true isLoggedIn=true mainClass="my-account"}}
1
+ {{#extend
2
+ "my-account-v2"
3
+ dataBreadcrumbs=my_account.diy.breadcrumbs
4
+ pageClass="page_my-account_new"
5
+ title="My Account DIY"
6
+ pageMyAcc=true
7
+ myAccV2=true
8
+ isLoggedIn=true
9
+ mainClass="my-account"
10
+ }}
2
11
  {{#content "main"}}
3
12
  <div class="container">
4
13
  <div class="row">
@@ -56,6 +56,11 @@
56
56
  mod="details-modal"
57
57
  id="change-password-popup"
58
58
  }}
59
+ {{> my-account/leave-modal
60
+ personal_details.confirmation-popup
61
+ mod="details-modal"
62
+ id="confirmation-email-popup"
63
+ }}
59
64
  <script defer src="./js/my-account.min.js"></script>
60
65
  <script defer src="./js/personal-details.min.js"></script>
61
66
  {{/content}}
@@ -9,6 +9,12 @@
9
9
  <h1 class="page-header__title">
10
10
  Fire Doors
11
11
  </h1>
12
+
13
+ <div class="srp-injected">
14
+ <div class="srp-injected__content">
15
+ <p>Outdoor wall lights are a stylish, yet effective solution to keeping your garden glowing as the day draws to a close. Whether it’s an extra bit of security from one of our outdoor wall lights with sensors, or a more vibrant, decorative addition, our full range of outdoor lighting is designed to bring a touch of life to your surroundings.</p>
16
+ </div>
17
+ </div>
12
18
  </div>
13
19
 
14
20
  <div class="row">
@@ -59,9 +65,9 @@
59
65
  </div>
60
66
  </div>
61
67
  {{> legal-info}}
62
-
68
+
63
69
  {{> similar-products-v2 }}
64
-
70
+
65
71
  {{> seo-widgets title="More products" }}
66
72
  {{> seo-widgets title="Related category" }}
67
73
 
@@ -0,0 +1,56 @@
1
+ {{#extend "right-aside" page_shopping-cart pageClass="page_basket" title="Basket" pageBasket=true}}
2
+ {{#content "head" mode="append"}}
3
+ <link type="text/css" rel="stylesheet" href="./css/pages/page_shopping-cart.css">
4
+ <link type="text/css" rel="stylesheet" href="./css/pages/checkout.css">
5
+ {{/content}}
6
+ {{#content "heading"}}
7
+ <div class="notification-area desktop">
8
+ {{> notifications notification-page.warning-tiles-changed withCloseBtn="true"}}
9
+ </div>
10
+
11
+ <div class="page-header">
12
+ <a href="./" class="page-header__back-link">Continue shopping</a>
13
+
14
+ <div class="notification-area mobile">
15
+ {{> notifications notification-page.warning-tiles-changed withCloseBtn="true"}}
16
+ </div>
17
+
18
+ <h1 class="page-header__title">Your Basket</h1>
19
+ </div>
20
+ {{/content}}
21
+ {{#content "main"}}
22
+ {{> checkout_actions
23
+ top-actions=true
24
+ modifier="checkout-widget__basket-block_small"}}
25
+ {{> checkout_order-summary_basket label="Total: " id=1 }}
26
+ {{#extend "lines-group" name="For delivery" count=4 id=136589003}}
27
+ {{#content "content"}}
28
+ {{#each linesDelivery}}
29
+ {{>order-line mod="order-line_shrink" dynamic=true deliveryChecked=true pageShopCart=true}}
30
+ {{/each}}
31
+ {{/content}}
32
+ {{/extend}}
33
+ {{#if charityDonations}}
34
+ {{> charity-donations charityDonations}}
35
+ {{#each linesCharity}}
36
+ {{>order-line mod="order-line_shrink" dynamic=true}}
37
+ {{/each}}
38
+ {{/if}}
39
+ {{/content}}
40
+ {{#content "aside"}}
41
+ {{> checkout_order-summary_basket label="Total: " id=2}}
42
+ {{/content}}
43
+ {{#content "prefooter"}}
44
+ <div class="container component pb-0">
45
+ <hr>
46
+ </div>
47
+
48
+ {{/content}}
49
+ {{#content "footer"}}
50
+ {{> footer_basket }}
51
+ {{/content}}
52
+ {{#content "foot" mode="append"}}
53
+ <script defer src="./js/page/basket.js"></script>
54
+ {{> click-and-collect-modal }}
55
+ {{/content}}
56
+ {{/extend}}
@@ -40,7 +40,7 @@
40
40
  {{/each}}
41
41
  </section>
42
42
  {{/each}}
43
- {{> basket-charity-donations-new shopping-cart-v2.charityDonationNew }}
43
+ {{> charity-donations-multiple shopping-cart-v2.charityDonationMultiple}}
44
44
  {{/content}}
45
45
  {{#content "foot" mode="append"}}
46
46
  <script defer src="./js/basket.min.js"></script>
@@ -0,0 +1,82 @@
1
+ {{#extend
2
+ "my-account-v2"
3
+ dataBreadcrumbs=discount.tradePro.breadcrumbs
4
+ pageClass="page_my-account_new"
5
+ title="My Account DIY"
6
+ pageMyAcc=true
7
+ myAccV2=true
8
+ isLoggedIn=true
9
+ mainClass="discount-offer"
10
+ }}
11
+ {{#content "head" mode="append"}}
12
+ <link type="text/css" rel="stylesheet" href="./css/pages/page_discount.css">
13
+ {{/content}}
14
+ {{#content "main"}}
15
+ <div class="container">
16
+ <div class="row">
17
+ <div class="col-12">
18
+ {{> my-account/mobile-nav
19
+ menu=discount.menu
20
+ active-index=7
21
+ page-name=discount.menu.[7].title
22
+ }}
23
+ </div>
24
+ </div>
25
+ </div>
26
+
27
+ <div class="container">
28
+ <div class="row">
29
+ <div class="col-12 discount-offer__wrap">
30
+ <div class="discount-offer__header">
31
+ <h1 class="title">TradePro Discount</h1>
32
+ </div>
33
+ <div class="discount-offer__body">
34
+ {{> my-account/discount
35
+ discountSrc=my_account.tradepro.discount
36
+ title="In-store discount"
37
+ code=my_account.discount
38
+ }}
39
+ {{> my-account/clipboard-code-card
40
+ mod="trade-pro-id"
41
+ icon=my_account.tradepro.icons.tradeproID
42
+ title="TradePro ID"
43
+ code=my_account.tradeProId
44
+ description=discount.tradePro.discountIdText
45
+ }}
46
+ {{> my-account/clipboard-code-card
47
+ mod="discount-code"
48
+ icon="fas fa-badge-percent"
49
+ title="Online discount code"
50
+ code=my_account.tradepro.discountCode
51
+ description=discount.tradePro.onlineDiscountText
52
+ }}
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+
58
+ <div class="app-info app-info--hide">
59
+ <div class="container">
60
+ <div class="row">
61
+ <div class="col-12 app-info__wrap">
62
+ <div class="app-info__header">
63
+ <h2 class="title">Download the APP</h2>
64
+ <p class="description">Download the Wickes TradePro App now and sign in to access your trade benefits.</p>
65
+ <div class="app-info__stores">
66
+ {{#each discount.downloadAppImages}}
67
+ <a href="#">
68
+ {{{this}}}
69
+ </a>
70
+ {{/each}}
71
+ </div>
72
+ </div>
73
+ <div class="download-app-img"></div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ {{/content}}
79
+ {{#content "foot" mode="append"}}
80
+ <script defer src="./js/my-account.min.js"></script>
81
+ {{/content}}
82
+ {{/extend}}
@@ -0,0 +1,82 @@
1
+ {{#extend
2
+ "my-account-v2"
3
+ dataBreadcrumbs=discount.tradePro.breadcrumbs
4
+ pageClass="page_my-account_new"
5
+ title="My Account DIY"
6
+ pageMyAcc=true
7
+ myAccV2=true
8
+ isLoggedIn=true
9
+ mainClass="discount-offer"
10
+ }}
11
+ {{#content "head" mode="append"}}
12
+ <link type="text/css" rel="stylesheet" href="./css/pages/page_discount.css">
13
+ {{/content}}
14
+ {{#content "main"}}
15
+ <div class="container">
16
+ <div class="row">
17
+ <div class="col-12">
18
+ {{> my-account/mobile-nav
19
+ menu=discount.menu
20
+ active-index=7
21
+ page-name=discount.menu.[7].title
22
+ }}
23
+ </div>
24
+ </div>
25
+ </div>
26
+
27
+ <div class="container">
28
+ <div class="row">
29
+ <div class="col-12 discount-offer__wrap">
30
+ <div class="discount-offer__header">
31
+ <h1 class="title">TradePro Discount</h1>
32
+ </div>
33
+ <div class="discount-offer__body">
34
+ {{> my-account/discount
35
+ discountSrc=my_account.tradepro.discount
36
+ title="In-store discount"
37
+ code=my_account.discount
38
+ }}
39
+ {{> my-account/clipboard-code-card
40
+ mod="trade-pro-id"
41
+ icon=my_account.tradepro.icons.tradeproID
42
+ title="TradePro ID"
43
+ code=my_account.tradeProId
44
+ description=discount.tradePro.discountIdText
45
+ }}
46
+ {{> my-account/clipboard-code-card
47
+ mod="discount-code"
48
+ icon="fas fa-badge-percent"
49
+ title="Online discount code"
50
+ code=my_account.tradepro.discountCode
51
+ description=discount.tradePro.onlineDiscountText
52
+ }}
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+
58
+ <div class="app-info">
59
+ <div class="container">
60
+ <div class="row">
61
+ <div class="col-12 app-info__wrap">
62
+ <div class="app-info__header">
63
+ <h2 class="title">Download the APP</h2>
64
+ <p class="description">Download the Wickes TradePro App now and sign in to access your trade benefits.</p>
65
+ <div class="app-info__stores">
66
+ {{#each discount.downloadAppImages}}
67
+ <a href="#">
68
+ {{{this}}}
69
+ </a>
70
+ {{/each}}
71
+ </div>
72
+ </div>
73
+ <div class="download-app-img"></div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ {{/content}}
79
+ {{#content "foot" mode="append"}}
80
+ <script defer src="./js/my-account.min.js"></script>
81
+ {{/content}}
82
+ {{/extend}}