redde 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/redde/sortable.coffee +2 -2
- data/app/assets/stylesheets/{redde-admin/blocks/list-v2.sass → redde/blocks/list.sass} +20 -17
- data/app/assets/stylesheets/redde/blocks/redde-form.sass +4 -0
- data/app/assets/stylesheets/redde/defaults/txtr.sass +25 -0
- data/app/assets/stylesheets/redde/layouts/main.sass +2 -2
- data/app/controllers/admin/managers_controller.rb +5 -7
- data/app/form_builders/redde_form_builder.rb +4 -8
- data/app/helpers/redde/index_helper.rb +38 -2
- data/app/views/admin/base/index.html.haml +6 -64
- data/app/views/admin/redde/_list.html.haml +25 -0
- data/app/views/admin/redde/_row.html.haml +5 -0
- data/lib/redde/version.rb +1 -1
- metadata +6 -13
- data/app/assets/images/admin/coins.png +0 -0
- data/app/assets/images/admin/logo_reddeshop.png +0 -0
- data/app/assets/images/admin/photo_ico.png +0 -0
- data/app/assets/images/admin/print.png +0 -0
- data/app/assets/images/admin/view.png +0 -0
- data/app/assets/images/admin/view_mk.png +0 -0
- data/app/assets/stylesheets/redde/blocks/list-v2.sass +0 -96
- data/app/assets/stylesheets/redde/blocks/list.scss +0 -22
- data/app/assets/stylesheets/redde-admin/defaults/del.sass +0 -23
- data/app/views/admin/managers/index.html.haml +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5948cdc5b2b31de8f556a903d06211043b329adf
|
4
|
+
data.tar.gz: c1063541c99f5e9a0c1db1c9bb99b9c2e3a61b9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03a1967bb460a6ccb601bf63c056209deb83831c26a2a67db96c0d4dbc687ae135ec252d6a4e2f108397965632a991d0355da6e7ec3baa8f29d1e915256ef475
|
7
|
+
data.tar.gz: 754ff988354cfe98000fc2ef26701be93c8e4252ee93cc1b0381a699211853b7bfb389f4a05fc57e0063000636d5b347705ef3106a1908bca9972825362fbcf5
|
@@ -4,25 +4,24 @@
|
|
4
4
|
//= depend_on_asset redde/close.svg
|
5
5
|
//= depend_on_asset redde/close-hover.svg
|
6
6
|
|
7
|
-
.list
|
7
|
+
.list
|
8
8
|
width: auto
|
9
9
|
border-collapse: collapse
|
10
|
-
border-collapse: separate
|
11
10
|
border-spacing: 0
|
12
11
|
margin-left: -30px
|
13
12
|
margin-right: -30px
|
14
13
|
|
15
|
-
.
|
14
|
+
.list__col
|
16
15
|
&:first-child,
|
17
16
|
&:last-child,
|
18
17
|
&._del
|
19
18
|
width: 0.01%
|
20
19
|
|
21
|
-
.
|
20
|
+
.list__head
|
22
21
|
font-size: 11px
|
23
22
|
text-transform: uppercase
|
24
23
|
background: #d7e4ef
|
25
|
-
padding: 13px
|
24
|
+
padding: 13px 30px 13px 0
|
26
25
|
border-bottom: 1px solid #dddddd
|
27
26
|
// border-bottom: 0 none
|
28
27
|
// border-top: 1px solid #ddd
|
@@ -30,17 +29,19 @@
|
|
30
29
|
&:first-child,
|
31
30
|
&:last-child
|
32
31
|
background: #d7e4ef
|
33
|
-
padding-
|
32
|
+
padding-right: 0
|
34
33
|
min-width: 10px
|
35
34
|
|
36
35
|
&._img
|
37
36
|
padding-left: 20px
|
38
37
|
|
39
|
-
.
|
40
|
-
padding-
|
38
|
+
.list__head_del
|
39
|
+
padding-right: 0
|
40
|
+
.list__head_empty
|
41
|
+
padding-right: 0
|
41
42
|
|
42
|
-
.
|
43
|
-
padding: 3px
|
43
|
+
.list__cell
|
44
|
+
padding: 3px 30px 3px 0
|
44
45
|
vertical-align: middle
|
45
46
|
font-size: 13px
|
46
47
|
color: #000
|
@@ -52,14 +53,14 @@
|
|
52
53
|
|
53
54
|
&._img
|
54
55
|
width: 1%
|
55
|
-
padding-
|
56
|
+
padding-right: 20px
|
56
57
|
|
57
58
|
tr:hover > &
|
58
59
|
background-color: #fff5d4
|
59
60
|
|
60
61
|
&:first-child,
|
61
62
|
&:last-child
|
62
|
-
padding-
|
63
|
+
padding-right: 0
|
63
64
|
width: 10px
|
64
65
|
border-bottom: 0 none
|
65
66
|
|
@@ -67,19 +68,21 @@
|
|
67
68
|
min-width: 23px
|
68
69
|
width: 0.01%
|
69
70
|
background: image-url('redde/move-handler.png') no-repeat center
|
71
|
+
padding-right: 0
|
70
72
|
|
71
73
|
&._eye
|
72
74
|
padding-left: 7px
|
75
|
+
padding-right: 7px
|
73
76
|
width: 0.01%
|
74
77
|
|
75
|
-
.
|
76
|
-
padding-
|
78
|
+
.list__cell_del
|
79
|
+
padding-right: 0
|
77
80
|
|
78
|
-
.
|
81
|
+
.list__img
|
79
82
|
border-radius: 2px
|
80
83
|
display: block
|
81
84
|
|
82
|
-
.
|
85
|
+
.list__eye
|
83
86
|
display: block
|
84
87
|
width: 20px
|
85
88
|
height: 20px
|
@@ -87,7 +90,7 @@
|
|
87
90
|
&._disactive
|
88
91
|
background-image: image-url('redde/eye_disactive.svg')
|
89
92
|
|
90
|
-
.
|
93
|
+
.list__del
|
91
94
|
background: image-url('redde/close.svg') no-repeat center
|
92
95
|
display: block
|
93
96
|
width: 20px
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@import redde/mixins
|
2
|
+
|
3
|
+
.txtr
|
4
|
+
box-sizing: border-box
|
5
|
+
display: inline-block
|
6
|
+
color: #404344
|
7
|
+
font-size: 13px
|
8
|
+
line-height: 21px
|
9
|
+
font-family: $family
|
10
|
+
padding: 6px 10px
|
11
|
+
border: 1px solid #cdd1d7
|
12
|
+
border-radius: 3px
|
13
|
+
outline: none
|
14
|
+
|
15
|
+
&::placeholder
|
16
|
+
color: #989c9f
|
17
|
+
|
18
|
+
// // сейчас не искользуется
|
19
|
+
// &._err
|
20
|
+
// border-color: $light-red
|
21
|
+
// box-shadow: 0 0 0 1px $light-red
|
22
|
+
|
23
|
+
&:focus
|
24
|
+
border-color: #5bacd4
|
25
|
+
box-shadow: 0 0 0 1px #5bacd4
|
@@ -1,7 +1,5 @@
|
|
1
1
|
class Admin::ManagersController < Admin::BaseController
|
2
|
-
|
3
|
-
@managers = scope.all
|
4
|
-
end
|
2
|
+
helper_method :column_names
|
5
3
|
|
6
4
|
def new
|
7
5
|
@manager = scope.new
|
@@ -28,12 +26,12 @@ class Admin::ManagersController < Admin::BaseController
|
|
28
26
|
redirect_to [:admin, :managers], alert: 'Администратор удален'
|
29
27
|
end
|
30
28
|
|
31
|
-
|
32
|
-
|
33
|
-
def scope
|
34
|
-
Manager
|
29
|
+
def column_names
|
30
|
+
%w(email)
|
35
31
|
end
|
36
32
|
|
33
|
+
private
|
34
|
+
|
37
35
|
def manager_params
|
38
36
|
params[:manager].permit!
|
39
37
|
end
|
@@ -8,6 +8,7 @@ class ReddeFormBuilder < ActionView::Helpers::FormBuilder
|
|
8
8
|
when :text then redde_text_area(name, *args)
|
9
9
|
when :boolean then redde_check_box(name, *args)
|
10
10
|
when :time then redde_date_time(name, *args)
|
11
|
+
when :datetime then redde_date_time(name, *args)
|
11
12
|
else
|
12
13
|
redde_text_field(name, *args)
|
13
14
|
end
|
@@ -21,9 +22,7 @@ class ReddeFormBuilder < ActionView::Helpers::FormBuilder
|
|
21
22
|
|
22
23
|
def redde_date_time(name, *args)
|
23
24
|
options = args.extract_options!
|
24
|
-
|
25
|
-
content_tag(:td, smart_label(name), class: 'redde-form__cell _lbl') + content_tag(:td, datetime_select(name, options))
|
26
|
-
end
|
25
|
+
wrap(name, datetime_select(name, options), options)
|
27
26
|
end
|
28
27
|
|
29
28
|
def redde_check_box(name, *args)
|
@@ -42,11 +41,8 @@ class ReddeFormBuilder < ActionView::Helpers::FormBuilder
|
|
42
41
|
|
43
42
|
def redde_text_area(name, *args)
|
44
43
|
options = args.extract_options!
|
45
|
-
|
46
|
-
|
47
|
-
smart_label(name) + tag(:br) + text_area(name, options)
|
48
|
-
end
|
49
|
-
end
|
44
|
+
options[:class] = assign_class(['txtr', 'redde-form__txtr'], options[:class])
|
45
|
+
wrap(name, text_area(name, options), options)
|
50
46
|
end
|
51
47
|
|
52
48
|
def redde_submit(text, opts)
|
@@ -7,6 +7,39 @@ module Redde::IndexHelper
|
|
7
7
|
model_name.columns.select { |i| i.type == :string }.first
|
8
8
|
end
|
9
9
|
|
10
|
+
def list_table res_collection, &block
|
11
|
+
render layout: 'admin/redde/list', locals: { res_collection: res_collection } do
|
12
|
+
res_collection.each do |item|
|
13
|
+
concat list_table_row( item, &block )
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def list_table_row item, &block
|
19
|
+
render layout: 'admin/redde/row', locals: { item: item } do
|
20
|
+
column_names.each do |column|
|
21
|
+
concat list_table_cell(item, column, &block)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def list_table_cell item, column, &block
|
27
|
+
case column
|
28
|
+
when 'position'
|
29
|
+
content_tag(:td, "", class: 'list__cell _handle', 'data-sortable-handle' => "")
|
30
|
+
when 'visible'
|
31
|
+
content_tag(:td, link_to('', url_for(id: item, action: :update, record => { visible: !item.visible} ), class: ['list__eye', ('_disactive' if !item.visible)], data: { method: 'put' }), class: 'list__cell _eye')
|
32
|
+
when 'title', 'name'
|
33
|
+
content_tag(:td, link_to(item.send(column), url_for(id: item, action: :edit)), class: 'list__cell')
|
34
|
+
else
|
35
|
+
if block_given?
|
36
|
+
capture(item, column, &block)
|
37
|
+
else
|
38
|
+
content_tag :td, item.send(column), class: 'list__cell'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
10
43
|
def collection
|
11
44
|
controller_name
|
12
45
|
end
|
@@ -48,14 +81,17 @@ module Redde::IndexHelper
|
|
48
81
|
{}.tap do |options|
|
49
82
|
if column_names.include? 'position'
|
50
83
|
options['class'] = 'sortable'
|
51
|
-
options['data-sortable'] =
|
84
|
+
options['data-sortable'] = ""
|
52
85
|
end
|
53
86
|
end
|
54
87
|
end
|
55
88
|
|
56
89
|
def sort_table_options(item)
|
57
90
|
{}.tap do |options|
|
58
|
-
|
91
|
+
if column_names.include?('position')
|
92
|
+
options[:id] = "pos_#{item.id}"
|
93
|
+
options['data-sortable-item'] = ""
|
94
|
+
end
|
59
95
|
end
|
60
96
|
end
|
61
97
|
end
|
@@ -1,68 +1,10 @@
|
|
1
1
|
= page_header
|
2
2
|
|
3
3
|
- res_collection = instance_variable_get("@#{collection}")
|
4
|
-
- if res_collection.any?
|
5
|
-
%table.list-v2{list_table_options}
|
6
|
-
%colgroup
|
7
|
-
%col.list-v2__col
|
8
|
-
- column_names.each do |column|
|
9
|
-
%col.list-v2__col
|
10
|
-
%col.list-v2__col._del
|
11
|
-
%col.list-v2__col
|
12
|
-
%thead
|
13
|
-
%tr
|
14
|
-
%th.list-v2__head
|
15
|
-
- column_names.each_with_index do |column, index|
|
16
|
-
%th.list-v2__head{ class: 'list-v2__head_first' }= model_name.human_attribute_name(column) unless ['position', 'visible'].include? column
|
17
|
-
%th.list-v2__head._del
|
18
|
-
%th.list-v2__head
|
19
|
-
- res_collection.each do |item|
|
20
|
-
%tr{sort_table_options(item), 'data-href' => url_for([:edit, :admin, item])}
|
21
|
-
%td.list-v2__cell
|
22
|
-
- column_names.each do |column|
|
23
|
-
- case column
|
24
|
-
- when 'position'
|
25
|
-
%td.list-v2__cell._handle{ class: 'list-v2__cell_first' }
|
26
|
-
- when 'visible'
|
27
|
-
%td.list-v2__cell._eye{ class: 'list-v2__cell_first' }
|
28
|
-
= link_to '', send("admin_#{record}_path", item, record => { visible: !item.visible} ), class: ['list-v2__eye', ('_disactive' if !item.visible)], data: { method: 'put' }
|
29
|
-
- else
|
30
|
-
%td.list-v2__cell{ class: 'list-v2__cell_first' }= link_to item.send(column), url_for([:edit, :admin, item])
|
31
|
-
%td.list-v2__cell= link_to '', [:admin, item], method: :delete, data: { confirm: 'Точно Удалить?' }, class: 'list-v2__del'
|
32
|
-
%td.list-v2__cell
|
33
4
|
|
34
|
-
|
35
|
-
|
36
|
-
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
-# unless @<%= controller_name %>.empty?
|
41
|
-
%table.list<%= ".sortable{ 'data-sortable' => true }" if column_names.include?('position') %>
|
42
|
-
%colgroup
|
43
|
-
<%- columns.each do |column| -%>
|
44
|
-
%col<%= '.w1' if ['position', 'visible'].include? column.name %>
|
45
|
-
<%- end -%>
|
46
|
-
%col.w1
|
47
|
-
%thead
|
48
|
-
%tr
|
49
|
-
<%- columns.each do |column| -%>
|
50
|
-
%th<%- unless ['position', 'visible'].include? column.name %>= <%= model_name.demodulize %>.human_attribute_name('<%= column.name %>')<% end %>
|
51
|
-
<%- end -%>
|
52
|
-
%th
|
53
|
-
- @<%= plural_resource_name %>.each do |<%= resource_name %>|
|
54
|
-
<%- if column_names.include?('position') -%>
|
55
|
-
%tr{ id: "pos_#{<%= resource_name %>.id}" }
|
56
|
-
<%- else -%>
|
57
|
-
%tr
|
58
|
-
<%- end -%>
|
59
|
-
<%- columns.each do |column| -%>
|
60
|
-
<%- if column.name == 'position' -%>
|
61
|
-
%td.handle= image_tag 'admin/move_handler.png'
|
62
|
-
<%- elsif column.name == 'visible' -%>
|
63
|
-
%td.show= link_to '', admin_<%= singular_controller_routing_path %>_path(<%= resource_name %>, <%= resource_name %>: { visible: !<%= resource_name %>.visible} ), class: <%= resource_name %>.visible ? nil : 'not-show', data: { method: 'put' }
|
64
|
-
<%- else -%>
|
65
|
-
%td= link_to <%= resource_name %>.<%= column.name %>, [:edit, :admin, <%= resource_name %>]
|
66
|
-
<%- end -%>
|
67
|
-
<%- end -%>
|
68
|
-
%td= link_to 'Удалить', [:admin, <%= resource_name %>], method: :delete, data: { confirm: 'Точно Удалить?' }, class: :del
|
5
|
+
= list_table res_collection do |item, column|
|
6
|
+
%td.list__cell
|
7
|
+
- if item.send(column).is_a?(Time)
|
8
|
+
= l item.send(column), format: '%d %b %Y, %H:%M'
|
9
|
+
- else
|
10
|
+
= item.send(column)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
- if res_collection.any?
|
2
|
+
%table.list{list_table_options}
|
3
|
+
%colgroup
|
4
|
+
%col.list__col
|
5
|
+
- column_names.each do |column|
|
6
|
+
%col.list__col
|
7
|
+
%col.list__col._del
|
8
|
+
%col.list__col
|
9
|
+
%thead
|
10
|
+
%tr
|
11
|
+
%th.list__head
|
12
|
+
- column_names.each_with_index do |column, index|
|
13
|
+
- if ['position', 'visible'].include? column
|
14
|
+
%th.list__head.list__head_empty
|
15
|
+
- else
|
16
|
+
%th.list__head= model_name.human_attribute_name(column)
|
17
|
+
%th.list__head.list__head_del
|
18
|
+
%th.list__head
|
19
|
+
= yield
|
20
|
+
|
21
|
+
= paginate res_collection, theme: 'redde'
|
22
|
+
|
23
|
+
- else
|
24
|
+
%h3
|
25
|
+
Ни одной #{tplural(model_name)} не найдено
|
@@ -0,0 +1,5 @@
|
|
1
|
+
%tr{sort_table_options(item), 'data-href' => url_for(id: item, action: :edit)}
|
2
|
+
%td.list__cell
|
3
|
+
= yield
|
4
|
+
%td.list__cell.list__cell_del= link_to '', url_for(id: item, action: :destroy), method: :delete, data: { confirm: 'Точно Удалить?' }, class: 'list__del'
|
5
|
+
%td.list__cell
|
data/lib/redde/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redde
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Bovykin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-01
|
12
|
+
date: 2016-02-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jquery-rails
|
@@ -413,19 +413,13 @@ files:
|
|
413
413
|
- app/assets/fonts/redde-admin.woff
|
414
414
|
- app/assets/images/.keep
|
415
415
|
- app/assets/images/admin/ajaxloader2.gif
|
416
|
-
- app/assets/images/admin/coins.png
|
417
416
|
- app/assets/images/admin/confirm.png
|
418
417
|
- app/assets/images/admin/delete.png
|
419
418
|
- app/assets/images/admin/email.png
|
420
419
|
- app/assets/images/admin/error.png
|
421
420
|
- app/assets/images/admin/fio.png
|
422
|
-
- app/assets/images/admin/logo_reddeshop.png
|
423
421
|
- app/assets/images/admin/phone.png
|
424
|
-
- app/assets/images/admin/photo_ico.png
|
425
|
-
- app/assets/images/admin/print.png
|
426
422
|
- app/assets/images/admin/refresh.png
|
427
|
-
- app/assets/images/admin/view.png
|
428
|
-
- app/assets/images/admin/view_mk.png
|
429
423
|
- app/assets/images/redde/close-hover.svg
|
430
424
|
- app/assets/images/redde/close.svg
|
431
425
|
- app/assets/images/redde/enter.svg
|
@@ -465,12 +459,9 @@ files:
|
|
465
459
|
- app/assets/javascripts/redde/sortTree/index.js.coffee
|
466
460
|
- app/assets/javascripts/redde/sortTree/jquery.mjs.nestedSortable.js
|
467
461
|
- app/assets/javascripts/redde/sortable.coffee
|
468
|
-
- app/assets/stylesheets/redde-admin/blocks/list-v2.sass
|
469
|
-
- app/assets/stylesheets/redde-admin/defaults/del.sass
|
470
462
|
- app/assets/stylesheets/redde/blocks/error-msg.sass
|
471
463
|
- app/assets/stylesheets/redde/blocks/flash-msg.sass
|
472
|
-
- app/assets/stylesheets/redde/blocks/list
|
473
|
-
- app/assets/stylesheets/redde/blocks/list.scss
|
464
|
+
- app/assets/stylesheets/redde/blocks/list.sass
|
474
465
|
- app/assets/stylesheets/redde/blocks/orders.scss
|
475
466
|
- app/assets/stylesheets/redde/blocks/paginate.sass
|
476
467
|
- app/assets/stylesheets/redde/blocks/pagination.scss
|
@@ -487,6 +478,7 @@ files:
|
|
487
478
|
- app/assets/stylesheets/redde/defaults/reset.sass
|
488
479
|
- app/assets/stylesheets/redde/defaults/sbm.sass
|
489
480
|
- app/assets/stylesheets/redde/defaults/sel.sass
|
481
|
+
- app/assets/stylesheets/redde/defaults/txtr.sass
|
490
482
|
- app/assets/stylesheets/redde/fonts.sass
|
491
483
|
- app/assets/stylesheets/redde/index.scss
|
492
484
|
- app/assets/stylesheets/redde/layouts/header.sass
|
@@ -530,11 +522,12 @@ files:
|
|
530
522
|
- app/views/admin/base/tree.html.haml
|
531
523
|
- app/views/admin/base/welcome.haml
|
532
524
|
- app/views/admin/managers/edit.html.haml
|
533
|
-
- app/views/admin/managers/index.html.haml
|
534
525
|
- app/views/admin/redde/_header.html.haml
|
526
|
+
- app/views/admin/redde/_list.html.haml
|
535
527
|
- app/views/admin/redde/_main_menu.html.haml
|
536
528
|
- app/views/admin/redde/_page_header.html.haml
|
537
529
|
- app/views/admin/redde/_page_header_edit.html.haml
|
530
|
+
- app/views/admin/redde/_row.html.haml
|
538
531
|
- app/views/admin/redde/_sidebar.html.haml
|
539
532
|
- app/views/admin/redde/_validate.haml
|
540
533
|
- app/views/admin/redde_photos/_photo.haml
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,96 +0,0 @@
|
|
1
|
-
//= depend_on_asset redde/move-handler.png
|
2
|
-
//= depend_on_asset redde/eye.svg
|
3
|
-
//= depend_on_asset redde/eye_disactive.svg
|
4
|
-
//= depend_on_asset redde/close.svg
|
5
|
-
//= depend_on_asset redde/close-hover.svg
|
6
|
-
|
7
|
-
.list-v2
|
8
|
-
width: auto
|
9
|
-
border-collapse: collapse
|
10
|
-
border-collapse: separate
|
11
|
-
border-spacing: 0
|
12
|
-
margin-left: -30px
|
13
|
-
margin-right: -30px
|
14
|
-
|
15
|
-
.list-v2__col
|
16
|
-
&:first-child,
|
17
|
-
&:last-child,
|
18
|
-
&._del
|
19
|
-
width: 0.01%
|
20
|
-
|
21
|
-
.list-v2__head
|
22
|
-
font-size: 11px
|
23
|
-
text-transform: uppercase
|
24
|
-
background: #d7e4ef
|
25
|
-
padding: 13px 0 13px 30px
|
26
|
-
border-bottom: 1px solid #dddddd
|
27
|
-
// border-bottom: 0 none
|
28
|
-
// border-top: 1px solid #ddd
|
29
|
-
|
30
|
-
&:first-child,
|
31
|
-
&:last-child
|
32
|
-
background: #d7e4ef
|
33
|
-
padding-left: 0
|
34
|
-
min-width: 10px
|
35
|
-
|
36
|
-
&._img
|
37
|
-
padding-left: 20px
|
38
|
-
|
39
|
-
.list-v2__head_first
|
40
|
-
padding-left: 0
|
41
|
-
|
42
|
-
.list-v2__cell
|
43
|
-
padding: 3px 0 3px 30px
|
44
|
-
vertical-align: middle
|
45
|
-
font-size: 13px
|
46
|
-
color: #000
|
47
|
-
cursor: pointer
|
48
|
-
width: auto
|
49
|
-
border-bottom: 1px solid #dddddd
|
50
|
-
// border-top: 1px solid #ddd
|
51
|
-
// border-bottom: 0 none
|
52
|
-
|
53
|
-
&._img
|
54
|
-
width: 1%
|
55
|
-
padding-left: 20px
|
56
|
-
|
57
|
-
tr:hover > &
|
58
|
-
background-color: #fff5d4
|
59
|
-
|
60
|
-
&:first-child,
|
61
|
-
&:last-child
|
62
|
-
padding-left: 0
|
63
|
-
width: 10px
|
64
|
-
border-bottom: 0 none
|
65
|
-
|
66
|
-
&._handle
|
67
|
-
min-width: 23px
|
68
|
-
width: 0.01%
|
69
|
-
background: image-url('redde/move-handler.png') no-repeat center
|
70
|
-
|
71
|
-
&._eye
|
72
|
-
padding-left: 7px
|
73
|
-
width: 0.01%
|
74
|
-
|
75
|
-
.list-v2__cell_first
|
76
|
-
padding-left: 0
|
77
|
-
|
78
|
-
.list-v2__img
|
79
|
-
border-radius: 2px
|
80
|
-
display: block
|
81
|
-
|
82
|
-
.list-v2__eye
|
83
|
-
display: block
|
84
|
-
width: 20px
|
85
|
-
height: 20px
|
86
|
-
background: image-url('redde/eye.svg') no-repeat center
|
87
|
-
&._disactive
|
88
|
-
background-image: image-url('redde/eye_disactive.svg')
|
89
|
-
|
90
|
-
.list-v2__del
|
91
|
-
background: image-url('redde/close.svg') no-repeat center
|
92
|
-
display: block
|
93
|
-
width: 20px
|
94
|
-
height: 20px
|
95
|
-
&:hover
|
96
|
-
background: image-url('redde/close-hover.svg') no-repeat center
|
@@ -1,22 +0,0 @@
|
|
1
|
-
table.list {
|
2
|
-
margin-left:0; width:auto; border-collapse:collapse;
|
3
|
-
td {border:1px solid #ededed; border-width:1px 0;}
|
4
|
-
col.w1 { width:1%;}
|
5
|
-
a:hover {color:#737300;}
|
6
|
-
td, th {vertical-align:middle; width:auto; padding:0 5px 0 0;}
|
7
|
-
th {background:#ededed; letter-spacing:1px;}
|
8
|
-
.handle {border-color:#fff;}
|
9
|
-
td * {vertical-align:middle;}
|
10
|
-
td.show {
|
11
|
-
a {border-radius:10px; border:1px solid transparent; display:inline-block; width:20px; height:20px; background:image-url("admin/icon_eye.gif") no-repeat 1px 1px;}
|
12
|
-
a.not-show {opacity:0.4; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=40);}
|
13
|
-
}
|
14
|
-
tr:hover {
|
15
|
-
td {background:#ffc;}
|
16
|
-
}
|
17
|
-
.green {color:green; font-weight:bold; text-shadow:0 0 10px green;}
|
18
|
-
}
|
19
|
-
|
20
|
-
table.sortable {
|
21
|
-
margin-left:-18px;
|
22
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
//= depend_on_asset redde/close.svg
|
2
|
-
//= depend_on_asset redde/close-hover.svg
|
3
|
-
|
4
|
-
%del
|
5
|
-
display: inline-block
|
6
|
-
width: 20px
|
7
|
-
height: 20px
|
8
|
-
background: image-url('redde/close.svg') center no-repeat
|
9
|
-
text-decoration: none
|
10
|
-
|
11
|
-
.del
|
12
|
-
@extend %del
|
13
|
-
&:before
|
14
|
-
content: '\A0'
|
15
|
-
&:hover
|
16
|
-
background-image: image-url('redde/close-hover.svg')
|
17
|
-
|
18
|
-
.a_del
|
19
|
-
&:after
|
20
|
-
@extend %del
|
21
|
-
content: '\A0'
|
22
|
-
&:hover:after
|
23
|
-
background-image: image-url('redde/close-hover.svg')
|
@@ -1,15 +0,0 @@
|
|
1
|
-
= page_header
|
2
|
-
|
3
|
-
- unless @managers.empty?
|
4
|
-
%table.list
|
5
|
-
%colgroup
|
6
|
-
%col
|
7
|
-
%col.w1
|
8
|
-
%thead
|
9
|
-
%tr
|
10
|
-
%th= Manager.human_attribute_name('email')
|
11
|
-
%th
|
12
|
-
- @managers.each do |manager|
|
13
|
-
%tr
|
14
|
-
%td= link_to manager.email, [:edit, :admin, manager]
|
15
|
-
%td= link_to 'Удалить', [:admin, manager], method: :delete, data: { confirm: 'Точно Удалить?' }, class: :del
|