diff options
| author | Zog | 2018-03-13 10:41:48 +0100 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-04-04 11:10:39 +0200 |
| commit | d034376737c27e48a7a3413b82461a65999ee105 (patch) | |
| tree | c657811ee569ce1f2487c07f921fdae3382eb726 /app/views/stop_areas/show.html.slim | |
| parent | a77307ca49c57dc18823f6aece2424ccb3c5a7c2 (diff) | |
| download | chouette-core-d034376737c27e48a7a3413b82461a65999ee105.tar.bz2 | |
Refs #6090; CustomFields inputs made easy
:warning: We'll have to refine this code once StopArea are linked to
workgroups
Diffstat (limited to 'app/views/stop_areas/show.html.slim')
| -rw-r--r-- | app/views/stop_areas/show.html.slim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/stop_areas/show.html.slim b/app/views/stop_areas/show.html.slim index a6147b86d..851bd9b82 100644 --- a/app/views/stop_areas/show.html.slim +++ b/app/views/stop_areas/show.html.slim @@ -23,4 +23,6 @@ t('activerecord.attributes.stop_area.state') => stop_area_status(@stop_area), @stop_area.human_attribute_name(:comment) => @stop_area.try(:comment), }) + - @stop_area.custom_fields.each do |code, field| + - attributes.merge!(field.name => field.display_value) = definition_list t('metadatas'), attributes |
