1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
= title_tag t('access_points.show.title', access_point: @access_point.name)
.access_point_show
.summary
p
label = "#{@access_point.human_attribute_name('comment')} : "
= @access_point.comment
p
label = "#{@access_point.human_attribute_name('street_name')} : "
= @access_point.street_name
p
label = "#{@access_point.human_attribute_name('country_code')} : "
= @access_point.country_code
p
label = "#{@access_point.human_attribute_name('zip_code')} : "
= @access_point.zip_code
p
label = "#{@access_point.human_attribute_name('city_name')} : "
= @access_point.city_name
p
label = "#{@access_point.human_attribute_name('access_point_type')} : "
= t("access_types.label.#{@access_point.access_point_type}")
p
label = "#{@access_point.human_attribute_name('openning_time')} : "
- if @access_point.openning_time.present?
= @access_point.openning_time.strftime('%Hh %Mm')
p
label = "#{@access_point.human_attribute_name('closing_time')} : "
- if @access_point.closing_time.present?
= @access_point.closing_time.strftime('%Hh %Mm')
p
label = "#{@access_point.human_attribute_name('mobility_restricted_suitability')} : "
= t((@access_point.mobility_restricted_suitability == true).to_s)
p
label = "#{@access_point.human_attribute_name('stairs_availability')} : "
= t((@access_point.stairs_availability == true).to_s)
p
label = "#{@access_point.human_attribute_name('lift_availability')} : "
= t((@access_point.lift_availability == true).to_s)
p
label = t('access_points.show.geographic_data')
- if @access_point.long_lat_type == nil
span.geo_data = t('access_points.show.no_geographic_data')
- else
- if !@access_point.projection.nil?
p
span.geo_data = "#{@access_point.human_attribute_name('projection')} : "
= @referential.projection_type_label
p
span.geo_data = "#{@access_point.human_attribute_name('projection_x')} : "
= @access_point.projection_x
p
span.geo_data = "#{@access_point.human_attribute_name('projection_y')} : "
= @access_point.projection_y
- if !@access_point.long_lat_type.nil?
p
span.geo_data = "#{@access_point.human_attribute_name('long_lat_type')} : "
= @access_point.long_lat_type
p
span.geo_data = "#{@access_point.human_attribute_name('longitude')} : "
= @access_point.longitude
p
span.geo_data = "#{@access_point.human_attribute_name('latitude')} : "
= @access_point.latitude
div
h3.access_point_generics = t('.generic_access_links')
div.access_link_pairs
table
= render partial: 'access_link_pairs/access_link_pair', collection: access_links_pairs(@generic_access_links)
h3.access_point_details = t('.detail_access_links')
div.access_link_pairs
table
= render partial: 'access_link_pairs/access_link_pair', collection: access_links_pairs(@detail_access_links)
- content_for :sidebar do
ul.actions
li
= link_to t('access_points.actions.new'), new_referential_stop_area_access_point_path(@referential,@stop_area), class: 'add'
li
= link_to t('access_points.actions.edit'), edit_referential_stop_area_access_point_path(@referential, @stop_area, @access_point), class: 'edit'
li
= link_to t('access_points.actions.destroy'), referential_stop_area_access_point_path(@referential, @stop_area, @access_point), :method => :delete, :data => {:confirm => t('access_points.actions.destroy_confirm')}, class: 'remove'
br
= creation_tag(@access_point)
|