activeadmin_blaze_theme 0.5.0 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -1
- data/app/assets/stylesheets/activeadmin_blaze_theme/theme.scss +53 -0
- data/lib/activeadmin/views/activeadmin_form.rb +14 -0
- data/lib/activeadmin_blaze_theme/version.rb +1 -1
- data/lib/activeadmin_blaze_theme.rb +1 -1
- data/screenshot2.jpg +0 -0
- data/screenshot3.jpg +0 -0
- data/screenshot4.jpg +0 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7b586313848af603e6f2ace1ede83c5ec86d98f
|
4
|
+
data.tar.gz: f44276e61a7ab8267e3639d6c3c7a1832d993fc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02f68e7dfdf2a9b8c9b63f2f948164152b1eb9ed17e187dd7ee08c7401631a246f806074554015bfd01aeb16bcdbdf20c2adbdcde312e81af20923d3f5bd6c7f
|
7
|
+
data.tar.gz: cc31a531350faba477667a20b402527fa8dc8be704f1230c295ab22e90f96632c0e69df9d11bbd8d6da2938e43aed7ef99214226240dcf188f313a141e296dd9
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Features:
|
|
7
7
|
- CSS only theme with clean UI
|
8
8
|
- compact nested forms
|
9
9
|
- [customizable](#customize): colors, sidebar position, scroll on cells
|
10
|
-
- custom
|
10
|
+
- custom controls: [toggle](#toggle)
|
11
11
|
- Blaze CSS [widgets](#blaze-widgets)
|
12
12
|
|
13
13
|
## Install
|
@@ -120,6 +120,18 @@ A sidebar menu (*priority* option permit to put the sidebar above the filters):
|
|
120
120
|
end
|
121
121
|
```
|
122
122
|
|
123
|
+
![menu](screenshot4.jpg)
|
124
|
+
|
125
|
+
### Readonly field
|
126
|
+
|
127
|
+
Some readonly fields in form:
|
128
|
+
|
129
|
+
`f.readonly 'Code', 'Automatically set after save'`
|
130
|
+
|
131
|
+
`f.readonly :position, f.object.position`
|
132
|
+
|
133
|
+
`f.readonly nil, 'Value only, no label'`
|
134
|
+
|
123
135
|
## Blaze widgets
|
124
136
|
|
125
137
|
See components avaible in Blaze CSS [docs](http://blazecss.com/components/buttons/).
|
@@ -55,6 +55,7 @@ body.active_admin {
|
|
55
55
|
input[type='search'],
|
56
56
|
input[type='tel'],
|
57
57
|
input[type='text'],
|
58
|
+
input[type='time'],
|
58
59
|
input[type='url'],
|
59
60
|
select,
|
60
61
|
textarea {
|
@@ -141,6 +142,24 @@ body.active_admin {
|
|
141
142
|
margin-top: 0;
|
142
143
|
}
|
143
144
|
}
|
145
|
+
.readonly-field {
|
146
|
+
div {
|
147
|
+
display: inline-block;
|
148
|
+
line-height: $height-inputs;
|
149
|
+
min-width: 450px;
|
150
|
+
}
|
151
|
+
.field_label {
|
152
|
+
display: block;
|
153
|
+
float: left;
|
154
|
+
width: 20%;
|
155
|
+
}
|
156
|
+
.field_value {
|
157
|
+
border-bottom: 1px dashed #ccc;
|
158
|
+
display: inline-block;
|
159
|
+
width: 100%;
|
160
|
+
padding: 0 6px;
|
161
|
+
}
|
162
|
+
}
|
144
163
|
|
145
164
|
// filter forms
|
146
165
|
&.filter_form {
|
@@ -163,6 +182,7 @@ body.active_admin {
|
|
163
182
|
input[type='search'],
|
164
183
|
input[type='tel'],
|
165
184
|
input[type='text'],
|
185
|
+
input[type='time'],
|
166
186
|
input[type='url'], {
|
167
187
|
max-width: 100px;
|
168
188
|
width: auto;
|
@@ -194,6 +214,7 @@ body.active_admin {
|
|
194
214
|
input[type='search'],
|
195
215
|
input[type='tel'],
|
196
216
|
input[type='text'],
|
217
|
+
input[type='time'],
|
197
218
|
input[type='url'],
|
198
219
|
select,
|
199
220
|
textarea {
|
@@ -241,6 +262,7 @@ body.active_admin {
|
|
241
262
|
input[type='search'],
|
242
263
|
input[type='tel'],
|
243
264
|
input[type='text'],
|
265
|
+
input[type='time'],
|
244
266
|
input[type='url'],
|
245
267
|
select {
|
246
268
|
min-width: auto;
|
@@ -362,6 +384,28 @@ body.active_admin {
|
|
362
384
|
padding-bottom: 0;
|
363
385
|
padding-top: 25px;
|
364
386
|
}
|
387
|
+
.ui-tabs-nav {
|
388
|
+
li {
|
389
|
+
a {
|
390
|
+
background: #eee;
|
391
|
+
color: #555;
|
392
|
+
}
|
393
|
+
&:first-child a {
|
394
|
+
border-top-left-radius: 6px;
|
395
|
+
border-bottom-left-radius: 6px;
|
396
|
+
}
|
397
|
+
&:last-child a {
|
398
|
+
border-top-right-radius: 6px;
|
399
|
+
border-bottom-right-radius: 6px;
|
400
|
+
}
|
401
|
+
&.ui-tabs-active a {
|
402
|
+
color: #222;
|
403
|
+
border-color: #AAA;
|
404
|
+
background-image: none;
|
405
|
+
background-color: #fff;
|
406
|
+
}
|
407
|
+
}
|
408
|
+
}
|
365
409
|
|
366
410
|
// misc
|
367
411
|
a.c-button {
|
@@ -392,6 +436,10 @@ body.active_admin {
|
|
392
436
|
}
|
393
437
|
}
|
394
438
|
ul.tabs {
|
439
|
+
>li {
|
440
|
+
margin-left: 1px;
|
441
|
+
padding: 0;
|
442
|
+
}
|
395
443
|
li {
|
396
444
|
height: $height-topbar;
|
397
445
|
line-height: $height-topbar;
|
@@ -400,6 +448,8 @@ body.active_admin {
|
|
400
448
|
color: $fg-menu-items;
|
401
449
|
height: $height-topbar;
|
402
450
|
line-height: $height-topbar;
|
451
|
+
padding-left: 20px;
|
452
|
+
padding-right: 20px;
|
403
453
|
}
|
404
454
|
li:hover, li.current {
|
405
455
|
background: $bg-menu-active;
|
@@ -541,6 +591,7 @@ body.active_admin {
|
|
541
591
|
input[type='search'],
|
542
592
|
input[type='tel'],
|
543
593
|
input[type='text'],
|
594
|
+
input[type='time'],
|
544
595
|
input[type='url'],
|
545
596
|
textarea {
|
546
597
|
background-color: $bg-inputs;
|
@@ -791,8 +842,10 @@ body.active_admin {
|
|
791
842
|
@extend .u-high;
|
792
843
|
li {
|
793
844
|
@extend .c-card__item;
|
845
|
+
padding: 0;
|
794
846
|
a {
|
795
847
|
display: block;
|
848
|
+
padding: 0.5em;
|
796
849
|
text-decoration: none;
|
797
850
|
}
|
798
851
|
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
ActiveAdmin::Views::ActiveAdminForm.class_eval do
|
2
|
+
def readonly( field_label, field_value )
|
3
|
+
li class: 'readonly-field' do
|
4
|
+
if !field_label.blank?
|
5
|
+
label field_label, for: nil, class: 'field_label'
|
6
|
+
else
|
7
|
+
span ' '.html_safe, class: 'field_label'
|
8
|
+
end
|
9
|
+
div do
|
10
|
+
span !field_value.blank? ? raw( field_value ) : '', class: 'field_value'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/screenshot2.jpg
CHANGED
Binary file
|
data/screenshot3.jpg
CHANGED
Binary file
|
data/screenshot4.jpg
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin_blaze_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattia Roccoberton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|
@@ -99,12 +99,14 @@ files:
|
|
99
99
|
- app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.elevation.scss
|
100
100
|
- app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.sizes.scss
|
101
101
|
- app/assets/stylesheets/activeadmin_blaze_theme/theme.scss
|
102
|
+
- lib/activeadmin/views/activeadmin_form.rb
|
102
103
|
- lib/activeadmin_blaze_theme.rb
|
103
104
|
- lib/activeadmin_blaze_theme/version.rb
|
104
105
|
- lib/formtastic/inputs/blaze_toggle_input.rb
|
105
106
|
- screenshot1.jpg
|
106
107
|
- screenshot2.jpg
|
107
108
|
- screenshot3.jpg
|
109
|
+
- screenshot4.jpg
|
108
110
|
homepage: https://github.com/blocknotes/activeadmin_blaze_theme
|
109
111
|
licenses:
|
110
112
|
- MIT
|