wickes-css2 2.96.0-develop.5 → 2.96.0-develop.7
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.
- package/build/css/components/tile-calculator.css +1 -1
- package/build/css/pages/page_ti.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/pdp-main.css +1 -1
- package/build/js/basket.min.js +1 -1
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +1 -1
- package/build/js/emulation.min.js +4 -1
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/pdp.bundle.min.js +1 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +1 -1
- package/package.json +1 -1
- package/src/components/pdp-info-v2.hbs +0 -37
- package/src/components/shopping-list-pdf.hbs +37 -7
- package/src/components/ti-total-area.hbs +0 -32
- package/src/components/ti.hbs +0 -791
- package/src/components/voucher.hbs +4 -6
- package/src/js/components/general/switchVat.js +11 -0
- package/src/js/emulation/project-list-print.js +4 -1
- package/src/layouts/base.hbs +1 -1
- package/src/page_activate-trade-pro-api-flow.html +62 -0
- package/src/page_my-shopping-list-pdf-vat.html +7 -0
- package/src/partials/header.hbs +1 -1
- package/src/scss/components/_ti-total-area.scss +0 -53
- package/src/scss/components/tile-calculator.scss +1 -4
- package/src/scss/pages/page_ti.scss +3 -719
- package/src/sitemap.html +4 -0
- package/src/components/ti-header.hbs +0 -34
- package/src/components/ti-radio.hbs +0 -57
- package/src/components/tile-banner.hbs +0 -13
- package/src/components/tile-why-wickes.hbs +0 -32
- package/src/data/data_flooring-installation.json +0 -186
- package/src/scss/components/_ti-header.scss +0 -43
- package/src/scss/components/_ti-radio.scss +0 -142
- package/src/scss/components/_tile-banner.scss +0 -141
- package/src/scss/components/_tile-why-wickes.scss +0 -57
|
@@ -34,12 +34,9 @@
|
|
|
34
34
|
{{!-- online --}}
|
|
35
35
|
<span class="voucher__label">{{online.label}}</span>
|
|
36
36
|
<div class="voucher__content">
|
|
37
|
-
|
|
38
|
-
{{
|
|
39
|
-
|
|
40
|
-
{{/if}}
|
|
41
|
-
<p class="mt-1 mb-0">{{online.note}}</p>
|
|
42
|
-
</div>
|
|
37
|
+
{{#if online.title}}
|
|
38
|
+
<h4 class="mb-0">{{online.title}}</h4>
|
|
39
|
+
{{/if}}
|
|
43
40
|
<div class="my-3">
|
|
44
41
|
<div class="voucher__code-field copy-tradePro-barcode">
|
|
45
42
|
<input type="text" value="{{online.code}}" disabled>
|
|
@@ -48,6 +45,7 @@
|
|
|
48
45
|
</span>
|
|
49
46
|
</div>
|
|
50
47
|
</div>
|
|
48
|
+
<p class="mb-3">{{online.note}}</p>
|
|
51
49
|
{{#ifCond online.buttonLink "&&" online.buttonText}}
|
|
52
50
|
<a href="{{online.buttonLink}}" class="btn btn-primary">
|
|
53
51
|
<span class="btn__text">{{online.buttonText}}</span>
|
|
@@ -125,7 +125,18 @@ Wick.VatToggle = {
|
|
|
125
125
|
document.cookie = cookiesString;
|
|
126
126
|
},
|
|
127
127
|
|
|
128
|
+
rerenderCheckbox: function () {
|
|
129
|
+
// rerender checkbox to avoid browser caching IM-1534
|
|
130
|
+
if ($(Wick.VatToggle.el.switchVatInput).length) {
|
|
131
|
+
let inputTemplate = $(Wick.VatToggle.el.switchVatInput).prop('outerHTML');
|
|
132
|
+
inputTemplate = inputTemplate.replace('name="vat"', `name="vat-${Date.now()}"`);
|
|
133
|
+
$(Wick.VatToggle.el.switchVatInput).replaceWith(inputTemplate);
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
|
|
128
137
|
init: function() {
|
|
138
|
+
Wick.VatToggle.rerenderCheckbox();
|
|
139
|
+
|
|
129
140
|
const isVatShouldBeToggled = Wick.VatToggle.isOn();
|
|
130
141
|
const isVatToggled = !!Wick.VatToggle.getSwitcherState();
|
|
131
142
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var Wick = window.Wick || {};
|
|
2
|
+
|
|
1
3
|
function initProjectShadowList() {
|
|
2
4
|
$('.download-pdf').on('click', emulateDownloadAction);
|
|
3
5
|
}
|
|
@@ -7,7 +9,8 @@ function emulateDownloadAction(e) {
|
|
|
7
9
|
|
|
8
10
|
let currentUrl = window.location.href;
|
|
9
11
|
let baseUrl = currentUrl.substring(0, currentUrl.lastIndexOf('/') + 1);
|
|
10
|
-
let
|
|
12
|
+
let pageName = Wick.VatToggle.isToggleVatAvailable() ? 'page_my-shopping-list-pdf-vat.html' : 'page_my-shopping-list-pdf.html';
|
|
13
|
+
let pageShoppingListPDF = baseUrl + pageName;
|
|
11
14
|
|
|
12
15
|
$.ajax({
|
|
13
16
|
type: 'get',
|
package/src/layouts/base.hbs
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{{#extend "base" pageClass="trade-pro-act" title="Activate TradePro account"}}
|
|
2
|
+
{{#content "head" mode="append"}}
|
|
3
|
+
<link type="text/css" rel="stylesheet" href="./css/pages/page_act-trade-pro.css">
|
|
4
|
+
{{/content}}
|
|
5
|
+
{{#content "body"}}
|
|
6
|
+
|
|
7
|
+
<main class="container trade-pro-acc">
|
|
8
|
+
<div class="page-header">
|
|
9
|
+
<h1>Activate your TradePro account</h1>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="tradepro-act-wrapper">
|
|
12
|
+
<form action="#" class="tradepro-act">
|
|
13
|
+
<div class="tradepro-act__content component">
|
|
14
|
+
<div class="tradepro-act__info">
|
|
15
|
+
<p>
|
|
16
|
+
Create a new password to activate your TradePro account
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
{{> form-row type="password" id="new-password" label="Password" required="true"}}
|
|
20
|
+
{{> form-row type="password" id="confirmed-password" label="Confirm password" required="true"}}
|
|
21
|
+
<div>
|
|
22
|
+
<p>
|
|
23
|
+
As a member of TradePro, we send our members the latest deals and offers.
|
|
24
|
+
</p>
|
|
25
|
+
<p>
|
|
26
|
+
Please indicate how you'd like us to send these to you:
|
|
27
|
+
</p>
|
|
28
|
+
<div class="form-row">
|
|
29
|
+
<div class="form-row__field">
|
|
30
|
+
{{> checkbox id="sendEmail" label="Email"}}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="form-row">
|
|
34
|
+
<div class="form-row__field">
|
|
35
|
+
{{> checkbox id="sendSms" label="SMS" }}
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="form-row">
|
|
39
|
+
<div class="form-row__field">
|
|
40
|
+
{{> checkbox id="sendPhone" label="Phone" }}
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="form-row">
|
|
44
|
+
<div class="form-row__field">
|
|
45
|
+
{{> checkbox id="sendPost" label="Post" }}
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="form-row form-row__action form-row__action_act-btn-wrap">
|
|
50
|
+
<div class="form-row__col-btn">
|
|
51
|
+
<button class="btn btn-primary btn_full">
|
|
52
|
+
<span class="btn__text">Activate TradePro account</span>
|
|
53
|
+
</button>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</form>
|
|
58
|
+
</div>
|
|
59
|
+
</main>
|
|
60
|
+
|
|
61
|
+
{{/content}}
|
|
62
|
+
{{/extend}}
|
package/src/partials/header.hbs
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
<span class="header-top-line__link-title">Project list</span>
|
|
98
98
|
</a>
|
|
99
99
|
{{else}}
|
|
100
|
-
<a href="./page_my-shopping-list.html" class="header-top-line__link">
|
|
100
|
+
<a href="{{#if switch-vat}}./page_project-list-vat.html{{else}}./page_my-shopping-list.html{{/if}}" class="header-top-line__link">
|
|
101
101
|
<span class="btn__text">
|
|
102
102
|
<i class="fas fa-clipboard-list fa-lg"></i>
|
|
103
103
|
</span>
|
|
@@ -3,50 +3,11 @@
|
|
|
3
3
|
background: $gray-bg;
|
|
4
4
|
padding: 20px;
|
|
5
5
|
|
|
6
|
-
& .step1-inactive {
|
|
7
|
-
width: 100%;
|
|
8
|
-
flex-wrap: wrap;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
6
|
&__title {
|
|
12
7
|
font-weight: 500;
|
|
13
8
|
margin-bottom: 13px;
|
|
14
9
|
}
|
|
15
10
|
|
|
16
|
-
&__waste {
|
|
17
|
-
width: 100%;
|
|
18
|
-
text-align: right;
|
|
19
|
-
font-size: .875rem;
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
line-height: 1;
|
|
22
|
-
justify-content: flex-end;
|
|
23
|
-
margin-bottom: 0;
|
|
24
|
-
padding-bottom: 5px;
|
|
25
|
-
|
|
26
|
-
.ti__total:not(.ti__total-waste) & {
|
|
27
|
-
display: none;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&__row {
|
|
32
|
-
width: 100%;
|
|
33
|
-
display: flex;
|
|
34
|
-
justify-content: space-between;
|
|
35
|
-
padding-bottom: 5px;
|
|
36
|
-
|
|
37
|
-
&-specification {
|
|
38
|
-
font-size: .875rem;
|
|
39
|
-
font-weight: 700;
|
|
40
|
-
line-height: 22px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&-value {
|
|
44
|
-
font-size: .875rem;
|
|
45
|
-
font-weight: 400;
|
|
46
|
-
line-height: 22px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
11
|
&__accordion-wrap {
|
|
51
12
|
color: $black;
|
|
52
13
|
}
|
|
@@ -156,12 +117,6 @@
|
|
|
156
117
|
font-size: 1rem;
|
|
157
118
|
font-weight: 500;
|
|
158
119
|
line-height: 24px;
|
|
159
|
-
|
|
160
|
-
.ti__step1-inactive & {
|
|
161
|
-
font-size: .875rem;
|
|
162
|
-
font-weight: 700;
|
|
163
|
-
line-height: 22px;
|
|
164
|
-
}
|
|
165
120
|
}
|
|
166
121
|
|
|
167
122
|
&__form-row {
|
|
@@ -200,10 +155,6 @@
|
|
|
200
155
|
background: $gray-bg;
|
|
201
156
|
padding: 5px 20px;
|
|
202
157
|
|
|
203
|
-
.ti__step1-inactive & {
|
|
204
|
-
padding: 0 20px;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
158
|
&::before {
|
|
208
159
|
content: '';
|
|
209
160
|
display: block;
|
|
@@ -251,10 +202,6 @@
|
|
|
251
202
|
display: none;
|
|
252
203
|
}
|
|
253
204
|
|
|
254
|
-
.ti__step1-inactive & {
|
|
255
|
-
padding: 8px 15px;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
205
|
&-value {
|
|
259
206
|
font-size: 1.125rem;
|
|
260
207
|
line-height: 24px;
|