rademade_admin 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/rademade_admin/leaflet/layers-2x.png +0 -0
- data/app/assets/images/rademade_admin/leaflet/layers.png +0 -0
- data/app/assets/images/rademade_admin/leaflet/marker-icon-2x.png +0 -0
- data/app/assets/images/rademade_admin/leaflet/marker-icon.png +0 -0
- data/app/assets/images/rademade_admin/leaflet/marker-shadow.png +0 -0
- data/app/assets/javascripts/rademade_admin.coffee +2 -0
- data/app/assets/javascripts/rademade_admin/app/common/cropper.coffee +70 -0
- data/app/assets/javascripts/rademade_admin/app/common/lang-panel.coffee +1 -1
- data/app/assets/javascripts/rademade_admin/app/common/location.coffee.erb +50 -0
- data/app/assets/javascripts/rademade_admin/app/common/uploader.coffee +74 -38
- data/app/assets/javascripts/rademade_admin/app/form-popup/view.coffee +1 -8
- data/app/assets/javascripts/rademade_admin/app/select2/related/view.coffee +3 -7
- data/app/assets/javascripts/rademade_admin/app/select2/view.coffee +7 -5
- data/app/assets/javascripts/rademade_admin/app/templates/crop.jst.ejs +11 -0
- data/app/assets/javascripts/rademade_admin/app/templates/related-item.jst.ejs +5 -0
- data/app/assets/stylesheets/edit.css +0 -0
- data/app/assets/stylesheets/rademade_admin.sass.erb +7 -0
- data/app/assets/stylesheets/rademade_admin/blocks/buttons/main.sass +49 -1
- data/app/assets/stylesheets/rademade_admin/blocks/form/checkbox.sass +14 -0
- data/app/assets/stylesheets/rademade_admin/blocks/form/input.sass +1 -1
- data/app/assets/stylesheets/rademade_admin/blocks/form/map.sass +4 -0
- data/app/assets/stylesheets/rademade_admin/lib/{glyphicon.sass.erb → glyphicon.sass} +5 -5
- data/app/assets/stylesheets/rademade_admin/lib/jcrop.sass +13 -0
- data/app/assets/stylesheets/rademade_admin/lib/uploader.sass +2 -2
- data/app/assets/stylesheets/rademade_admin/mixins/font_face.scss +10 -0
- data/app/assets/stylesheets/rademade_admin/modules/login/_main.sass +2 -1
- data/app/cells/menu/item.slim +15 -0
- data/app/cells/menu/sub_item.slim +4 -0
- data/app/cells/menu/sub_items.slim +3 -0
- data/app/cells/menu_cell.rb +55 -0
- data/app/controllers/rademade_admin/file_controller.rb +13 -0
- data/app/controllers/rademade_admin/model_controller.rb +5 -1
- data/app/helpers/rademade_admin/uri_helper.rb +5 -5
- data/app/inputs/rademade_admin/file_input.rb +24 -3
- data/app/inputs/rademade_admin/location_input.rb +43 -0
- data/app/services/menu_service.rb +27 -0
- data/app/services/menu_service/menu_item.rb +32 -0
- data/app/services/model_controller/notifier.rb +20 -5
- data/app/services/saver.rb +1 -1
- data/app/services/search/conditions/abstract.rb +3 -1
- data/app/services/search/conditions/autocomplete.rb +1 -1
- data/app/services/search/conditions/list.rb +2 -2
- data/app/services/search/conditions/related_list.rb +2 -2
- data/app/services/search/part/abstract.rb +18 -4
- data/app/services/search/part/order.rb +3 -1
- data/app/services/upload/preview_service.rb +20 -9
- data/app/views/rademade_admin/_blocks/_header.html.erb +2 -2
- data/app/views/rademade_admin/_blocks/_menu.html.erb +3 -39
- data/app/views/rademade_admin/_blocks/button/_edit.html.erb +3 -0
- data/app/views/rademade_admin/_blocks/form/_lang_panel.html.erb +6 -3
- data/app/views/rademade_admin/_layouts/inner/index_table.html.erb +3 -1
- data/app/views/rademade_admin/abstract/index.html.erb +3 -1
- data/app/views/rademade_admin/abstract/related.html.erb +14 -7
- data/config/initializers/carrier_wave/mongoid.rb +1 -1
- data/config/locales/rademade_admin.en.yml +6 -1
- data/config/locales/rademade_admin.ru.yml +28 -0
- data/config/locales/simple_form.ru.yml +7 -0
- data/config/routes.rb +1 -0
- data/lib/rademade_admin.rb +3 -2
- data/lib/rademade_admin/engine.rb +2 -0
- data/lib/rademade_admin/input/related_select_input/related_list.rb +15 -10
- data/lib/rademade_admin/model/adapter/data/active_record.rb +10 -11
- data/lib/rademade_admin/model/adapter/data/mongoid.rb +1 -1
- data/lib/rademade_admin/model/configuration.rb +9 -3
- data/lib/rademade_admin/model/info.rb +5 -2
- data/lib/rademade_admin/model/info/data_item.rb +6 -10
- data/lib/rademade_admin/model/info/field.rb +10 -2
- data/lib/rademade_admin/uploader/carrier_wave.rb +31 -0
- data/lib/rademade_admin/uploader/crop_photo.rb +24 -0
- data/lib/rademade_admin/uploader/photo.rb +25 -3
- data/lib/rademade_admin/version.rb +1 -1
- metadata +124 -72
- data/app/assets/stylesheets/old/-bootstrap/bootstrap-overrides.css.erb +0 -341
- data/app/assets/stylesheets/old/-bootstrap/main.scss.erb +0 -78
- data/app/assets/stylesheets/old/-detail_admin/chart-showcase.scss.erb +0 -33
- data/app/assets/stylesheets/old/-detail_admin/datatables.scss.erb +0 -3
- data/app/assets/stylesheets/old/-detail_admin/elements.scss.erb +0 -665
- data/app/assets/stylesheets/old/-detail_admin/error.scss.erb +0 -19
- data/app/assets/stylesheets/old/-detail_admin/form-showcase.scss.erb +0 -87
- data/app/assets/stylesheets/old/-detail_admin/form-wizard.scss.erb +0 -261
- data/app/assets/stylesheets/old/-detail_admin/gallery.scss.erb +0 -106
- data/app/assets/stylesheets/old/-detail_admin/grids.scss.erb +0 -21
- data/app/assets/stylesheets/old/-detail_admin/icons.scss.erb +0 -115
- data/app/assets/stylesheets/old/-detail_admin/index.scss.erb +0 -290
- data/app/assets/stylesheets/old/-detail_admin/layout.scss.erb +0 -523
- data/app/assets/stylesheets/old/-detail_admin/new-user.scss.erb +0 -49
- data/app/assets/stylesheets/old/-detail_admin/personal-info.scss.erb +0 -144
- data/app/assets/stylesheets/old/-detail_admin/popup.scss.erb +0 -3
- data/app/assets/stylesheets/old/-detail_admin/signin.scss.erb +0 -128
- data/app/assets/stylesheets/old/-detail_admin/tables.scss.erb +0 -195
- data/app/assets/stylesheets/old/-detail_admin/ui-elements.scss.erb +0 -177
- data/app/assets/stylesheets/old/-detail_admin/user-list.scss.erb +0 -112
- data/app/assets/stylesheets/old/-detail_admin/user-profile.scss.erb +0 -169
- data/app/assets/stylesheets/old/-detail_admin/web-app-icons.scss.erb +0 -25
- data/app/assets/stylesheets/old/-lib/bootstrap.datepicker.css.erb +0 -302
- data/app/assets/stylesheets/old/-lib/morris.css.erb +0 -2
- data/app/assets/stylesheets/old/base.scss.erb +0 -23
- data/app/assets/stylesheets/old/edit.css +0 -7
- data/app/assets/stylesheets/old/file-upload.scss.erb +0 -12
- data/app/assets/stylesheets/old/notifier.custom.css.erb +0 -661
- data/app/assets/stylesheets/old/scaffolds.scss.erb +0 -32
- data/app/helpers/rademade_admin/menu_helper.rb +0 -53
- data/app/views/rademade_admin/_blocks/_sub_menu.html.erb +0 -11
- data/app/views/rademade_admin/_blocks/sub_menu/_link.html.erb +0 -6
- data/config/locales/devise.en.yml +0 -59
@@ -1,177 +0,0 @@
|
|
1
|
-
#pad-wrapper {
|
2
|
-
.title {
|
3
|
-
margin-bottom: 30px;
|
4
|
-
}
|
5
|
-
.section {
|
6
|
-
margin-bottom: 40px;
|
7
|
-
|
8
|
-
a.btn-flat,
|
9
|
-
a.btn-glow {
|
10
|
-
margin-right: 5px;
|
11
|
-
}
|
12
|
-
&.btns {
|
13
|
-
a.btn-flat,
|
14
|
-
a.btn-glow {
|
15
|
-
margin-bottom: 12px;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
code {
|
19
|
-
margin-right: 25px;
|
20
|
-
}
|
21
|
-
.btn-group i {
|
22
|
-
color: rgb(125, 136, 146);
|
23
|
-
}
|
24
|
-
.btn-group.audio i {
|
25
|
-
color: #96a9b8;
|
26
|
-
font-size: 12px;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
.ctrls {
|
30
|
-
margin-bottom: 20px;
|
31
|
-
.btn-glow {
|
32
|
-
margin-right: 8px;
|
33
|
-
}
|
34
|
-
.btn-flat.icon {
|
35
|
-
margin-right: 8px;
|
36
|
-
}
|
37
|
-
.btn-group.settings {
|
38
|
-
margin-left: 20px;
|
39
|
-
}
|
40
|
-
.btn-group.settings i {
|
41
|
-
font-size: 13px;
|
42
|
-
color: #444;
|
43
|
-
}
|
44
|
-
.slider-frame {
|
45
|
-
margin-right: 10px;
|
46
|
-
}
|
47
|
-
.pagination {
|
48
|
-
margin: 5px 0px;
|
49
|
-
&.inverse {
|
50
|
-
margin-left: 25px;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
h4 {
|
54
|
-
margin: 20px 0px 20px 0px;
|
55
|
-
}
|
56
|
-
|
57
|
-
.dropdown {
|
58
|
-
.dropdown-menu {
|
59
|
-
margin-right: 10px;
|
60
|
-
position: static;
|
61
|
-
display: block;
|
62
|
-
}
|
63
|
-
}
|
64
|
-
.nav-tabs {
|
65
|
-
margin-bottom: 15px;
|
66
|
-
}
|
67
|
-
.tab-content {
|
68
|
-
padding: 0px 10px;
|
69
|
-
margin-bottom: 20px;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
.sliders .slider {
|
73
|
-
margin-bottom: 20px;
|
74
|
-
}
|
75
|
-
|
76
|
-
/* separator */
|
77
|
-
.separator {
|
78
|
-
border-top: 1px solid #edeff1;
|
79
|
-
margin-top: 100px;
|
80
|
-
padding-top: 45px;
|
81
|
-
box-shadow: inset 0px 3px 4px -1px #fafafa;
|
82
|
-
}
|
83
|
-
|
84
|
-
/* pop dialogs specific styles */
|
85
|
-
.section.dialogs h4 {
|
86
|
-
margin-bottom: 30px;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
/* for menu dialog sample */
|
93
|
-
.pop-dialog {
|
94
|
-
.menu {
|
95
|
-
width: 200px;
|
96
|
-
margin: 5px -10px 0px -10px;
|
97
|
-
.item {
|
98
|
-
display: block;
|
99
|
-
padding: 5px 0px 5px 20px;
|
100
|
-
font-weight: 600;
|
101
|
-
color: #333;
|
102
|
-
text-decoration: none;
|
103
|
-
margin-bottom: 5px;
|
104
|
-
|
105
|
-
&:hover {
|
106
|
-
background-color: #30a1ec;
|
107
|
-
color: #fff;
|
108
|
-
}
|
109
|
-
}
|
110
|
-
.footer {
|
111
|
-
border-top: 1px solid #e6e8e9;
|
112
|
-
background-color: #eff4f7;
|
113
|
-
margin: 15px 0px -10px 0px;
|
114
|
-
border-radius: 0px 0px 5px 5px;
|
115
|
-
padding: 12px 20px;
|
116
|
-
.logout {
|
117
|
-
font-weight: 600;
|
118
|
-
color: #7d91a8;
|
119
|
-
}
|
120
|
-
}
|
121
|
-
}
|
122
|
-
}
|
123
|
-
|
124
|
-
|
125
|
-
/* styles for settings dialog sample */
|
126
|
-
.pop-dialog.full {
|
127
|
-
width: 100%;
|
128
|
-
}
|
129
|
-
.pop-dialog .settings {
|
130
|
-
width: auto;
|
131
|
-
margin: 5px -10px 0px -10px;
|
132
|
-
position: relative;
|
133
|
-
.close-icon {
|
134
|
-
text-decoration: none;
|
135
|
-
position: absolute;
|
136
|
-
top: -18px;
|
137
|
-
right: 10px;
|
138
|
-
}
|
139
|
-
.icon-remove-sign {
|
140
|
-
font-size: 15px;
|
141
|
-
color: #95a8b7;
|
142
|
-
cursor: pointer;
|
143
|
-
}
|
144
|
-
.items {
|
145
|
-
margin-top: 15px;
|
146
|
-
.item {
|
147
|
-
display: block;
|
148
|
-
padding: 7px 0px 7px 20px;
|
149
|
-
color: #333;
|
150
|
-
font-size: 13px;
|
151
|
-
font-weight: 600;
|
152
|
-
border-top: 1px solid #e6e8e9;
|
153
|
-
&:hover {
|
154
|
-
color: rgb(97, 135, 192);
|
155
|
-
}
|
156
|
-
&:first-child {
|
157
|
-
border-top: 0px;
|
158
|
-
}
|
159
|
-
.check {
|
160
|
-
float: right;
|
161
|
-
margin-right: 30px;
|
162
|
-
}
|
163
|
-
.icon-reorder {
|
164
|
-
color: #d9e4ee;
|
165
|
-
font-size: 18px;
|
166
|
-
margin-right: 13px;
|
167
|
-
}
|
168
|
-
}
|
169
|
-
}
|
170
|
-
}
|
171
|
-
|
172
|
-
@media (min-width: 768px) and (max-width: 979px) {
|
173
|
-
#pad-wrapper .section.dialogs > .span4 {
|
174
|
-
width: 100%;
|
175
|
-
margin-bottom: 30px;
|
176
|
-
}
|
177
|
-
}
|
@@ -1,112 +0,0 @@
|
|
1
|
-
.users-list {
|
2
|
-
.header {
|
3
|
-
h3 {
|
4
|
-
margin-top: 0px;
|
5
|
-
}
|
6
|
-
input.search {
|
7
|
-
padding: 5px 6px;
|
8
|
-
position: relative;
|
9
|
-
top: 0px;
|
10
|
-
&:focus {
|
11
|
-
box-shadow: none;
|
12
|
-
border: 1px solid #888;
|
13
|
-
}
|
14
|
-
}
|
15
|
-
.ui-select {
|
16
|
-
margin: 3px 40px 0 0;
|
17
|
-
}
|
18
|
-
.ui-dropdown {
|
19
|
-
margin-left: 20px;
|
20
|
-
input.form-control {
|
21
|
-
width: 60px;
|
22
|
-
display: inline-block;
|
23
|
-
height: 28px;
|
24
|
-
margin: 0px 8px;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
a.btn-flat span {
|
28
|
-
font-size: 17px;
|
29
|
-
position: relative;
|
30
|
-
top: 2px;
|
31
|
-
margin-right: 4px;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
.table {
|
35
|
-
td {
|
36
|
-
vertical-align: middle;
|
37
|
-
font-size: 13px;
|
38
|
-
}
|
39
|
-
img.avatar {
|
40
|
-
float: left;
|
41
|
-
margin-right: 14px;
|
42
|
-
max-width: 45px;
|
43
|
-
position: relative;
|
44
|
-
top: 8px;
|
45
|
-
}
|
46
|
-
a.name {
|
47
|
-
color: #3389d1;
|
48
|
-
display: block;
|
49
|
-
font-weight: 600;
|
50
|
-
font-size: 14px;
|
51
|
-
margin: 15px 0 0 0;
|
52
|
-
}
|
53
|
-
.subtext {
|
54
|
-
font-size: 12px;
|
55
|
-
margin-left: 0;
|
56
|
-
color: #778391;
|
57
|
-
font-style: italic;
|
58
|
-
margin-top: 0;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
.pagination {
|
62
|
-
margin-top: 25px;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
/* responsive */
|
69
|
-
|
70
|
-
@media (max-width: 767px) {
|
71
|
-
.ui-dropdown .dialog .body{
|
72
|
-
width: 250px;
|
73
|
-
left: 58%;
|
74
|
-
position: relative;
|
75
|
-
}
|
76
|
-
.users-list {
|
77
|
-
.table {
|
78
|
-
a.name {
|
79
|
-
font-size: 12px;
|
80
|
-
}
|
81
|
-
td {
|
82
|
-
font-size: 12px;
|
83
|
-
}
|
84
|
-
.avatar {
|
85
|
-
display: none;
|
86
|
-
}
|
87
|
-
}
|
88
|
-
h3 {
|
89
|
-
display: block;
|
90
|
-
float: none;
|
91
|
-
margin-bottom: 30px;
|
92
|
-
}
|
93
|
-
.header {
|
94
|
-
input.search {
|
95
|
-
margin-bottom: 18px;
|
96
|
-
}
|
97
|
-
.ui-dropdown {
|
98
|
-
float: left;
|
99
|
-
margin-left: 0;
|
100
|
-
}
|
101
|
-
}
|
102
|
-
}
|
103
|
-
|
104
|
-
.ui-dropdown .dialog .body .form input[type="text"]{
|
105
|
-
margin-top: 10px;
|
106
|
-
}
|
107
|
-
.ui-dropdown .dialog .body .form a{
|
108
|
-
margin-top: 10px;
|
109
|
-
margin-left: 18px;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
|
@@ -1,169 +0,0 @@
|
|
1
|
-
.user-profile {
|
2
|
-
.header {
|
3
|
-
.avatar{
|
4
|
-
float: left;
|
5
|
-
margin-right: 25px;
|
6
|
-
border: 2px solid #e9ecee;
|
7
|
-
position: relative;
|
8
|
-
top: 3px;
|
9
|
-
}
|
10
|
-
.name {
|
11
|
-
font-weight: 600;
|
12
|
-
margin: 20px 0 8px 0;
|
13
|
-
line-height: 26px;
|
14
|
-
margin-bottom: 10px;
|
15
|
-
float: none;
|
16
|
-
}
|
17
|
-
span.area {
|
18
|
-
color: #7d848c;
|
19
|
-
font-style: italic;
|
20
|
-
font-size: 14px;
|
21
|
-
}
|
22
|
-
a.btn-flat {
|
23
|
-
margin-top: 18px;
|
24
|
-
}
|
25
|
-
a.delete-user {
|
26
|
-
margin-left: 10px;
|
27
|
-
font-size: 14px;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
.profile {
|
31
|
-
.profile-box {
|
32
|
-
border-top: 1px solid #dde2e9;
|
33
|
-
padding-top: 23px;
|
34
|
-
width: 90%;
|
35
|
-
}
|
36
|
-
.section {
|
37
|
-
margin-bottom: 80px;
|
38
|
-
|
39
|
-
&.comment {
|
40
|
-
margin-bottom: 100px;
|
41
|
-
margin-top: 60px;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
.bio {
|
45
|
-
box-shadow: 4px 0px 3px -1px rgba(226, 226, 226, 0.1);
|
46
|
-
border-right: 1px solid #edeef1;
|
47
|
-
.span12 {
|
48
|
-
margin-left: 0;
|
49
|
-
}
|
50
|
-
h6 {
|
51
|
-
font-weight: 600;
|
52
|
-
font-size: 14px;
|
53
|
-
}
|
54
|
-
p {
|
55
|
-
color: #777e86;
|
56
|
-
}
|
57
|
-
textarea {
|
58
|
-
width: 97%;
|
59
|
-
margin-bottom: 13px;
|
60
|
-
height: 80px;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
.address {
|
65
|
-
h6 {
|
66
|
-
font-weight: 600;
|
67
|
-
font-size: 14px;
|
68
|
-
margin-bottom: 30px;
|
69
|
-
margin-left: 30px;
|
70
|
-
}
|
71
|
-
iframe {
|
72
|
-
width: 90%;
|
73
|
-
margin-bottom: 30px;
|
74
|
-
float: right;
|
75
|
-
border: 0px;
|
76
|
-
}
|
77
|
-
ul {
|
78
|
-
padding: 0;
|
79
|
-
margin-left: 30px;
|
80
|
-
list-style: none;
|
81
|
-
li {
|
82
|
-
font-size: 13px;
|
83
|
-
line-height: 21px;
|
84
|
-
&.ico-li{
|
85
|
-
margin: 7px 0 7px;
|
86
|
-
}
|
87
|
-
}
|
88
|
-
i {
|
89
|
-
display: inline-block;
|
90
|
-
position: relative;
|
91
|
-
top: 4px;
|
92
|
-
margin-right: 7px;
|
93
|
-
&.ico-mail {
|
94
|
-
margin-right: 5px;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
}
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
|
-
|
102
|
-
/* responsive */
|
103
|
-
|
104
|
-
@media (min-width: 768px) and (max-width: 979px) {
|
105
|
-
.user-profile .address ul {
|
106
|
-
margin-left: 18px;
|
107
|
-
i {
|
108
|
-
display: none;
|
109
|
-
}
|
110
|
-
li.ico-li{
|
111
|
-
font-weight: bold;
|
112
|
-
a {
|
113
|
-
font-weight: normal;
|
114
|
-
}
|
115
|
-
}
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
@media (max-width: 768px) {
|
120
|
-
.user-profile {
|
121
|
-
.profile {
|
122
|
-
.bio{
|
123
|
-
border-right: 0 none;
|
124
|
-
border-bottom: 1px solid #edeef1;
|
125
|
-
box-shadow: 0px 4px 3px -1px rgba(226, 226, 226, 0.1);
|
126
|
-
.span12{
|
127
|
-
width: auto;
|
128
|
-
}
|
129
|
-
}
|
130
|
-
.profile-box{
|
131
|
-
width: 100%;
|
132
|
-
}
|
133
|
-
}
|
134
|
-
.address {
|
135
|
-
margin-top: 44px;
|
136
|
-
iframe{
|
137
|
-
width: 100%;
|
138
|
-
}
|
139
|
-
h6 {
|
140
|
-
margin-left: 0;
|
141
|
-
}
|
142
|
-
ul {
|
143
|
-
margin: 0;
|
144
|
-
}
|
145
|
-
}
|
146
|
-
.header {
|
147
|
-
a.btn-flat {
|
148
|
-
margin: 0;
|
149
|
-
}
|
150
|
-
a.edit {
|
151
|
-
margin-right: 10px;
|
152
|
-
}
|
153
|
-
}
|
154
|
-
}
|
155
|
-
}
|
156
|
-
|
157
|
-
@media (max-width: 480px) {
|
158
|
-
.user-profile .header {
|
159
|
-
a.btn-flat {
|
160
|
-
margin: 0;
|
161
|
-
}
|
162
|
-
a.edit {
|
163
|
-
margin-right: 10px;
|
164
|
-
}
|
165
|
-
}
|
166
|
-
}
|
167
|
-
|
168
|
-
|
169
|
-
|