thecore_ui_rails_admin 2.1.11 → 2.1.12

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: ef4bd11283c66b0770def013c33ed626ca6fdef43645f7a0f5b3161df5e192e1
4
+ data.tar.gz: f2541c48fd2ee56b3f120445b686cdb106f685fe79946a8cc8765fe22738a833
5
5
  SHA512:
6
- metadata.gz: 891f2616cd3226de3967443e7b916752f0d1c53fabff2f2082b6b0b742e5a2e91e7d2ce858819d20c6b97e3e2fc744198022fae735a6baa8bc65e0492e0c5a37
7
- data.tar.gz: dc31275fed352d23a3e5bdc0c5990c96669e12c9ea57d54f7c11a549629102acc1dbab63798457f8b0fbf019f950d8c0c125fb7b7339d92afea83037ce464331
6
+ metadata.gz: 294ce13be302b8396c27801cfa80f245ed2d7a755ff1d4f7586ddd9084d5652e05f2b0a7e0780e31a2bab6af7114f5d61934c030e7f105053c7b2e47291d87ad
7
+ data.tar.gz: 3387ed6fc774579453553ec7f38b8bf59b0d426c3c5ab39ef8a6112d553dcbef33f06bbb554b885041b1c26cb50b430ea7c21d862e2dac9f0c8ae75ead0a0b75
@@ -1,13 +1,21 @@
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
+
3
+ $background: lighten($primary, 51%) !default;
4
+ $shadows: darken($primary, 10%) !default;
5
+
6
+ $text: $primary !default;
7
+ $text-highlight: lighten($text, 35%) !default;
8
+
9
+ $link: $text !default;
10
+ $link-highlight: lighten($link, 10%) !default;
11
+
12
+ $element: $primary !default;
13
+ $element-text: lighten($element, 40%) !default;
14
+ $element-text-highlight: lighten($element-text, 10%) !default;
15
+ $element-border: darken($element, 10%) !default;
16
+
17
+ $neutral: #706f6f !default;
18
+ $success: #37BC9B !default;
19
+ $info: #3BAFDA !default;
20
+ $danger: #E9573F !default;
21
+ $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,12 @@
16
16
  *= require rails_admin_selectize/index
17
17
  *= require_self
18
18
  */
19
+ @import 'colors_override';
20
+ @import 'colors';
19
21
  @import "jquery-ui";
20
22
  @import "jquery-ui/dialog";
21
23
  @import 'bootstrap-sprockets';
22
24
  @import 'bootstrap';
23
- @import 'colors';
24
25
  @import 'common';
25
26
  @import "flashing";
26
27
  @import 'devise';
@@ -30,177 +31,14 @@
30
31
  @import 'thecore_ui_commons/thecore';
31
32
  @import "togglable-sidebar";
32
33
 
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;
34
+ .btn {
35
+ background-color: $element;
36
+ color: $element-text;
37
+ border-color: $element-border;
183
38
  }
184
39
 
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
- }
40
+ .btn:hover,
41
+ #new_user div.actions input.btn:hover {
42
+ color: $element-text-highlight;
43
+ background-color: $shadows;
44
+ }
@@ -18,10 +18,273 @@
18
18
  */
19
19
  @import "thecore";
20
20
 
21
- .box, .box p a.btn {
22
- color: $RAtext !important;
21
+ .sidebar-nav li a {
22
+ color: $element-text;
23
+ }
24
+ #sidebar-wrapper .sidebar-nav {
25
+ background-color: $shadows !important;
26
+ color: $element-text;
27
+ &:hover {
28
+ color: $element-text-highlight !important;
29
+ }
30
+ .dropdown-header {
31
+ color: $element-text;
32
+ }
33
+ .sub-menu-container {
34
+ background-color: darken($shadows, 10%) !important;
35
+ }
36
+ .sub-menu-container .sub-menu a:hover {
37
+ color: $element-text-highlight !important;
38
+ }
39
+ .dropdown-header:hover, .dropdown-header.active, .dropdown-header.active .sub-menu-container .submenu:hover, .sub-menu.sub-menu-null a:hover {
40
+ background-color: $element;
41
+ color: $element-text-highlight !important;
42
+ }
43
+ }
44
+
45
+ #app-name {
46
+ color: $primary !important;
47
+ }
48
+
49
+ #sidebar-collapse {
50
+ color: $shadows !important;
51
+ }
52
+
53
+ .breadcrumb {
54
+ background: $element;
55
+ .false a, .false:before {
56
+ color: darken($element, 30%) !important;
57
+ }
58
+ .active, .active:before {
59
+ color: $text-highlight;
60
+ }
61
+ }
62
+
63
+ #list .form-inline {
64
+ margin-bottom: 2em;
65
+ }
66
+
67
+ p.boolean_type a.label-success,
68
+ p.boolean_type a.label-danger {
69
+ background: none;
70
+ font-size: 1.5em;
71
+ &:hover {
72
+ background: none;
73
+ }
74
+ }
75
+
76
+ body.rails_admin .nav.nav-tabs {
77
+ margin-bottom: 0;
78
+ }
79
+
80
+ #bulk_form .panel:nth-of-type(1) {
81
+ border-top-right-radius: 0;
82
+ border-top-left-radius: 0;
83
+ }
84
+
85
+ #scope_selector li, #action-menu li {
86
+ border-top-left-radius: 0.5em;
87
+ border-top-right-radius: 0.5em;
88
+ &.selected {
89
+ background-color: #fff;
90
+ color: $text !important;
91
+ a {
92
+ color: $text !important;
93
+ }
94
+ }
95
+
96
+ a:hover {
97
+ border-top-left-radius: 0.5em;
98
+ border-top-right-radius: 0.5em;
99
+ background-color: rgba($element, .5);
100
+ color: $element-text-highlight !important;
101
+ }
102
+ }
103
+
104
+ .well {
105
+ background-color: darken($background, 2%);
106
+ border-color: darken($background, 2%);
107
+ }
108
+
109
+ .content a, a {
110
+ color: $link;
111
+ text-decoration: none;
112
+ &:hover {
113
+ color: $link-highlight; }
23
114
  }
24
115
 
25
- .box:hover {
26
- color: $RAhighlight;
116
+ .page-header.dashboard {
117
+ border-color: $background;
27
118
  }
119
+
120
+ .table-striped {
121
+ border-top-color: $info;
122
+ .links ul li {
123
+ padding-right: 0;
124
+ a {
125
+ border-radius: 50%;
126
+ }
127
+ }
128
+ }
129
+
130
+ .content {
131
+ margin: 0px 0 15px 0;
132
+ padding: 8px;
133
+ background: $background;
134
+ &.dashboard {
135
+ background: $background;
136
+ }
137
+ .page-header {
138
+ display: none;
139
+ }
140
+ }
141
+
142
+ a.delete {
143
+ color: $text-highlight;
144
+ }
145
+
146
+ .box {
147
+ border-radius: 1em;
148
+ display: block;
149
+ padding: 15px;
150
+ margin-bottom: 30px;
151
+ border: 1px solid $element-border;
152
+ position: relative;
153
+ min-height: 15em;
154
+ transition: all 0.3s ease;
155
+ background-color: $element;
156
+ color: $element-text;
157
+ overflow: hidden;
158
+ &:hover, &:focus {
159
+ border-color: $shadows;
160
+ .icon-bg {
161
+ transform: scale(1.5) rotate(20deg);
162
+ }
163
+ }
164
+ p {
165
+ min-height: 30px;
166
+ font-size: 15px;
167
+ font-weight: 600;
168
+ a.btn {
169
+ border-radius: 3px;
170
+ color: rgba($text-highlight,0.7) !important;
171
+ display: inline-block;
172
+ margin-bottom: 0;
173
+ font-weight: normal;
174
+ text-align: center;
175
+ vertical-align: middle;
176
+ cursor: pointer;
177
+ background-color: rgba($shadows, 0.19);
178
+ border: 1px solid transparent;
179
+ white-space: nowrap;
180
+ padding: 6px 12px;
181
+ font-size: 14px;
182
+ line-height: 1.42857143;
183
+ border-radius: 4px;
184
+ -webkit-user-select: none;
185
+ -moz-user-select: none;
186
+ -ms-user-select: none;
187
+ user-select: none;
188
+ }
189
+ }
190
+ strong.count {
191
+ font-size: 10em;
192
+ font-weight: 600;
193
+ }
194
+ p.model,
195
+ strong.count {
196
+ color: $element-text;
197
+ &:hover {
198
+ color: $element-text-highlight;
199
+ }
200
+ }
201
+ .icon-bg {
202
+ position: absolute;
203
+ right: 0;
204
+ bottom: 0;
205
+ font-size: 15em;
206
+ color: $element-text;
207
+ opacity: 0.20;
208
+ filter: alpha(opacity=20);
209
+ transition: all 1s ease;
210
+ }
211
+ &.bg-info {
212
+ background-color: $info;
213
+ }
214
+ &.bg-success {
215
+ background-color: $success;
216
+ }
217
+ &.bg-warning {
218
+ background-color: $warning;
219
+ }
220
+ &.bg-danger {
221
+ background-color: $danger;
222
+ }
223
+ &.bg-clear {
224
+ background-color: $neutral;
225
+ }
226
+ }
227
+
228
+ /* User sign in and sign forms. */
229
+ .border-form-div {
230
+ max-width: 300px;
231
+ padding: 19px 29px 29px;
232
+ margin: 0 auto 20px;
233
+ background-color: $text-highlight;
234
+ border: 1px solid $element-border;
235
+ -webkit-border-radius: 5px;
236
+ -moz-border-radius: 5px;
237
+ border-radius: 5px;
238
+ -webkit-box-shadow: 0 1px 2px rgba($shadows,.05);
239
+ -moz-box-shadow: 0 1px 2px rgba($shadows,.05);
240
+ box-shadow: 0 1px 2px rgba($shadows,.05);
241
+ }
242
+ .border-form-div .form-signin-heading,
243
+ .border-form-div .checkbox {
244
+ margin-bottom: 10px;
245
+ }
246
+ .border-form-div input[type="text"],
247
+ .border-form-div input[type="email"],
248
+ .border-form-div input[type="password"] {
249
+ font-size: 16px;
250
+ height: auto;
251
+ margin-bottom: 15px;
252
+ padding: 7px 9px;
253
+ }
254
+
255
+ #sidebar-collapse {
256
+ background-color: transparent;
257
+ background-image: none;
258
+ border: 1px solid transparent;
259
+ color: $neutral;
260
+ }
261
+ #sidebar-collapse:focus {
262
+ outline: 0;
263
+ }
264
+ #sidebar-collapse:hover {
265
+ color:$text-highlight;
266
+ }
267
+
268
+ .exit-button {
269
+ padding-top: 9px;
270
+ padding-bottom: 9px;
271
+ margin-top: 8px;
272
+ margin-bottom: 8px;
273
+ margin-right: 7px;
274
+ }
275
+
276
+ #app-name {
277
+ font-size: 2em;
278
+ color: $neutral;
279
+ font-family: 'Raleway', sans-serif;
280
+ word-wrap: normal;
281
+ }
282
+ #app-name:hover {
283
+ color: $text-highlight;
284
+ text-decoration: none;
285
+ }
286
+
287
+ body.rails_admin {
288
+ padding-top: 0px;
289
+ background-color: $background;
290
+ }
@@ -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.12'
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.12
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-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons