workarea-admin 3.5.12 → 3.5.13
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/workarea/admin/modules/release_calendar_placeholders.js +1 -21
- data/app/controllers/workarea/admin/releases_controller.rb +0 -10
- data/app/views/workarea/admin/catalog_products/content.html.haml +2 -0
- data/app/views/workarea/admin/catalog_products/edit.html.haml +4 -0
- data/app/views/workarea/admin/catalog_variants/edit.html.haml +2 -0
- data/app/views/workarea/admin/inventory_skus/edit.html.haml +2 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '098a9ad9021d540d19a295ea8a02b2977d741bfceea307bc6ec4a5f5af89220c'
|
4
|
+
data.tar.gz: 04c129147a023ced5857739fb66c749f1360e47f97b11961e99453b58ba1219b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 855fa89d046ba65fa09c03ae3f82f34cfb508db818ab381b0c25c5fd353b5628003d4087c9ceae11daa1cb2cf7a12c97ae36c9c8166f8a0611f7df3390ec6b17
|
7
|
+
data.tar.gz: '0601691b31b981310a4a139ee8ef894e16a0e5afcafcb87ba8c01c79e568ace43469da3c78dd180a6794644f6034d6e49d039c6c8566b5c7ff58e0c72c541048'
|
@@ -15,17 +15,6 @@ WORKAREA.registerModule('releaseCalendarPlaceholders', (function () {
|
|
15
15
|
WORKAREA.initModules($calendar);
|
16
16
|
},
|
17
17
|
|
18
|
-
now = new Date(),
|
19
|
-
|
20
|
-
standardTimezoneOffset = function() {
|
21
|
-
var jan = new Date(now.getFullYear(), 0, 1).getTimezoneOffset(),
|
22
|
-
jul = new Date(now.getFullYear(), 6, 1).getTimezoneOffset();
|
23
|
-
|
24
|
-
return Math.max(jan, jul);
|
25
|
-
},
|
26
|
-
|
27
|
-
isDSTObserved = now.getTimezoneOffset() < standardTimezoneOffset(),
|
28
|
-
|
29
18
|
/**
|
30
19
|
* Makes the AJAX request for a new calendar based on a supplied time.
|
31
20
|
* When the promise resolves the supplied placeholder element is
|
@@ -40,16 +29,7 @@ WORKAREA.registerModule('releaseCalendarPlaceholders', (function () {
|
|
40
29
|
* @param {string} endpoint - the endpoint for the AJAX request
|
41
30
|
*/
|
42
31
|
requestCalendar = function (startDate, placeholder, endpoint) {
|
43
|
-
|
44
|
-
|
45
|
-
if (isDSTObserved) {
|
46
|
-
timeOffset = timeOffset - 100;
|
47
|
-
}
|
48
|
-
|
49
|
-
$.get(endpoint, {
|
50
|
-
start_date: startDate,
|
51
|
-
time_offset: timeOffset
|
52
|
-
})
|
32
|
+
$.get(endpoint, { start_date: startDate })
|
53
33
|
.done(_.partial(displayCalendar, placeholder))
|
54
34
|
.fail(
|
55
35
|
_.partial(
|
@@ -9,7 +9,6 @@ module Workarea
|
|
9
9
|
before_action :find_calendar, only: [:index, :update]
|
10
10
|
before_action :authenticate_user_by_token, only: :calendar_feed
|
11
11
|
skip_before_action :require_login, :require_admin, only: :calendar_feed
|
12
|
-
around_action :set_time_zone, only: :index
|
13
12
|
|
14
13
|
def index
|
15
14
|
end
|
@@ -71,15 +70,6 @@ module Workarea
|
|
71
70
|
|
72
71
|
private
|
73
72
|
|
74
|
-
def set_time_zone
|
75
|
-
old_time_zone = Time.zone
|
76
|
-
time_offset = params[:time_offset].to_i / 100
|
77
|
-
Time.zone = time_offset.hours unless params[:time_offset].blank?
|
78
|
-
yield
|
79
|
-
ensure
|
80
|
-
Time.zone = old_time_zone
|
81
|
-
end
|
82
|
-
|
83
73
|
def find_release
|
84
74
|
model = if params[:id].present?
|
85
75
|
Release.find(params[:id])
|
@@ -34,6 +34,8 @@
|
|
34
34
|
= label_tag "product[meta_description]", t('workarea.admin.fields.meta_description'), class: 'property__name'
|
35
35
|
= text_field_tag 'product[meta_description]', @product.meta_description, class: 'text-box text-box--i18n', id: "product_meta_description"
|
36
36
|
|
37
|
+
= append_partials('admin.product_content_fields', product: @product)
|
38
|
+
|
37
39
|
.workflow-bar
|
38
40
|
.grid.grid--auto.grid--right.grid--middle
|
39
41
|
.grid__cell= render 'workarea/admin/shared/publishing_select'
|
@@ -110,6 +110,8 @@
|
|
110
110
|
= inline_svg('workarea/admin/icons/help.svg', class: 'svg-icon svg-icon--small svg-icon--blue', title: t('workarea.admin.catalog_products.edit.details.learn_more'))
|
111
111
|
%td.align-center -
|
112
112
|
|
113
|
+
= append_partials('admin.additional_product_details_information', product: @product)
|
114
|
+
|
113
115
|
.section
|
114
116
|
|
115
117
|
%h2= t('workarea.admin.catalog_products.edit.filters.label')
|
@@ -147,6 +149,8 @@
|
|
147
149
|
= inline_svg('workarea/admin/icons/help.svg', class: 'svg-icon svg-icon--small svg-icon--blue', title: t('workarea.admin.catalog_products.edit.filters.learn_more'))
|
148
150
|
%td.align-center -
|
149
151
|
|
152
|
+
= append_partials('admin.additional_product_filters_information', product: @product)
|
153
|
+
|
150
154
|
.grid.grid--huge
|
151
155
|
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
152
156
|
.property
|
@@ -70,6 +70,8 @@
|
|
70
70
|
= render 'workarea/admin/shared/csv_formatting_tooltip'
|
71
71
|
%td.align-center -
|
72
72
|
|
73
|
+
= append_partials('admin.additional_variant_information_fields', variant: @variant)
|
74
|
+
|
73
75
|
.workflow-bar
|
74
76
|
.grid.grid--auto.grid--right.grid--middle
|
75
77
|
.grid__cell= render 'workarea/admin/shared/publishing_select'
|
@@ -56,6 +56,8 @@
|
|
56
56
|
= label_tag 'sku[backordered_until]', t('workarea.admin.inventory_skus.edit.backordered_ship_date'), class: 'property__name'
|
57
57
|
= datetime_picker_tag 'sku[backordered_until]', @sku.backordered_until.try(:to_s, :date_only), class: 'text-box text-box--medium', data: { datepicker_field: { } }
|
58
58
|
|
59
|
+
= append_partials('admin.inventory_sku_fields', sku: @sku)
|
60
|
+
|
59
61
|
.grid.grid--huge
|
60
62
|
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
61
63
|
.property
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Crouse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea-core
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.5.
|
19
|
+
version: 3.5.13
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.5.
|
26
|
+
version: 3.5.13
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: workarea-storefront
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.5.
|
33
|
+
version: 3.5.13
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.5.
|
40
|
+
version: 3.5.13
|
41
41
|
description: Provides site administration functionality for the Workarea Commerce
|
42
42
|
Platform.
|
43
43
|
email:
|