cm-admin 1.5.2 → 1.5.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/stylesheets/cm_admin/base/table.scss +31 -12
- data/app/models/concerns/cm_admin/file_import.rb +3 -3
- data/app/views/cm_admin/main/_associated_table.html.slim +1 -1
- data/app/views/cm_admin/main/_table.html.slim +1 -1
- data/lib/cm_admin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20dd363538f277075fce6205a1121d1cc7c4b2446efd4ca40672989f2b096028
|
|
4
|
+
data.tar.gz: aac47d0f9d55366272478be2f3328b020774b5645a3f2b7567b7c3edb52490bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac0eeff444c884518caebc20724330a849a468112336f5c130c12a1aefd0010151c3727099b00b352457e521986ed47bbe5a0b78250e93f400bc0419140c3f18
|
|
7
|
+
data.tar.gz: a487366a4b8a831d24586e691ecc3b98e7f98c55559dd9090e68b1e60a1ca76d5162acf699fa3e0f23d7e263583e858d4ec65bb5f6ccf389eb9d6756824914d5
|
data/Gemfile.lock
CHANGED
|
@@ -65,12 +65,6 @@
|
|
|
65
65
|
z-index: 2;
|
|
66
66
|
background-color: $white;
|
|
67
67
|
}
|
|
68
|
-
th:nth-child(2) {
|
|
69
|
-
position: sticky;
|
|
70
|
-
left: 32px;
|
|
71
|
-
z-index: 2;
|
|
72
|
-
background-color: $white;
|
|
73
|
-
}
|
|
74
68
|
}
|
|
75
69
|
|
|
76
70
|
tbody {
|
|
@@ -93,12 +87,6 @@
|
|
|
93
87
|
z-index: 2;
|
|
94
88
|
background-color: $white;
|
|
95
89
|
}
|
|
96
|
-
td:nth-child(2) {
|
|
97
|
-
position: sticky;
|
|
98
|
-
left: 32px;
|
|
99
|
-
z-index: 2;
|
|
100
|
-
background-color: $white;
|
|
101
|
-
}
|
|
102
90
|
}
|
|
103
91
|
|
|
104
92
|
.check-box-space {
|
|
@@ -128,6 +116,37 @@
|
|
|
128
116
|
}
|
|
129
117
|
}
|
|
130
118
|
}
|
|
119
|
+
|
|
120
|
+
[data-bulk-actions="present"] {
|
|
121
|
+
thead {
|
|
122
|
+
th:nth-child(1) {
|
|
123
|
+
position: sticky;
|
|
124
|
+
left: 0;
|
|
125
|
+
z-index: 2;
|
|
126
|
+
background-color: $white;
|
|
127
|
+
}
|
|
128
|
+
th:nth-child(2) {
|
|
129
|
+
position: sticky;
|
|
130
|
+
left: 32px;
|
|
131
|
+
z-index: 2;
|
|
132
|
+
background-color: $white;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
tbody {
|
|
136
|
+
td:nth-child(1) {
|
|
137
|
+
position: sticky;
|
|
138
|
+
left: 0;
|
|
139
|
+
z-index: 2;
|
|
140
|
+
background-color: $white;
|
|
141
|
+
}
|
|
142
|
+
td:nth-child(2) {
|
|
143
|
+
position: sticky;
|
|
144
|
+
left: 32px;
|
|
145
|
+
z-index: 2;
|
|
146
|
+
background-color: $white;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
131
150
|
}
|
|
132
151
|
|
|
133
152
|
// table-column-modal
|
|
@@ -2,7 +2,7 @@ module CmAdmin::FileImport
|
|
|
2
2
|
extend ActiveSupport::Concern
|
|
3
3
|
included do
|
|
4
4
|
cm_admin do
|
|
5
|
-
STATUS_TAG_COLOR = { in_progress: '
|
|
5
|
+
STATUS_TAG_COLOR = { in_progress: 'active-two', success: 'completed', failed: 'danger' }
|
|
6
6
|
actions only: [:index, :show]
|
|
7
7
|
set_icon 'fa fa-file-upload'
|
|
8
8
|
cm_index do
|
|
@@ -21,7 +21,7 @@ module CmAdmin::FileImport
|
|
|
21
21
|
column :status, field_type: :tag, tag_class: STATUS_TAG_COLOR
|
|
22
22
|
column :associated_model_name, header: 'Table name'
|
|
23
23
|
column :added_by_name, header: 'Uploaded By'
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
cm_show page_title: :id do
|
|
@@ -43,4 +43,4 @@ module CmAdmin::FileImport
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
|
-
end
|
|
46
|
+
end
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
- bulk_actions.each do |action|
|
|
27
27
|
= custom_action_items(action, 'index')
|
|
28
28
|
.table-wrapper
|
|
29
|
-
table.index-table
|
|
29
|
+
table.index-table data-bulk-actions=(bulk_actions.present? && "present")
|
|
30
30
|
thead.cm-table__header
|
|
31
31
|
tr.header-row
|
|
32
32
|
- if bulk_actions.present?
|
data/lib/cm_admin/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cm-admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sajinmp
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2024-05-
|
|
13
|
+
date: 2024-05-21 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: caxlsx_rails
|