thecore_ui_rails_admin 2.1.11 → 2.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '028bce49c0f73efcfa8b78093202f248e34e623c648e9bc19203298dfc327301'
4
- data.tar.gz: 1fdb52d4e811e4261ef7379c9ea7cedbca9c2c0843d180afbdcc4412de9bdbe2
3
+ metadata.gz: 2efe9e43ff6240d05a8a6c354dbdd5d1f31a9fa06921fd0413d48c4cd1cf9888
4
+ data.tar.gz: 5547505395ababfefd1aad95ce47ab9522ef708fd2e015ba0d8e2c496625df80
5
5
  SHA512:
6
- metadata.gz: 891f2616cd3226de3967443e7b916752f0d1c53fabff2f2082b6b0b742e5a2e91e7d2ce858819d20c6b97e3e2fc744198022fae735a6baa8bc65e0492e0c5a37
7
- data.tar.gz: dc31275fed352d23a3e5bdc0c5990c96669e12c9ea57d54f7c11a549629102acc1dbab63798457f8b0fbf019f950d8c0c125fb7b7339d92afea83037ce464331
6
+ metadata.gz: 1405ddf99f2c19a7efeeeb997648432a472e647eb63bac2b8b12b0d54033e1ba4d55724354d3c9e9711441c5f97e88ffe62a716e4e4d66d619a4b118f6b8d7c6
7
+ data.tar.gz: 626437d6711bce56371dc3b10b9063bbad8890e3e011faa6dee00d853195dc8234c58c8a13373acd0c09258e0258aea846abc79bcd09aab4afc05809b101b9b0
@@ -1,13 +1,23 @@
1
- $RAbackground: #435761;
2
- $RAelements: #303e45;
3
- $RAtext: #dfe5e8;
4
- $RAborder: #607d8b;
5
- $RAlight: lighten( $RAbackground, 10% );
6
- $RAdark: darken( $RAbackground, 10% );
7
- $RAhighlight: lighten( $RAtext, 30% );
8
-
9
- $RAclear: #706f6f;
10
- $RAsuccess: #37BC9B;
11
- $RAinfo: #3BAFDA;
12
- $RAdanger: #E9573F;
13
- $RAwarnig: #F6BB42;
1
+ // $primary: #1f4068 !default;
2
+ $primary: #ed6501 !default;
3
+
4
+
5
+ $background: lighten($primary, 51%) !default;
6
+ $shadows: darken($primary, 10%) !default;
7
+
8
+ $text: darken($primary, 40%) !default;
9
+ $text-highlight: lighten($text, 35%) !default;
10
+
11
+ $link: $text !default;
12
+ $link-highlight: lighten($link, 10%) !default;
13
+
14
+ $element: $primary !default;
15
+ $element-text: lighten($element, 40%) !default;
16
+ $element-text-highlight: lighten($element-text, 10%) !default;
17
+ $element-border: darken($element, 10%) !default;
18
+
19
+ $neutral: #706f6f !default;
20
+ $success: #37BC9B !default;
21
+ $info: #3BAFDA !default;
22
+ $danger: #E9573F !default;
23
+ $warning: #F6BB42 !default;
@@ -1,12 +1,12 @@
1
1
  body {
2
2
  height: 100vh;
3
3
  // background: linear-gradient(-20deg, #09b7b9 30%, #1c51a4 100%);
4
- background-color: $RAbackground;
4
+ background-color: $background;
5
5
  }
6
6
 
7
7
  .jumbotron {
8
- background-color: $RAbackground;
9
- color: $RAtext;
8
+ background-color: $background;
9
+ color: $text;
10
10
  }
11
11
 
12
12
  .vertical-center {
@@ -33,11 +33,11 @@ body {
33
33
  }
34
34
 
35
35
  #new_user div.checkbox:hover {
36
- color: $RAhighlight
36
+ color: $text-highlight
37
37
  }
38
38
 
39
39
  #new_user div.actions input.btn {
40
40
  width: 100%;
41
- background-color: $RAelements;
42
- border-color: $RAborder;
41
+ background-color: $element;
42
+ border-color: $element-border;
43
43
  }
@@ -12,11 +12,11 @@
12
12
  }
13
13
 
14
14
  .bckg-dark {
15
- background-color:$RAbackground;
15
+ background-color:$background;
16
16
  }
17
17
 
18
18
  .bckg-login {
19
- background-color:$RAbackground;
19
+ background-color:$background;
20
20
  }
21
21
 
22
22
  .logo {
@@ -31,11 +31,11 @@
31
31
  }
32
32
 
33
33
  .bckg-dark-light {
34
- background: $RAtext;
34
+ background: $text;
35
35
  }
36
36
 
37
37
  .bckg-blue {
38
- background: $RAinfo;
38
+ background: $info;
39
39
  }
40
40
 
41
41
  .centered {
@@ -47,7 +47,7 @@
47
47
 
48
48
  .login-form-user {
49
49
  width: 25%;
50
- color: $RAlight;
50
+ color: $text-highlight;
51
51
  margin: 0 auto;
52
52
  margin-bottom: 25px;
53
53
 
@@ -58,7 +58,7 @@
58
58
  }
59
59
 
60
60
  .lost_id {
61
- color: $RAlight;
61
+ color: $text-highlight;
62
62
  margin-bottom: 15px;
63
63
  display: block;
64
64
  font-size: .9em;
@@ -104,16 +104,16 @@
104
104
  border: 0;
105
105
  }
106
106
  input[type="submit"] {
107
- background: $RAclear;
107
+ background: $neutral;
108
108
  border: 0;
109
109
  border-radius: 0;
110
110
  cursor: pointer;
111
111
  float: right;
112
- color:$RAlight;
112
+ color:$text-highlight;
113
113
  width:100%;
114
114
  }
115
115
  h2 {
116
- background: $RAclear;
116
+ background: $neutral;
117
117
  display: block;
118
118
  padding: 10px 15px;
119
119
  text-align: left;
@@ -122,15 +122,15 @@
122
122
  }
123
123
 
124
124
  .login-form {
125
- color:$RAlight;
125
+ color:$text-highlight;
126
126
  width: 30%;
127
127
 
128
128
  .links-form {
129
129
  a {
130
- color:$RAlight;
130
+ color:$text-highlight;
131
131
  text-decoration: none;
132
132
  &:hover {
133
- color: $RAhighlight;
133
+ color: $text-highlight;
134
134
  }
135
135
  }
136
136
  }
@@ -167,8 +167,8 @@
167
167
 
168
168
  input[type="submit"] {
169
169
  cursor: pointer;
170
- background: $RAborder;
171
- color:$RAlight;
170
+ background: $element-border;
171
+ color:$text-highlight;
172
172
  border-radius: 3px;
173
173
  border: 0;
174
174
  display: block;
@@ -177,15 +177,15 @@
177
177
  margin-top: 55px;
178
178
  width: 100%;
179
179
  &:hover {
180
- background: darken($RAborder, 5%);
180
+ background: darken($element-border, 5%);
181
181
  }
182
182
  }
183
183
 
184
184
  input[type="text"], input[type="email"], input[type="password"] {
185
185
  background-color: transparent;
186
186
  border: 0;
187
- border-bottom: 1px solid $RAlight;
188
- color:$RAlight;
187
+ border-bottom: 1px solid $text-highlight;
188
+ color:$text-highlight;
189
189
  margin-top: 15px;
190
190
  padding-bottom: 15px;
191
191
  }
@@ -193,8 +193,8 @@
193
193
  .input-group-addon {
194
194
  background-color: transparent;
195
195
  border: 0;
196
- border-bottom: 1px solid $RAlight;
197
- color:$RAlight;
196
+ border-bottom: 1px solid $text-highlight;
197
+ color:$text-highlight;
198
198
  margin-top: 15px;
199
199
  padding-bottom: 15px;
200
200
  padding-top: 12px;
@@ -11,18 +11,18 @@
11
11
 
12
12
  @-webkit-keyframes flash {
13
13
  0% { background-color: none; }
14
- 50% { background-color: $RAhighlight; }
14
+ 50% { background-color: $text-highlight; }
15
15
  100% { background-color: none; }
16
16
  }
17
17
 
18
18
  @-moz-keyframes flash {
19
19
  0% { background-color: none; }
20
- 50% { background-color: $RAhighlight; }
20
+ 50% { background-color: $text-highlight; }
21
21
  100% { background-color: none; }
22
22
  }
23
23
 
24
24
  @-ms-keyframes flash {
25
25
  0% { background-color: none; }
26
- 50% { background-color: $RAhighlight; }
26
+ 50% { background-color: $text-highlight; }
27
27
  100% { background-color: none; }
28
28
  }
@@ -16,11 +16,11 @@
16
16
  *= require rails_admin_selectize/index
17
17
  *= require_self
18
18
  */
19
+ @import 'colors';
19
20
  @import "jquery-ui";
20
21
  @import "jquery-ui/dialog";
21
22
  @import 'bootstrap-sprockets';
22
23
  @import 'bootstrap';
23
- @import 'colors';
24
24
  @import 'common';
25
25
  @import "flashing";
26
26
  @import 'devise';
@@ -30,177 +30,14 @@
30
30
  @import 'thecore_ui_commons/thecore';
31
31
  @import "togglable-sidebar";
32
32
 
33
- .page-header.dashboard {
34
- border-color: $RAbackground;
35
- }
36
-
37
- .breadcrumb {
38
- background: $RAinfo;
39
- .false a, .false:before {
40
- color: darken($RAinfo, 30%) !important;
41
- }
42
- .active, .active:before {
43
- color: $RAlight;
44
- }
45
- }
46
-
47
- .table-striped {
48
- border-top-color: $RAinfo;
49
- .links ul li {
50
- padding-right: 0;
51
- a {
52
- border-radius: 50%;
53
- }
54
- }
55
- }
56
-
57
- .content {
58
- margin: 0px 0 15px 0;
59
- padding: 8px;
60
- background: $RAbackground;
61
- &.dashboard {
62
- background: $RAbackground;
63
- }
64
- .page-header {
65
- display: none;
66
- }
67
- }
68
-
69
- a.delete {
70
- color: $RAlight;
71
- }
72
-
73
- .box {
74
- padding: 15px;
75
- margin-bottom: 30px;
76
- border: 1px solid $RAbackground;
77
- position: relative;
78
- min-height: 170px;
79
- transition: all 0.3s ease;
80
- color: rgba($RAlight,0.7);
81
- overflow: hidden;
82
- &:hover, &:focus {
83
- border-color: $RAlight;
84
- .icon-bg {
85
- transform: scale(1.5) rotate(20deg);
86
- }
87
- }
88
- p {
89
- min-height: 30px;
90
- font-size: 15px;
91
- font-weight: 600;
92
- a.btn {
93
- border-radius: 3px;
94
- color: rgba($RAlight,0.7) !important;
95
- display: inline-block;
96
- margin-bottom: 0;
97
- font-weight: normal;
98
- text-align: center;
99
- vertical-align: middle;
100
- cursor: pointer;
101
- background-color: rgba($RAdark, 0.19);
102
- border: 1px solid transparent;
103
- white-space: nowrap;
104
- padding: 6px 12px;
105
- font-size: 14px;
106
- line-height: 1.42857143;
107
- border-radius: 4px;
108
- -webkit-user-select: none;
109
- -moz-user-select: none;
110
- -ms-user-select: none;
111
- user-select: none;
112
- }
113
- }
114
- strong {
115
- font-size: 36px;
116
- font-weight: 600;
117
- }
118
- .icon-bg {
119
- position: absolute;
120
- right: 0;
121
- bottom: 0;
122
- font-size: 100px;
123
- color: $RAdark;
124
- opacity: 0.08;
125
- filter: alpha(opacity=8);
126
- transition: all 1s ease;
127
- }
128
- &.bg-info {
129
- background-color: $RAinfo;
130
- }
131
- &.bg-success {
132
- background-color: $RAsuccess;
133
- }
134
- &.bg-warning {
135
- background-color: $RAwarnig;
136
- }
137
- &.bg-danger {
138
- background-color: $RAdanger;
139
- }
140
- &.bg-clear {
141
- background-color: $RAclear;
142
- }
143
- }
144
-
145
- /* User sign in and sign forms. */
146
- .border-form-div {
147
- max-width: 300px;
148
- padding: 19px 29px 29px;
149
- margin: 0 auto 20px;
150
- background-color: $RAlight;
151
- border: 1px solid $RAborder;
152
- -webkit-border-radius: 5px;
153
- -moz-border-radius: 5px;
154
- border-radius: 5px;
155
- -webkit-box-shadow: 0 1px 2px rgba($RAdark,.05);
156
- -moz-box-shadow: 0 1px 2px rgba($RAdark,.05);
157
- box-shadow: 0 1px 2px rgba($RAdark,.05);
158
- }
159
- .border-form-div .form-signin-heading,
160
- .border-form-div .checkbox {
161
- margin-bottom: 10px;
162
- }
163
- .border-form-div input[type="text"],
164
- .border-form-div input[type="email"],
165
- .border-form-div input[type="password"] {
166
- font-size: 16px;
167
- height: auto;
168
- margin-bottom: 15px;
169
- padding: 7px 9px;
170
- }
171
-
172
- #sidebar-collapse {
173
- background-color: transparent;
174
- background-image: none;
175
- border: 1px solid transparent;
176
- color: $RAclear;
177
- }
178
- #sidebar-collapse:focus {
179
- outline: 0;
180
- }
181
- #sidebar-collapse:hover {
182
- color:$RAlight;
33
+ .btn {
34
+ background-color: $element;
35
+ color: $element-text;
36
+ border-color: $element-border;
183
37
  }
184
38
 
185
- .exit-button {
186
- padding-top: 9px;
187
- padding-bottom: 9px;
188
- margin-top: 8px;
189
- margin-bottom: 8px;
190
- margin-right: 7px;
191
- }
192
-
193
- #app-name {
194
- font-size: 2em;
195
- color: $RAclear;
196
- font-family: 'Raleway', sans-serif;
197
- word-wrap: normal;
198
- }
199
- #app-name:hover {
200
- color: $RAlight;
201
- text-decoration: none;
202
- }
203
-
204
- body.rails_admin {
205
- padding-top: 0px;
206
- }
39
+ .btn:hover,
40
+ #new_user div.actions input.btn:hover {
41
+ color: $element-text-highlight;
42
+ background-color: $shadows;
43
+ }
@@ -18,10 +18,281 @@
18
18
  */
19
19
  @import "thecore";
20
20
 
21
- .box, .box p a.btn {
22
- color: $RAtext !important;
21
+ #filters > li > a:nth-child(1):hover, .dropdown-menu > li > a:nth-child(1):hover {
22
+ border-radius: 0;
23
23
  }
24
24
 
25
- .box:hover {
26
- color: $RAhighlight;
25
+ span.label.label-info.form-label {
26
+ background-color: $primary;
27
27
  }
28
+
29
+ .sidebar-nav li a {
30
+ color: $element-text;
31
+ }
32
+ #sidebar-wrapper .sidebar-nav {
33
+ background-color: $shadows !important;
34
+ color: $element-text;
35
+ &:hover {
36
+ color: $element-text-highlight !important;
37
+ }
38
+ .dropdown-header {
39
+ color: $element-text;
40
+ }
41
+ .sub-menu-container {
42
+ background-color: darken($shadows, 10%) !important;
43
+ }
44
+ .sub-menu-container .sub-menu a:hover {
45
+ color: $element-text-highlight !important;
46
+ }
47
+ .dropdown-header:hover, .dropdown-header.active, .dropdown-header.active .sub-menu-container .submenu:hover, .sub-menu.sub-menu-null a:hover {
48
+ background-color: $element;
49
+ color: $element-text-highlight !important;
50
+ }
51
+ }
52
+
53
+ #app-name {
54
+ color: $primary !important;
55
+ }
56
+
57
+ #sidebar-collapse {
58
+ color: $shadows !important;
59
+ }
60
+
61
+ .breadcrumb {
62
+ background: $element;
63
+ .false a, .false:before {
64
+ color: darken($element, 30%) !important;
65
+ }
66
+ .active, .active:before {
67
+ color: $text-highlight;
68
+ }
69
+ }
70
+
71
+ #list .form-inline {
72
+ margin-bottom: 2em;
73
+ }
74
+
75
+ p.boolean_type a.label-success,
76
+ p.boolean_type a.label-danger {
77
+ background: none;
78
+ font-size: 1.5em;
79
+ &:hover {
80
+ background: none;
81
+ }
82
+ }
83
+
84
+ body.rails_admin .nav.nav-tabs {
85
+ margin-bottom: 0;
86
+ }
87
+
88
+ #bulk_form .panel:nth-of-type(1) {
89
+ border-top-right-radius: 0;
90
+ border-top-left-radius: 0;
91
+ }
92
+
93
+ #scope_selector li, #action-menu li {
94
+ border-top-left-radius: 0.5em;
95
+ border-top-right-radius: 0.5em;
96
+ &.selected {
97
+ background-color: #fff;
98
+ color: $text !important;
99
+ a {
100
+ color: $text !important;
101
+ }
102
+ }
103
+
104
+ a:hover {
105
+ border-top-left-radius: 0.5em;
106
+ border-top-right-radius: 0.5em;
107
+ background-color: rgba($element, .5);
108
+ color: $element-text-highlight !important;
109
+ }
110
+ }
111
+
112
+ .well {
113
+ background-color: darken($background, 2%);
114
+ border-color: darken($background, 2%);
115
+ }
116
+
117
+ .content a, a {
118
+ color: $link;
119
+ text-decoration: none;
120
+ &:hover {
121
+ color: $link-highlight; }
122
+ }
123
+
124
+ .page-header.dashboard {
125
+ border-color: $background;
126
+ }
127
+
128
+ .table-striped {
129
+ border-top-color: $info;
130
+ .links ul li {
131
+ padding-right: 0;
132
+ a {
133
+ border-radius: 50%;
134
+ }
135
+ }
136
+ }
137
+
138
+ .content {
139
+ margin: 0px 0 15px 0;
140
+ padding: 8px;
141
+ background: $background;
142
+ &.dashboard {
143
+ background: $background;
144
+ }
145
+ .page-header {
146
+ display: none;
147
+ }
148
+ }
149
+
150
+ a.delete {
151
+ color: $text-highlight;
152
+ }
153
+
154
+ .box {
155
+ border-radius: 1em;
156
+ display: block;
157
+ padding: 15px;
158
+ margin-bottom: 30px;
159
+ border: 1px solid $element-border;
160
+ position: relative;
161
+ min-height: 15em;
162
+ transition: all 0.3s ease;
163
+ background-color: lighten($element, 25%);
164
+ color: $element-text;
165
+ overflow: hidden;
166
+ &:hover, &:focus {
167
+ border-color: $shadows;
168
+ .icon-bg {
169
+ transform: scale(1.5) rotate(20deg);
170
+ }
171
+ }
172
+ p {
173
+ min-height: 30px;
174
+ font-size: 15px;
175
+ font-weight: 600;
176
+ a.btn {
177
+ border-radius: 3px;
178
+ color: rgba($text-highlight,0.7) !important;
179
+ display: inline-block;
180
+ margin-bottom: 0;
181
+ font-weight: normal;
182
+ text-align: center;
183
+ vertical-align: middle;
184
+ cursor: pointer;
185
+ background-color: rgba($shadows, 0.19);
186
+ border: 1px solid transparent;
187
+ white-space: nowrap;
188
+ padding: 6px 12px;
189
+ font-size: 14px;
190
+ line-height: 1.42857143;
191
+ border-radius: 4px;
192
+ -webkit-user-select: none;
193
+ -moz-user-select: none;
194
+ -ms-user-select: none;
195
+ user-select: none;
196
+ }
197
+ }
198
+ strong.count {
199
+ font-size: 10em;
200
+ font-weight: 600;
201
+ }
202
+ p.model,
203
+ strong.count {
204
+ color: $element-text;
205
+ &:hover {
206
+ color: $element-text-highlight;
207
+ }
208
+ }
209
+ .icon-bg {
210
+ position: absolute;
211
+ right: 0;
212
+ bottom: 0;
213
+ font-size: 15em;
214
+ color: $element-text;
215
+ opacity: 0.20;
216
+ filter: alpha(opacity=20);
217
+ transition: all 1s ease;
218
+ }
219
+ &.bg-info {
220
+ background-color: $info;
221
+ }
222
+ &.bg-success {
223
+ background-color: $success;
224
+ }
225
+ &.bg-warning {
226
+ background-color: $warning;
227
+ }
228
+ &.bg-danger {
229
+ background-color: $danger;
230
+ }
231
+ &.bg-clear {
232
+ background-color: $neutral;
233
+ }
234
+ }
235
+
236
+ /* User sign in and sign forms. */
237
+ .border-form-div {
238
+ max-width: 300px;
239
+ padding: 19px 29px 29px;
240
+ margin: 0 auto 20px;
241
+ background-color: $text-highlight;
242
+ border: 1px solid $element-border;
243
+ -webkit-border-radius: 5px;
244
+ -moz-border-radius: 5px;
245
+ border-radius: 5px;
246
+ -webkit-box-shadow: 0 1px 2px rgba($shadows,.05);
247
+ -moz-box-shadow: 0 1px 2px rgba($shadows,.05);
248
+ box-shadow: 0 1px 2px rgba($shadows,.05);
249
+ }
250
+ .border-form-div .form-signin-heading,
251
+ .border-form-div .checkbox {
252
+ margin-bottom: 10px;
253
+ }
254
+ .border-form-div input[type="text"],
255
+ .border-form-div input[type="email"],
256
+ .border-form-div input[type="password"] {
257
+ font-size: 16px;
258
+ height: auto;
259
+ margin-bottom: 15px;
260
+ padding: 7px 9px;
261
+ }
262
+
263
+ #sidebar-collapse {
264
+ background-color: transparent;
265
+ background-image: none;
266
+ border: 1px solid transparent;
267
+ color: $neutral;
268
+ }
269
+ #sidebar-collapse:focus {
270
+ outline: 0;
271
+ }
272
+ #sidebar-collapse:hover {
273
+ color:$text-highlight;
274
+ }
275
+
276
+ .exit-button {
277
+ padding-top: 9px;
278
+ padding-bottom: 9px;
279
+ margin-top: 8px;
280
+ margin-bottom: 8px;
281
+ margin-right: 7px;
282
+ }
283
+
284
+ #app-name {
285
+ font-size: 2em;
286
+ color: $neutral;
287
+ font-family: 'Raleway', sans-serif;
288
+ word-wrap: normal;
289
+ }
290
+ #app-name:hover {
291
+ color: $text-highlight;
292
+ text-decoration: none;
293
+ }
294
+
295
+ body.rails_admin {
296
+ padding-top: 0px;
297
+ background-color: $background;
298
+ }
@@ -32,13 +32,12 @@
32
32
  width: 100%;
33
33
  position: absolute;
34
34
  padding: 15px;
35
- background-color: rgb(59,78,89);
35
+ background-color: $background;
36
36
  min-height: 100vh;
37
37
  }
38
38
  #wrapper.toggled #page-content-wrapper {
39
39
  position: absolute;
40
40
  margin-right: -250px;
41
- background-color: rgb(59,78,89);
42
41
  }
43
42
  /* Sidebar Styles */
44
43
 
@@ -16,10 +16,13 @@
16
16
  - if @abstract_model
17
17
  = breadcrumb
18
18
  .well.well-sm
19
- %ul.nav.nav-pills
19
+ %ul.nav.nav-pills#action-menu
20
20
  = menu_for((@abstract_model ? (@object.try(:persisted?) ? :member : :collection) : :root), @abstract_model, @object)
21
21
  = content_for :contextual_tabs
22
22
  .well.well-sm
23
23
  = yield
24
24
  - else
25
25
  = yield
26
+
27
+ %script
28
+ $('.dropdown-toggle').dropdown()
@@ -1,4 +1,4 @@
1
- %div.panel.panel-success
1
+ %div.panel
2
2
  %div.panel-heading
3
3
  %ul.inline.list-inline.pull-right
4
4
  = menu_for :member, @abstract_model, object, true
@@ -6,6 +6,7 @@
6
6
  = check_box_tag "bulk_ids[]", object.id, false, id: "bulk_ids_#{object.id}"
7
7
  %a{:"data-toggle" => "collapse", href: "#object-id-#{object.id}"}
8
8
  = (object.resume rescue false || object.display_name rescue false || object.title rescue false || object.name rescue false || object.code rescue false)
9
+ %b.caret
9
10
  %div{id: "object-id-#{object.id}", class: "panel-collapse collapse"}
10
11
  %div.panel-body
11
12
  - properties.map{ |property| property.bind(:object, object) }.each do |property|
@@ -9,27 +9,25 @@
9
9
  .row
10
10
  - group.each do |item|
11
11
  .col-sm-6
12
- .box.bg.bg-clear= self.send(item)
12
+ .box= self.send(item)
13
13
 
14
14
  - charts_medium.in_groups_of(3, false).each_with_index do |group, i|
15
15
  .row
16
16
  - group.each do |item|
17
17
  .col-sm-4
18
- .box.bg.bg-clear= self.send(item)
18
+ .box= self.send(item)
19
19
 
20
20
  - if @abstract_models
21
21
  .row
22
22
  - @abstract_models.each do |abstract_model|
23
23
  - index_path = index_path(model_name: abstract_model.to_param)
24
- - if authorized?(:index, abstract_model) && !index_path.include?("ckeditor")
25
- - row_class = "box bg-clear #{"link" if index_path} #{abstract_model.param_key}_links #{abstract_model.config.label_plural}"
24
+ - if authorized?(:index, abstract_model)
26
25
  .col-sm-4
27
- .box{class: row_class, :"data-link" => index_path}
26
+ %a.box.pjax{href: index_path}
28
27
  %i{class: "icon-bg #{abstract_model.config.navigation_icon.present? ? abstract_model.config.navigation_icon : 'file' }"}
29
28
  .text-center
30
- %p= capitalize_first_letter(abstract_model.config.label_plural)
31
- %strong= @count[abstract_model.model.name].to_s
32
- %p= link_to content_tag("i", "", class: "fa fa-list-ul"), index_path, class: 'btn btn-black pjax'
29
+ %p.model= capitalize_first_letter(abstract_model.config.label_plural)
30
+ %strong.count= @count[abstract_model.model.name].to_s
33
31
 
34
32
  - if @auditing_adapter && authorized?(:history_index)
35
33
  #block-tables.block
@@ -24,10 +24,10 @@
24
24
  = bulk_menu
25
25
  - if filterable_fields.present?
26
26
  %li.dropdown{style: 'float:right'}
27
- %a.dropdown-toggle{href: '#', :'data-toggle' => "dropdown"}
27
+ %a.dropdown-toggle#filters-menu{ :'data-toggle' => "dropdown", :'aria-haspopup'=>"true", :'aria-expanded'=>"true"}
28
28
  = t('admin.misc.add_filter')
29
29
  %b.caret
30
- %ul.dropdown-menu#filters{style: 'left:auto; right:0;'}
30
+ %ul.dropdown-menu#filters{style: 'left:auto; right:0;', :'aria-labelledby'=>"filters-menu"}
31
31
  - filterable_fields.each do |field|
32
32
  - field_options = case field.type
33
33
  - when :enum
@@ -44,27 +44,26 @@
44
44
 
45
45
  #list
46
46
  = form_tag(index_path(params.except(*%w[page f query])), method: :get, class: "pjax-form form-inline") do
47
- .well
48
- %span#filters_box{data: {options: ordered_filter_options.to_json}}
49
- %hr.filters_box{style: "display:#{ordered_filters.empty? ? 'none' : 'block'}"}
50
- .input-group
51
- %input.form-control.input-small{name: "query", type: "search", value: query, placeholder: t("admin.misc.filter")}
52
- %span.input-group-btn
53
- %button.btn.btn-primary{type: 'submit', :'data-disable-with' => '<i class="icon-white icon-refresh"></i> '.html_safe + t('admin.misc.refresh')}
54
- %i.icon-white.icon-refresh
55
- = t('admin.misc.refresh')
56
- %button#remove_filter.btn.btn-info{title: "Reset filters"}
57
- %i.icon-white.icon-remove
58
- - if export_action
59
- %span{style: 'float:right'}= link_to wording_for(:link, export_action), export_path(params.except('set').except('page')), class: 'btn btn-info'
47
+ %span#filters_box{data: {options: ordered_filter_options.to_json}}
48
+ %hr.filters_box{style: "display:#{ordered_filters.empty? ? 'none' : 'block'}"}
49
+ .input-group
50
+ %input.form-control.input-small{name: "query", type: "search", value: query, placeholder: t("admin.misc.filter")}
51
+ %span.input-group-btn
52
+ %button.btn.btn-primary{type: 'submit', :'data-disable-with' => '<i class="icon-white icon-refresh"></i> '.html_safe + t('admin.misc.refresh')}
53
+ %i.icon-white.icon-refresh
54
+ = t('admin.misc.refresh')
55
+ %button#remove_filter.btn.btn-info{title: "Reset filters"}
56
+ %i.icon-white.icon-remove
57
+ - if export_action
58
+ %span{style: 'float:right'}= link_to wording_for(:link, export_action), export_path(params.except('set').except('page')), class: 'btn btn-info'
60
59
 
61
60
  - unless @model_config.list.scopes.empty?
62
- %ul.nav.nav-tabs#scope_selector
63
- - @model_config.list.scopes.each_with_index do |scope, index|
61
+ %ul.nav.nav-tabs.nav-justified#scope_selector
62
+ - @model_config.list.scopes.each do |scope|
64
63
  - scope = '_all' if scope.nil?
65
- %li{class: "#{'active' if scope.to_s == params[:scope] || (params[:scope].blank? && index == 0)}"}
66
- %a{href: index_path(params.merge(scope: scope, page: nil)), class: 'pjax'}= I18n.t("admin.scopes.#{@abstract_model.to_param}.#{scope}", default: I18n.t("admin.scopes.#{scope}", default: scope.to_s.titleize))
67
-
64
+ %li{ class: "#{ scope.to_s == params[:scope] || (params[:scope].nil? && scope == "_all") ? "selected" : "inactive"}"}
65
+ %a.nav-link{href: index_path(params.merge(scope: scope, page: nil)), class: 'pjax'}= I18n.t("admin.scopes.#{@abstract_model.to_param}.#{scope}", default: I18n.t("admin.scopes.#{scope}", default: scope.to_s.titleize))
66
+
68
67
  = form_tag bulk_action_path(model_name: @abstract_model.to_param), method: :post, id: "bulk_form", class: ["form", frozen_columns ? 'ra-sidescroll' : nil], data: (frozen_columns ? {ra_sidescroll: frozen_columns} : {}) do
69
68
  = hidden_field_tag :bulk_action
70
69
  - if description.present?
@@ -14,7 +14,7 @@ it:
14
14
  scopes: ⋔
15
15
  add_filter: ⋔
16
16
  add_new: ⋔
17
- refresh: ""
17
+ refresh: Apply Filters
18
18
  bulk_menu_title: ☰✔
19
19
  select:
20
20
  toggle: ☑
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiRailsAdmin
2
- VERSION = '2.1.11'
2
+ VERSION = '2.1.16'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.11
4
+ version: 2.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-26 00:00:00.000000000 Z
11
+ date: 2020-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons