aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/journey_patterns
diff options
context:
space:
mode:
authorMarc Florisson2012-06-29 10:26:59 +0200
committerMarc Florisson2012-06-29 10:26:59 +0200
commit80bc3154ce5314653e4f3a19dcb8d3da056ce159 (patch)
tree2a84058af0fecb7db8952338bd74fdfa0a9a7120 /app/views/journey_patterns
parenta46b9975c0b9257cb7749201a8bea520e0532a85 (diff)
downloadchouette-core-80bc3154ce5314653e4f3a19dcb8d3da056ce159.tar.bz2
journey_pattern edit: add links to line and route
Diffstat (limited to 'app/views/journey_patterns')
-rw-r--r--app/views/journey_patterns/edit.html.erb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/journey_patterns/edit.html.erb b/app/views/journey_patterns/edit.html.erb
index 33fac2a6c..33adb6d7d 100644
--- a/app/views/journey_patterns/edit.html.erb
+++ b/app/views/journey_patterns/edit.html.erb
@@ -1,4 +1,17 @@
<%= title_tag t('journey_patterns.edit.title', :journey_pattern => @journey_pattern.name ) %>
+<div class="journey_pattern">
+ <div class="summary">
+ <p>
+ <label><%= @route.human_attribute_name(:line) %>: </label>
+ <%= link_to line_formatted_name( @line), [@referential, @line] %>
+ </p>
+ <p>
+ <label><%= Chouette::Route.model_name.human %>: </label>
+ <%= link_to @route.name, [@referential, @line, @route] %>
+ </p>
+ <div>
+<div>
+
<%= render "form" %>