c80_estate 0.1.0.31 → 0.1.0.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/admin/c80_estate/areas.rb +3 -0
- data/app/admin/c80_estate/properties.rb +23 -12
- data/app/assets/images/no_thumb_1.jpg +0 -0
- data/app/assets/images/no_thumb_2.jpg +0 -0
- data/app/assets/images/no_thumb_3.jpg +0 -0
- data/app/assets/images/no_thumb_4.jpg +0 -0
- data/app/assets/images/no_thumb_5.jpg +0 -0
- data/app/assets/images/no_thumb_6.jpg +0 -0
- data/app/assets/javascript/c80_estate/backend/admin/shared/areas/area_show.js +25 -0
- data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item/div_main.scss +4 -2
- data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item/div_vendor_logo.scss +11 -0
- data/app/helpers/c80_estate/properties_helper.rb +23 -19
- data/app/models/c80_estate/area.rb +2 -1
- data/app/views/c80_estate/ajax/can_edit_area.js.erb +3 -0
- data/app/views/c80_estate/shared/properties/_single_property_on_page.html.erb +1 -1
- data/lib/c80_estate/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2ef695e039493141a0a39cbad27235f9f5899e7
|
4
|
+
data.tar.gz: 900f43cf5e639200fd5fb2fe4696dfa3541154cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8020e8834ba2bae804b40ba1794c7bb7b50353fd0fd57930481438470dfec3b37061b368e7341a5107202e28e53d26b11bb71ecb494d3a73d1a9a7e9045f9c5
|
7
|
+
data.tar.gz: e19d8422873c93cf79c120c506fd3497b36d4802bf240af8c33bd8179f72e182fb2644094e4387def04620c1cd11c30f7dc5c3913bf29a64128e3039f8536cb7
|
@@ -51,22 +51,33 @@ ActiveAdmin.register C80Estate::Property, as: 'Property' do
|
|
51
51
|
column 'Площадей' do |prop|
|
52
52
|
prop.areas.count
|
53
53
|
end
|
54
|
+
|
55
|
+
unless (->{ current_admin_user.can_view_statistics?}).call
|
56
|
+
column 'Свободно' do |prop|
|
57
|
+
prop.areas.free_areas.count
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
54
61
|
column 'Метраж' do |prop|
|
55
62
|
"#{prop.square_value.to_s(:rounded, precision: 2)} м.кв."
|
56
63
|
end
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
64
|
+
|
65
|
+
if (->{ current_admin_user.can_view_statistics?}).call
|
66
|
+
column '<abbr title="Сумма всех цен площадей">Цена объекта</abbr>'.html_safe do |prop|
|
67
|
+
"#{prop.power_price_value.to_s(:rounded, precision: 2)} руб"
|
68
|
+
end
|
69
|
+
# column :address
|
70
|
+
# column :gps do |prop|
|
71
|
+
# "#{prop.latitude},#{prop.longitude}"
|
72
|
+
# end
|
73
|
+
column :average_price do |prop|
|
74
|
+
"#{prop.average_price.to_s(:rounded, precision: 2)} руб"
|
75
|
+
end
|
76
|
+
column :average_price_busy do |prop|
|
77
|
+
"#{prop.average_price_busy.to_s(:rounded, precision: 2)} руб"
|
78
|
+
end
|
69
79
|
end
|
80
|
+
|
70
81
|
column :assigned_person do |prop|
|
71
82
|
prop.assigned_person_title
|
72
83
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -366,3 +366,28 @@ var fAreasShow = function () {
|
|
366
366
|
});
|
367
367
|
|
368
368
|
};
|
369
|
+
|
370
|
+
// hardcode
|
371
|
+
// вызовется в can_edit_area.js.erb
|
372
|
+
var fAreasShow__minorCssFix = function (property_id) {
|
373
|
+
|
374
|
+
setTimeout(function () {
|
375
|
+
|
376
|
+
var $div_vendor_logo = $('div#div_vendor_logo');
|
377
|
+
var $a_img = $div_vendor_logo.find('a.no-clickable').find('img');
|
378
|
+
console.log($a_img);
|
379
|
+
|
380
|
+
if (property_id == 1) { // строительный
|
381
|
+
$div_vendor_logo.css('top','148px');
|
382
|
+
}
|
383
|
+
|
384
|
+
if (property_id == 5) { // терминал
|
385
|
+
$div_vendor_logo.css('left','-172px');
|
386
|
+
$a_img.css('width', '106px');
|
387
|
+
}
|
388
|
+
|
389
|
+
$div_vendor_logo.css('opacity','1.0');
|
390
|
+
|
391
|
+
}, 500);
|
392
|
+
};
|
393
|
+
|
data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item/div_main.scss
CHANGED
@@ -32,7 +32,8 @@ div#div_main_show_area {
|
|
32
32
|
float: left;
|
33
33
|
margin-right: 30px;
|
34
34
|
width: calc(621px * 0.7);
|
35
|
-
height: calc(377px * 0.7)
|
35
|
+
/*height: calc(377px * 0.7);*/
|
36
|
+
height: auto;
|
36
37
|
border: 3px solid #F2F2F2;
|
37
38
|
|
38
39
|
img {
|
@@ -46,7 +47,8 @@ div#div_main_show_area {
|
|
46
47
|
|
47
48
|
div#main_props {
|
48
49
|
float: left;
|
49
|
-
overflow: hidden
|
50
|
+
/*overflow: hidden;*/
|
51
|
+
position: relative;
|
50
52
|
|
51
53
|
ul {
|
52
54
|
list-style: none;
|
@@ -5,6 +5,17 @@ div#div_vendor_logo {
|
|
5
5
|
float: left;
|
6
6
|
padding-top: 0;
|
7
7
|
|
8
|
+
position: absolute;
|
9
|
+
top: 157px;
|
10
|
+
left: -192px;
|
11
|
+
|
12
|
+
opacity: 0;
|
13
|
+
-webkit-transition: opacity .2s ease-in;
|
14
|
+
-moz-transition: opacity .2s ease-in;
|
15
|
+
-ms-transition: opacity .2s ease-in;
|
16
|
+
-o-transition: opacity .2s ease-in;
|
17
|
+
transition: opacity .2s ease-in;
|
18
|
+
|
8
19
|
> a {
|
9
20
|
width: 150px !important;
|
10
21
|
border: none !important;
|
@@ -68,7 +68,7 @@ module C80Estate
|
|
68
68
|
end
|
69
69
|
|
70
70
|
#
|
71
|
-
def ph_render_price_props(property)
|
71
|
+
def ph_render_price_props(property, mark_draw_statistics = false)
|
72
72
|
|
73
73
|
result = ''
|
74
74
|
|
@@ -87,26 +87,30 @@ module C80Estate
|
|
87
87
|
abbr: 'Количество площадей на объекте',
|
88
88
|
value: property.areas.count,
|
89
89
|
uom: ''
|
90
|
-
},
|
91
|
-
{
|
92
|
-
title: 'Цена объекта',
|
93
|
-
abbr: 'Сумма всех цен площадей объекта',
|
94
|
-
value: property.power_price_value.to_s(:rounded, precision: 2),
|
95
|
-
uom: 'руб'
|
96
|
-
},
|
97
|
-
{
|
98
|
-
title: 'Средняя ставка',
|
99
|
-
abbr: 'Средняя арендная ставка за 1 кв. м',
|
100
|
-
value: property.average_price.to_s(:rounded, precision: 2),
|
101
|
-
uom: 'руб'
|
102
|
-
},
|
103
|
-
{
|
104
|
-
title: 'Средняя ставка занятых',
|
105
|
-
abbr: ' Средняя арендная ставка за 1 кв. м занятых площадей',
|
106
|
-
value: property.average_price_busy.to_s(:rounded, precision: 2),
|
107
|
-
uom: 'руб'
|
108
90
|
}
|
109
91
|
]
|
92
|
+
|
93
|
+
if mark_draw_statistics
|
94
|
+
rows << {
|
95
|
+
title: 'Цена объекта',
|
96
|
+
abbr: 'Сумма всех цен площадей объекта',
|
97
|
+
value: property.power_price_value.to_s(:rounded, precision: 2),
|
98
|
+
uom: 'руб'
|
99
|
+
}
|
100
|
+
rows << {
|
101
|
+
title: 'Средняя ставка',
|
102
|
+
abbr: 'Средняя арендная ставка за 1 кв. м',
|
103
|
+
value: property.average_price.to_s(:rounded, precision: 2),
|
104
|
+
uom: 'руб'
|
105
|
+
}
|
106
|
+
rows << {
|
107
|
+
title: 'Средняя ставка занятых',
|
108
|
+
abbr: ' Средняя арендная ставка за 1 кв. м занятых площадей',
|
109
|
+
value: property.average_price_busy.to_s(:rounded, precision: 2),
|
110
|
+
uom: 'руб'
|
111
|
+
}
|
112
|
+
end
|
113
|
+
|
110
114
|
rows.each do |row|
|
111
115
|
|
112
116
|
title = row[:title]
|
data/lib/c80_estate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: c80_estate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- C80609A
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,6 +78,12 @@ files:
|
|
78
78
|
- app/admin/c80_estate/sevents.rb
|
79
79
|
- app/admin/c80_estate/uoms.rb
|
80
80
|
- app/assets/images/no_thumb.png
|
81
|
+
- app/assets/images/no_thumb_1.jpg
|
82
|
+
- app/assets/images/no_thumb_2.jpg
|
83
|
+
- app/assets/images/no_thumb_3.jpg
|
84
|
+
- app/assets/images/no_thumb_4.jpg
|
85
|
+
- app/assets/images/no_thumb_5.jpg
|
86
|
+
- app/assets/images/no_thumb_6.jpg
|
81
87
|
- app/assets/images/property_default_logo.png
|
82
88
|
- app/assets/images/w227x182px.gif
|
83
89
|
- app/assets/images/w621x377.gif
|