diff options
| author | cedricnjanga | 2018-04-24 13:03:04 -0700 |
|---|---|---|
| committer | cedricnjanga | 2018-04-24 13:03:04 -0700 |
| commit | 9050f4dde351e27e2cf33df7d1a4bc3b694ac04c (patch) | |
| tree | a7e0869d7b09604dbb463dc54d19f411ae726cd1 /app/views/referential_stop_areas | |
| parent | 1f8d2759c545e60ab2989fc6331e55e95a3b0e67 (diff) | |
| download | chouette-core-9050f4dde351e27e2cf33df7d1a4bc3b694ac04c.tar.bz2 | |
Refs #6431 Add small changes on stop area & line status display to have the same logic
Diffstat (limited to 'app/views/referential_stop_areas')
| -rw-r--r-- | app/views/referential_stop_areas/show.html.slim | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/referential_stop_areas/show.html.slim b/app/views/referential_stop_areas/show.html.slim index cb04ab7a6..beee0383f 100644 --- a/app/views/referential_stop_areas/show.html.slim +++ b/app/views/referential_stop_areas/show.html.slim @@ -7,10 +7,10 @@ .col-lg-6.col-md-6.col-sm-12.col-xs-12 = definition_list t('metadatas'), { t('id_reflex') => @stop_area.try(:user_objectid), - 'Activé' => (@stop_area.deleted_at ? t('false') : t('true')), - @stop_area.human_attribute_name(:comment) => @stop_area.try(:comment), - @stop_area.human_attribute_name(:stop_area_type) => t("area_types.label.#{@stop_area.stop_area_type}"), - @stop_area.human_attribute_name(:registration_number) => @stop_area.registration_number, - 'Coordonnées' => geo_data(@stop_area, @stop_area_referential), - @stop_area.human_attribute_name(:zip_code) => @stop_area.zip_code, - @stop_area.human_attribute_name(:city_name) => @stop_area.city_name } + Chouette::StopArea.tmf(:status) => stop_area_status(@stop_area), + Chouette::StopArea.tmf(:comment) => @stop_area.try(:comment), + Chouette::StopArea.tmf(:stop_area_type) => t("area_types.label.#{@stop_area.stop_area_type}"), + Chouette::StopArea.tmf(:registration_number) => @stop_area.registration_number, + Chouette::StopArea.tmf(:coordinates) => geo_data(@stop_area, @stop_area_referential), + Chouette::StopArea.tmf(:zip_code) => @stop_area.zip_code, + Chouette::StopArea.tmf(:city_name) => @stop_area.city_name }
\ No newline at end of file |
