spree_backend 3.7.14.1 → 4.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/app/assets/javascripts/spree/backend.js +2 -1
- data/app/assets/javascripts/spree/backend/admin.js +75 -66
- data/app/assets/javascripts/spree/backend/calculator.js +3 -3
- data/app/assets/javascripts/spree/backend/gateway.js +1 -1
- data/app/assets/javascripts/spree/backend/line_items_on_order_edit.js +23 -24
- data/app/assets/javascripts/spree/backend/promotions.js +4 -4
- data/app/assets/javascripts/spree/backend/shipments.js +32 -33
- data/app/assets/javascripts/spree/backend/taxonomy.js +75 -72
- data/app/assets/stylesheets/spree/backend/components/_badges.scss +46 -0
- data/app/assets/stylesheets/spree/backend/components/_buttons.scss +7 -23
- data/app/assets/stylesheets/spree/backend/components/_filters.scss +16 -6
- data/app/assets/stylesheets/spree/backend/components/_main.scss +4 -6
- data/app/assets/stylesheets/spree/backend/components/_navbar.scss +21 -0
- data/app/assets/stylesheets/spree/backend/components/_navigation.scss +2 -10
- data/app/assets/stylesheets/spree/backend/components/_page_header.scss +0 -23
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +25 -69
- data/app/assets/stylesheets/spree/backend/components/_tables.scss +53 -12
- data/app/assets/stylesheets/spree/backend/components/_taxon_products_view.scss +2 -2
- data/app/assets/stylesheets/spree/backend/global/_variables.scss +10 -13
- data/app/assets/stylesheets/spree/backend/plugins/_jquery_ui.scss +33 -20
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +23 -18
- data/app/assets/stylesheets/spree/backend/shared/_base.scss +0 -8
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +5 -38
- data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +3 -6
- data/app/controllers/spree/admin/customer_returns_controller.rb +2 -2
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +1 -1
- data/app/controllers/spree/admin/orders_controller.rb +2 -2
- data/app/controllers/spree/admin/payment_methods_controller.rb +1 -1
- data/app/controllers/spree/admin/products_controller.rb +2 -2
- data/app/controllers/spree/admin/reimbursement_types_controller.rb +1 -1
- data/app/controllers/spree/admin/resource_controller.rb +1 -1
- data/app/controllers/spree/admin/return_authorizations_controller.rb +1 -1
- data/app/controllers/spree/admin/stores_controller.rb +5 -0
- data/app/controllers/spree/admin/taxons_controller.rb +1 -1
- data/app/controllers/spree/admin/users_controller.rb +2 -2
- data/app/helpers/spree/admin/base_helper.rb +9 -4
- data/app/helpers/spree/admin/customer_returns_helper.rb +1 -1
- data/app/helpers/spree/admin/navigation_helper.rb +41 -25
- data/app/helpers/spree/admin/orders_helper.rb +2 -2
- data/app/views/kaminari/{_first_page.html.erb → twitter-bootstrap-4/_first_page.html.erb} +5 -3
- data/app/views/kaminari/{_gap.html.erb → twitter-bootstrap-4/_gap.html.erb} +5 -1
- data/app/views/kaminari/{_last_page.html.erb → twitter-bootstrap-4/_last_page.html.erb} +5 -3
- data/app/views/kaminari/{_next_page.html.erb → twitter-bootstrap-4/_next_page.html.erb} +5 -7
- data/app/views/kaminari/{_page.html.erb → twitter-bootstrap-4/_page.html.erb} +8 -2
- data/app/views/kaminari/{_paginator.html.erb → twitter-bootstrap-4/_paginator.html.erb} +3 -1
- data/app/views/kaminari/{_prev_page.html.erb → twitter-bootstrap-4/_prev_page.html.erb} +5 -7
- data/app/views/spree/admin/adjustments/_adjustment.html.erb +14 -4
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +6 -6
- data/app/views/spree/admin/adjustments/index.html.erb +7 -5
- data/app/views/spree/admin/countries/_form.html.erb +13 -1
- data/app/views/spree/admin/customer_returns/index.html.erb +2 -2
- data/app/views/spree/admin/general_settings/edit.html.erb +14 -14
- data/app/views/spree/admin/images/_form.html.erb +2 -2
- data/app/views/spree/admin/images/edit.html.erb +6 -6
- data/app/views/spree/admin/option_types/_form.html.erb +2 -2
- data/app/views/spree/admin/option_types/edit.html.erb +5 -5
- data/app/views/spree/admin/orders/_add_line_item.html.erb +5 -5
- data/app/views/spree/admin/orders/_add_product.html.erb +5 -5
- data/app/views/spree/admin/orders/_adjustments.html.erb +4 -3
- data/app/views/spree/admin/orders/_line_items.html.erb +4 -4
- data/app/views/spree/admin/orders/_risk_analysis.html.erb +3 -3
- data/app/views/spree/admin/orders/_shipment.html.erb +5 -5
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +17 -17
- data/app/views/spree/admin/orders/customer_details/edit.html.erb +4 -4
- data/app/views/spree/admin/orders/index.html.erb +56 -33
- data/app/views/spree/admin/payment_methods/_form.html.erb +4 -4
- data/app/views/spree/admin/payments/_list.html.erb +3 -3
- data/app/views/spree/admin/payments/index.html.erb +1 -1
- data/app/views/spree/admin/product_properties/index.html.erb +10 -2
- data/app/views/spree/admin/products/_add_stock_form.html.erb +6 -6
- data/app/views/spree/admin/products/_form.html.erb +26 -31
- data/app/views/spree/admin/products/edit.html.erb +1 -1
- data/app/views/spree/admin/products/index.html.erb +5 -5
- data/app/views/spree/admin/products/new.html.erb +5 -5
- data/app/views/spree/admin/products/stock.html.erb +3 -3
- data/app/views/spree/admin/promotions/_actions.html.erb +4 -4
- data/app/views/spree/admin/promotions/_form.html.erb +7 -7
- data/app/views/spree/admin/promotions/_promotion_action.html.erb +4 -4
- data/app/views/spree/admin/promotions/_promotion_rule.html.erb +12 -5
- data/app/views/spree/admin/promotions/_rules.html.erb +5 -5
- data/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb +5 -5
- data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +5 -5
- data/app/views/spree/admin/promotions/actions/_create_line_items.html.erb +3 -3
- data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +10 -6
- data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +10 -6
- data/app/views/spree/admin/promotions/edit.html.erb +5 -5
- data/app/views/spree/admin/promotions/index.html.erb +3 -3
- data/app/views/spree/admin/promotions/rules/_country.html.erb +2 -2
- data/app/views/spree/admin/promotions/rules/_item_total.html.erb +4 -4
- data/app/views/spree/admin/promotions/rules/_option_value.html.erb +8 -8
- data/app/views/spree/admin/promotions/rules/_product.html.erb +2 -2
- data/app/views/spree/admin/promotions/rules/_taxon.html.erb +2 -2
- data/app/views/spree/admin/promotions/rules/_user.html.erb +2 -2
- data/app/views/spree/admin/properties/_form.html.erb +2 -2
- data/app/views/spree/admin/properties/index.html.erb +3 -3
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +10 -2
- data/app/views/spree/admin/reimbursement_types/_form.html.erb +6 -6
- data/app/views/spree/admin/reports/sales_total.html.erb +4 -2
- data/app/views/spree/admin/return_authorizations/index.html.erb +1 -1
- data/app/views/spree/admin/return_index/customer_returns.html.erb +3 -3
- data/app/views/spree/admin/return_index/return_authorizations.html.erb +15 -9
- data/app/views/spree/admin/shared/_account_nav.html.erb +60 -48
- data/app/views/spree/admin/shared/_address_form.html.erb +11 -4
- data/app/views/spree/admin/shared/_calculator_fields.html.erb +4 -4
- data/app/views/spree/admin/shared/_content_header.html.erb +4 -4
- data/app/views/spree/admin/shared/_header.html.erb +18 -21
- data/app/views/spree/admin/shared/_index_table_options.html.erb +4 -5
- data/app/views/spree/admin/shared/_main_menu.html.erb +37 -35
- data/app/views/spree/admin/shared/_order_summary.html.erb +6 -7
- data/app/views/spree/admin/shared/_order_tabs.html.erb +47 -20
- data/app/views/spree/admin/shared/_product_tabs.html.erb +35 -11
- data/app/views/spree/admin/shared/_refunds.html.erb +1 -1
- data/app/views/spree/admin/shared/_table_filter.html.erb +7 -5
- data/app/views/spree/admin/shared/_version.html.erb +4 -2
- data/app/views/spree/admin/shared/named_types/_form.html.erb +1 -1
- data/app/views/spree/admin/shared/sub_menu/_configuration.html.erb +1 -1
- data/app/views/spree/admin/shared/sub_menu/_product.html.erb +1 -1
- data/app/views/spree/admin/shared/sub_menu/_promotion.html.erb +1 -1
- data/app/views/spree/admin/shared/sub_menu/_returns.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/_form.html.erb +21 -21
- data/app/views/spree/admin/states/_form.html.erb +2 -2
- data/app/views/spree/admin/stock_locations/_form.html.erb +6 -6
- data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +4 -4
- data/app/views/spree/admin/stock_movements/index.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/index.html.erb +34 -32
- data/app/views/spree/admin/stock_transfers/new.html.erb +13 -11
- data/app/views/spree/admin/stores/_form.html.erb +5 -6
- data/app/views/spree/admin/stores/index.html.erb +3 -1
- data/app/views/spree/admin/tax_categories/_form.html.erb +1 -1
- data/app/views/spree/admin/tax_rates/_form.html.erb +11 -9
- data/app/views/spree/admin/taxons/_form.html.erb +4 -4
- data/app/views/spree/admin/users/_addresses_form.html.erb +10 -10
- data/app/views/spree/admin/users/_form.html.erb +2 -2
- data/app/views/spree/admin/users/_lifetime_stats.html.erb +3 -3
- data/app/views/spree/admin/users/_sidebar.html.erb +26 -11
- data/app/views/spree/admin/users/addresses.html.erb +4 -2
- data/app/views/spree/admin/users/edit.html.erb +8 -8
- data/app/views/spree/admin/users/index.html.erb +3 -3
- data/app/views/spree/admin/users/items.html.erb +2 -2
- data/app/views/spree/admin/users/orders.html.erb +2 -2
- data/app/views/spree/admin/variants/_autocomplete.js.erb +5 -5
- data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +1 -1
- data/app/views/spree/admin/variants/_form.html.erb +2 -2
- data/app/views/spree/admin/variants/_split.js.erb +3 -3
- data/app/views/spree/admin/variants/index.html.erb +2 -2
- data/app/views/spree/admin/variants/new.html.erb +8 -6
- data/app/views/spree/admin/zones/_country_members.html.erb +4 -4
- data/app/views/spree/admin/zones/_form.html.erb +9 -9
- data/app/views/spree/admin/zones/_state_members.html.erb +4 -4
- data/app/views/spree/admin/zones/index.html.erb +2 -2
- data/app/views/spree/layouts/admin.html.erb +9 -6
- data/lib/spree/backend.rb +3 -2
- data/lib/spree_backend.rb +2 -1
- data/spree_backend.gemspec +3 -2
- metadata +39 -27
- data/app/assets/stylesheets/spree/backend/components/_labels.scss +0 -55
- data/app/assets/stylesheets/spree/backend/components/_panels.scss +0 -3
- data/app/assets/stylesheets/spree/backend/components/_wells.scss +0 -3
- data/app/assets/stylesheets/spree/backend/sections/_account.scss +0 -20
@@ -1,60 +1,62 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* globals show_flash, base_url, taxon_tree_menu */
|
2
|
+
|
3
|
+
function handleAjaxError (lastRollback) {
|
4
|
+
$.jstree.rollback(lastRollback)
|
5
|
+
show_flash('error', '<strong>' + Spree.translations.server_error + '</strong><br />' + Spree.translations.taxonomy_tree_error)
|
4
6
|
}
|
5
7
|
|
6
|
-
function
|
7
|
-
var
|
8
|
-
var position = data.rslt.cp
|
9
|
-
var node = data.rslt.o
|
10
|
-
var
|
11
|
-
var url = Spree.url(base_url).clone()
|
12
|
-
url.setPath(url.path() + '/' + node.prop('id'))
|
8
|
+
function handleMove (e, data) {
|
9
|
+
var lastRollback = data.rlbk
|
10
|
+
var position = data.rslt.cp
|
11
|
+
var node = data.rslt.o
|
12
|
+
var newParent = data.rslt.np
|
13
|
+
var url = Spree.url(base_url).clone()
|
14
|
+
url.setPath(url.path() + '/' + node.prop('id'))
|
13
15
|
$.ajax({
|
14
16
|
type: 'POST',
|
15
17
|
dataType: 'json',
|
16
18
|
url: url.toString(),
|
17
19
|
data: {
|
18
20
|
_method: 'put',
|
19
|
-
'taxon[parent_id]':
|
21
|
+
'taxon[parent_id]': newParent.prop('id'),
|
20
22
|
'taxon[child_index]': position,
|
21
23
|
token: Spree.api_key
|
22
|
-
}
|
24
|
+
}
|
23
25
|
}).fail(function () {
|
24
|
-
|
25
|
-
})
|
26
|
-
return true
|
26
|
+
handleAjaxError(lastRollback)
|
27
|
+
})
|
28
|
+
return true
|
27
29
|
}
|
28
30
|
|
29
|
-
function
|
30
|
-
var
|
31
|
-
var node = data.rslt.obj
|
32
|
-
var name = data.rslt.name
|
33
|
-
var position = data.rslt.position
|
34
|
-
var
|
31
|
+
function handleCreate (e, data) {
|
32
|
+
var lastRollback = data.rlbk
|
33
|
+
var node = data.rslt.obj
|
34
|
+
var name = data.rslt.name
|
35
|
+
var position = data.rslt.position
|
36
|
+
var newParent = data.rslt.parent
|
35
37
|
return $.ajax({
|
36
38
|
type: 'POST',
|
37
39
|
dataType: 'json',
|
38
40
|
url: base_url.toString(),
|
39
41
|
data: {
|
40
42
|
'taxon[name]': name,
|
41
|
-
'taxon[parent_id]':
|
43
|
+
'taxon[parent_id]': newParent.prop('id'),
|
42
44
|
'taxon[child_index]': position,
|
43
45
|
token: Spree.api_key
|
44
46
|
}
|
45
47
|
}).done(function (data) {
|
46
|
-
node.prop('id', data.id)
|
48
|
+
node.prop('id', data.id)
|
47
49
|
}).fail(function () {
|
48
|
-
return
|
49
|
-
})
|
50
|
+
return handleAjaxError(lastRollback)
|
51
|
+
})
|
50
52
|
}
|
51
53
|
|
52
|
-
function
|
53
|
-
var
|
54
|
-
var node = data.rslt.obj
|
55
|
-
var name = data.rslt.new_name
|
56
|
-
var url = Spree.url(base_url).clone()
|
57
|
-
url.setPath(url.path() + '/' + node.prop('id'))
|
54
|
+
function handleRename (e, data) {
|
55
|
+
var lastRollback = data.rlbk
|
56
|
+
var node = data.rslt.obj
|
57
|
+
var name = data.rslt.new_name
|
58
|
+
var url = Spree.url(base_url).clone()
|
59
|
+
url.setPath(url.path() + '/' + node.prop('id'))
|
58
60
|
return $.ajax({
|
59
61
|
type: 'POST',
|
60
62
|
dataType: 'json',
|
@@ -65,53 +67,54 @@ function handle_rename(e, data) {
|
|
65
67
|
token: Spree.api_key
|
66
68
|
}
|
67
69
|
}).fail(function () {
|
68
|
-
|
69
|
-
})
|
70
|
+
handleAjaxError(lastRollback)
|
71
|
+
})
|
70
72
|
}
|
71
73
|
|
72
|
-
function
|
73
|
-
var
|
74
|
-
var node = data.rslt.obj
|
75
|
-
var
|
76
|
-
|
74
|
+
function handleDelete (e, data) {
|
75
|
+
var lastRollback = data.rlbk
|
76
|
+
var node = data.rslt.obj
|
77
|
+
var deleteUrl = base_url.clone()
|
78
|
+
deleteUrl.setPath(deleteUrl.path() + '/' + node.prop('id'))
|
77
79
|
if (confirm(Spree.translations.are_you_sure_delete)) {
|
78
80
|
$.ajax({
|
79
81
|
type: 'POST',
|
80
82
|
dataType: 'json',
|
81
|
-
url:
|
83
|
+
url: deleteUrl.toString(),
|
82
84
|
data: {
|
83
85
|
_method: 'delete',
|
84
86
|
token: Spree.api_key
|
85
87
|
}
|
86
88
|
}).fail(function () {
|
87
|
-
|
88
|
-
})
|
89
|
+
handleAjaxError(lastRollback)
|
90
|
+
})
|
89
91
|
} else {
|
90
|
-
$.jstree.rollback(
|
91
|
-
|
92
|
+
$.jstree.rollback(lastRollback)
|
93
|
+
lastRollback = null
|
92
94
|
}
|
93
95
|
}
|
94
96
|
|
95
|
-
var root = typeof exports !== 'undefined' && exports !== null ? exports : this
|
97
|
+
var root = typeof exports !== 'undefined' && exports !== null ? exports : this
|
96
98
|
|
97
|
-
root.setup_taxonomy_tree = function (
|
98
|
-
var $
|
99
|
-
if (
|
99
|
+
root.setup_taxonomy_tree = function (taxonomyId) {
|
100
|
+
var $taxonomyTree = $('#taxonomy_tree')
|
101
|
+
if (taxonomyId !== void 0) {
|
100
102
|
// this is defined within admin/taxonomies/edit
|
101
|
-
root.base_url = Spree.url(Spree.routes.taxonomy_taxons_path)
|
103
|
+
root.base_url = Spree.url(Spree.routes.taxonomy_taxons_path)
|
102
104
|
$.ajax({
|
103
105
|
url: Spree.url(base_url.path().replace('/taxons', '/jstree')).toString(),
|
104
106
|
data: {
|
105
107
|
token: Spree.api_key
|
106
108
|
}
|
107
109
|
}).done(function (taxonomy) {
|
108
|
-
|
110
|
+
// eslint-disable-next-line no-unused-vars
|
111
|
+
var lastRollback = null
|
109
112
|
var conf = {
|
110
113
|
json_data: {
|
111
114
|
data: taxonomy,
|
112
115
|
ajax: {
|
113
116
|
url: function (e) {
|
114
|
-
return Spree.url(base_url.path() + '/' + e.prop('id') + '/jstree' + '?token=' + Spree.api_key).toString()
|
117
|
+
return Spree.url(base_url.path() + '/' + e.prop('id') + '/jstree' + '?token=' + Spree.api_key).toString()
|
115
118
|
}
|
116
119
|
}
|
117
120
|
},
|
@@ -126,40 +129,40 @@ root.setup_taxonomy_tree = function (taxonomy_id) {
|
|
126
129
|
crrm: {
|
127
130
|
move: {
|
128
131
|
check_move: function (m) {
|
129
|
-
var
|
130
|
-
position = m.cp
|
131
|
-
node = m.o
|
132
|
-
|
133
|
-
if (!
|
134
|
-
return false
|
132
|
+
var newParent, node, position
|
133
|
+
position = m.cp
|
134
|
+
node = m.o
|
135
|
+
newParent = m.np
|
136
|
+
if (!newParent || node.prop('rel') === 'root') {
|
137
|
+
return false
|
135
138
|
}
|
136
139
|
// can't drop before root
|
137
|
-
if (
|
138
|
-
return false
|
140
|
+
if (newParent.prop('id') === 'taxonomy_tree' && position === 0) {
|
141
|
+
return false
|
139
142
|
}
|
140
|
-
return true
|
143
|
+
return true
|
141
144
|
}
|
142
145
|
}
|
143
146
|
},
|
144
147
|
contextmenu: {
|
145
148
|
items: function (obj) {
|
146
|
-
return taxon_tree_menu(obj, this)
|
149
|
+
return taxon_tree_menu(obj, this)
|
147
150
|
}
|
148
151
|
},
|
149
152
|
plugins: ['themes', 'json_data', 'dnd', 'crrm', 'contextmenu']
|
150
|
-
}
|
151
|
-
return $
|
152
|
-
return $(this).jstree('core').toggle_node($('.jstree-icon').first())
|
153
|
-
})
|
154
|
-
})
|
155
|
-
$
|
156
|
-
$
|
157
|
-
})
|
158
|
-
//
|
153
|
+
}
|
154
|
+
return $taxonomyTree.jstree(conf).bind('move_node.jstree', handleMove).bind('remove.jstree', handleDelete).bind('create.jstree', handleCreate).bind('rename.jstree', handleRename).bind('loaded.jstree', function () {
|
155
|
+
return $(this).jstree('core').toggle_node($('.jstree-icon').first())
|
156
|
+
})
|
157
|
+
})
|
158
|
+
$taxonomyTree.on('dblclick', 'a', function () {
|
159
|
+
$taxonomyTree.jstree('rename', this)
|
160
|
+
})
|
161
|
+
// suppress form submit on enter/return
|
159
162
|
$(document).keypress(function (event) {
|
160
163
|
if (event.keyCode === 13) {
|
161
|
-
event.preventDefault()
|
164
|
+
event.preventDefault()
|
162
165
|
}
|
163
|
-
})
|
166
|
+
})
|
164
167
|
}
|
165
|
-
}
|
168
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
// Green
|
2
|
+
.badge-completed,
|
3
|
+
.badge-complete,
|
4
|
+
.badge-resumed,
|
5
|
+
.badge-considered_safe,
|
6
|
+
.badge-paid,
|
7
|
+
.badge-shipped,
|
8
|
+
.badge-ready,
|
9
|
+
.badge-active,
|
10
|
+
.badge-success,
|
11
|
+
.badge-sold,
|
12
|
+
.badge-open,
|
13
|
+
.badge-authorized {
|
14
|
+
@include badge-variant($success);
|
15
|
+
}
|
16
|
+
|
17
|
+
// Red
|
18
|
+
.badge-failed,
|
19
|
+
.badge-considered_risky,
|
20
|
+
.badge-error,
|
21
|
+
.badge-invalid,
|
22
|
+
.badge-closed {
|
23
|
+
@include badge-variant($danger);
|
24
|
+
}
|
25
|
+
|
26
|
+
// Orange
|
27
|
+
.badge-processing,
|
28
|
+
.badge-pending,
|
29
|
+
.badge-awaiting_return,
|
30
|
+
.badge-returned,
|
31
|
+
.badge-credit_owed,
|
32
|
+
.badge-balance_due,
|
33
|
+
.badge-backorder,
|
34
|
+
.badge-checkout,
|
35
|
+
.badge-cart,
|
36
|
+
.badge-address,
|
37
|
+
.badge-delivery,
|
38
|
+
.badge-payment,
|
39
|
+
.badge-confirm,
|
40
|
+
.badge-canceled,
|
41
|
+
.badge-void,
|
42
|
+
.badge-inactive,
|
43
|
+
.badge-notice,
|
44
|
+
.badge-partial {
|
45
|
+
@include badge-variant($warning);
|
46
|
+
}
|
@@ -1,41 +1,25 @@
|
|
1
1
|
.btn,
|
2
2
|
.nav-pills > li > a {
|
3
|
-
letter-spacing: 1px;
|
4
3
|
vertical-align: middle;
|
5
|
-
transition: color 0.1s linear 0s,background-color 0.1s linear 0s,opacity 0.2s linear 0s !important;
|
6
|
-
|
7
|
-
-webkit-font-smoothing: antialiased;
|
8
|
-
-webkit-text-size-adjust: 100%;
|
9
|
-
-ms-text-size-adjust: 100%;
|
10
|
-
-webkit-font-feature-settings: "kern" 1;
|
11
|
-
-moz-font-feature-settings: "kern" 1;
|
4
|
+
transition: color 0.1s linear 0s, background-color 0.1s linear 0s, opacity 0.2s linear 0s !important;
|
12
5
|
}
|
13
6
|
|
14
7
|
.btn {
|
15
8
|
text-align: center;
|
16
9
|
|
17
|
-
&:focus {
|
18
|
-
outline: 0 !important;
|
19
|
-
}
|
20
|
-
|
21
|
-
&:hover,
|
22
|
-
&:focus,
|
23
|
-
&:active,
|
24
|
-
&.active,
|
25
|
-
&.disabled,
|
26
|
-
&[disabled] {
|
27
|
-
box-shadow: none;
|
28
|
-
}
|
29
|
-
|
30
10
|
.glyphicon {
|
31
11
|
padding-right: 3px;
|
32
12
|
}
|
33
13
|
|
34
|
-
.ship { color:
|
14
|
+
.ship { color: #fff; }
|
35
15
|
}
|
36
16
|
|
37
17
|
.btn-sm .glyphicon { padding: 0; }
|
38
18
|
|
39
19
|
.btn.action-void { @extend .btn-danger; }
|
40
20
|
.btn.action-capture { @extend .btn-success; }
|
41
|
-
.btn.payment-action-edit {
|
21
|
+
.btn.payment-action-edit {
|
22
|
+
@extend .btn-primary;
|
23
|
+
|
24
|
+
color: $white !important;
|
25
|
+
}
|
@@ -6,21 +6,31 @@
|
|
6
6
|
}
|
7
7
|
|
8
8
|
.index-filter-button {
|
9
|
+
font-size: $font-size-sm;
|
9
10
|
.glyphicon {
|
10
|
-
color: $gray-
|
11
|
+
color: $gray-800;
|
11
12
|
}
|
12
13
|
|
13
14
|
button {
|
15
|
+
height: 100%;
|
14
16
|
text-transform: uppercase;
|
15
17
|
letter-spacing: 2px;
|
16
18
|
font-weight: bold;
|
17
|
-
font-size: $font-size
|
18
|
-
|
19
|
+
font-size: $small-font-size;
|
20
|
+
border-color: $input-border-color;
|
19
21
|
border-right: none;
|
22
|
+
border-top-right-radius: 0;
|
23
|
+
border-bottom-right-radius: 0;
|
24
|
+
background-color: $white;
|
20
25
|
|
21
|
-
&:focus {
|
22
|
-
background-color: $gray-
|
23
|
-
border-color: $input-border;
|
26
|
+
&:hover, &:focus {
|
27
|
+
background-color: $gray-100;
|
24
28
|
}
|
25
29
|
}
|
30
|
+
|
31
|
+
.js-quick-search {
|
32
|
+
font-size: $font-size-sm;
|
33
|
+
border-top-left-radius: 0;
|
34
|
+
border-bottom-left-radius: 0;
|
35
|
+
}
|
26
36
|
}
|
@@ -1,12 +1,10 @@
|
|
1
1
|
#main-part {
|
2
|
-
padding:
|
3
|
-
|
4
|
-
padding-left: 85px;
|
5
|
-
}
|
2
|
+
padding: $spacer ($spacer * 2) 0 ($spacer * 2);
|
3
|
+
margin-top: 50px;
|
6
4
|
}
|
7
5
|
|
8
|
-
.
|
9
|
-
padding:
|
6
|
+
.sidebar-minimized #main-part {
|
7
|
+
padding: $spacer ($spacer * 2) 0 ($spacer * 5);
|
10
8
|
}
|
11
9
|
|
12
10
|
#logo {
|
@@ -0,0 +1,21 @@
|
|
1
|
+
.header {
|
2
|
+
.navbar {
|
3
|
+
background-color: $navbar-inverse-bg;
|
4
|
+
padding: 0;
|
5
|
+
|
6
|
+
a:hover {
|
7
|
+
text-decoration: none;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
.dropdown-toggle {
|
12
|
+
&[aria-expanded="true"] {
|
13
|
+
background-color: $gray-900;
|
14
|
+
}
|
15
|
+
|
16
|
+
&:hover,
|
17
|
+
&:focus {
|
18
|
+
text-decoration: none;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
@@ -1,27 +1,4 @@
|
|
1
1
|
.content-header.page-header {
|
2
|
-
margin-top: 15px;
|
3
|
-
|
4
|
-
h1 {
|
5
|
-
font-size: $font-size-h1 / 1.5;
|
6
|
-
margin: 0;
|
7
|
-
line-height: 38px;
|
8
|
-
}
|
9
|
-
|
10
|
-
&.with-page-tabs {
|
11
|
-
border-bottom: 0;
|
12
|
-
margin-bottom: 6px;
|
13
|
-
padding-bottom: 0;
|
14
|
-
|
15
|
-
h1 {
|
16
|
-
margin-bottom: 8px;
|
17
|
-
}
|
18
|
-
|
19
|
-
.nav-tabs {
|
20
|
-
padding-left: 15px;
|
21
|
-
padding-top: 15px;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
2
|
.page-actions {
|
26
3
|
text-align: right;
|
27
4
|
|