diff options
| author | Marc Florisson | 2012-06-06 17:44:22 +0200 |
|---|---|---|
| committer | Marc Florisson | 2012-06-06 17:44:22 +0200 |
| commit | aa00d31ffe2ec040504b6699213fe60763563fda (patch) | |
| tree | a36a3ec9a283123cf1192533da4394e50b2b22c5 /app/views/journey_patterns | |
| parent | 448c162c595f66230e70105fbe015f41a61dc82c (diff) | |
| download | chouette-core-aa00d31ffe2ec040504b6699213fe60763563fda.tar.bz2 | |
pre-select all route's stop on journey_pattern creation form
Diffstat (limited to 'app/views/journey_patterns')
| -rw-r--r-- | app/views/journey_patterns/_form.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/journey_patterns/_form.html.erb b/app/views/journey_patterns/_form.html.erb index ef2bcc9d2..b6c37ab1b 100644 --- a/app/views/journey_patterns/_form.html.erb +++ b/app/views/journey_patterns/_form.html.erb @@ -4,8 +4,8 @@ <%= form.input :published_name %> <%= form.input :registration_number %> <%= form.input :comment %> - <%= form.input :stop_point_ids, :as => :check_boxes, :collection => @route.stop_points.map { |s| [s.stop_area.name, s.id.to_s]} %> - <% if @route.new_record? %> + <%= form.input :stop_point_ids, :as => :check_boxes, :collection => @route.stop_points.map { |s| [s.stop_area.name, s.id.to_s]}, :input_html => (@journey_pattern.new_record? ? { :checked => 'checked' }:{}) %> + <% if @journey_pattern.new_record? %> <%= form.input :objectid %> <% else %> <li> |
