diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/connection_links/_form.erb | 2 | ||||
| -rw-r--r-- | app/views/group_of_lines/_form.erb | 6 | ||||
| -rw-r--r-- | app/views/journey_patterns/_form.html.erb | 6 | ||||
| -rw-r--r-- | app/views/lines/_form.erb | 8 | ||||
| -rw-r--r-- | app/views/networks/_form.erb | 6 | ||||
| -rw-r--r-- | app/views/routes/_form.html.erb | 2 | ||||
| -rw-r--r-- | app/views/stop_areas/_form.html.erb | 28 | ||||
| -rw-r--r-- | app/views/time_tables/_form.erb | 4 | ||||
| -rw-r--r-- | app/views/vehicle_journeys/_form.html.erb | 2 | 
9 files changed, 32 insertions, 32 deletions
| diff --git a/app/views/connection_links/_form.erb b/app/views/connection_links/_form.erb index 54ac7088e..0620dcc94 100644 --- a/app/views/connection_links/_form.erb +++ b/app/views/connection_links/_form.erb @@ -4,7 +4,7 @@      <%= form.input :name %>      <%= form.input :connection_link_type, :as => :select, :collection => Chouette::ConnectionLink.connection_link_types, :include_blank => false, :member_label => Proc.new { |type| t("connection_link_types.label.#{type}") }  %>      <%= form.input :comment %>   -    <%= form.input :link_distance %> +    <%= form.input :link_distance, :input_html => {  :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.connection_link.link_distance") } %>        <%= form.input :mobility_restricted_suitability,:as => :boolean %>      <%= form.input :stairs_availability,:as => :boolean %>      <%= form.input :lift_availability,:as => :boolean %> diff --git a/app/views/group_of_lines/_form.erb b/app/views/group_of_lines/_form.erb index 9482248b6..d9c033a37 100644 --- a/app/views/group_of_lines/_form.erb +++ b/app/views/group_of_lines/_form.erb @@ -1,9 +1,9 @@  <%= semantic_form_for [@referential, @group_of_line] do |form| %>    <%= form.inputs do %> -    <%= form.input :name %> -    <%= form.input :registration_number %> +    <%= form.input :name, :input_html => {  :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.group_of_lines.name") } %> +    <%= form.input :registration_number, :input_html => {  :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.group_of_lines.registration_number") } %>      <%= form.input :comment %> -    <%= form.input :objectid, :required => !@group_of_line.new_record?, :input_html => { :title => t("formtastic.titles.group_of_line.objectid")} %> +    <%= form.input :objectid, :required => !@group_of_line.new_record?, :input_html => {  :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.group_of_lines.objectid") } %>    <% end %>    <%= form.inputs do %> diff --git a/app/views/journey_patterns/_form.html.erb b/app/views/journey_patterns/_form.html.erb index 361f7f380..f57556577 100644 --- a/app/views/journey_patterns/_form.html.erb +++ b/app/views/journey_patterns/_form.html.erb @@ -1,11 +1,11 @@  <%= semantic_form_for [@referential, @line, @route, @journey_pattern] do |form| %>    <%= form.inputs do %>  -    <%= form.input :name %> +    <%= form.input :name, :input_html => {  :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.journey_pattern.name") } %>      <%= form.input :published_name %> -    <%= form.input :registration_number %>               +    <%= form.input :registration_number, :input_html => {  :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.journey_pattern.registration_number") } %>                    <%= form.input :comment %>                    <%= form.input :stop_point_ids, :label => stop_point_ids_label(@journey_pattern), :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' }:{}) %>               -    <%= form.input :objectid, :required => !@journey_pattern.new_record?, :input_html => { :title => t("formtastic.titles.journey_pattern.objectid")} %>   +    <%= form.input :objectid, :required => !@journey_pattern.new_record?, :input_html => {  :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.journey_pattern.objectid") } %>      <% end %>     <%= form.actions do %> diff --git a/app/views/lines/_form.erb b/app/views/lines/_form.erb index 489aeba97..eb31f8dc1 100644 --- a/app/views/lines/_form.erb +++ b/app/views/lines/_form.erb @@ -3,10 +3,10 @@    <%= form.inputs do %>      <%= form.input :network, :as => :select, :collection => Chouette::Network.all, :include_blank => false %>      <%= form.input :company, :as => :select, :collection => Chouette::Company.all, :include_blank => false%> -    <%= form.input :name %> +    <%= form.input :name, :input_html => {  :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.line.name") } %>      <%= form.input :published_name %> -    <%= form.input :registration_number, :input_html => { :title => t("formtastic.titles.line.registration_number")} %> -    <%= form.input :number %> +    <%= form.input :registration_number, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.line.registration_number")} %> +    <%= form.input :number, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.line.number") } %>      <%= form.input :transport_mode, :as => :select, :collection => Chouette::Line.transport_modes, :include_blank => false, :member_label => Proc.new { |mode| t("transport_modes.label.#{mode}") }  %>      <%= form.input :color, :as => :string %>      <%= form.input :text_color %> @@ -14,7 +14,7 @@      <%= form.input :mobility_restricted_suitability, :as => :select, :collection => [[@line.human_attribute_name("accessible"), true], [@line.human_attribute_name("not_accessible"), false]], :include_blank => true %>      <%= form.input :flexible_service, :as => :select, :collection => [[@line.human_attribute_name("on_demaond_fs"), true], [@line.human_attribute_name("regular_fs"), false]], :include_blank => true %>      <%= form.input :comment %> -    <%= form.input :objectid, :required => !@line.new_record?, :input_html => { :title => t("formtastic.titles.line.objectid")} %> +    <%= form.input :objectid, :required => !@line.new_record?, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.line.objectid")} %>      <%= form.input :group_of_line_tokens, :label => t('.group_of_lines'), :as => :text,  :input_html => { :"data-pre" => ( @line.group_of_lines.map { |group_of_line| { :id => group_of_line.id, :name => group_of_line.name } } ).to_json }  %>      <div class="footnotes_block"> diff --git a/app/views/networks/_form.erb b/app/views/networks/_form.erb index bb87d9e46..cb9575664 100644 --- a/app/views/networks/_form.erb +++ b/app/views/networks/_form.erb @@ -1,13 +1,13 @@  <%= semantic_form_for [@referential, @network] do |form| %>    <%= form.inputs do %>  -    <%= form.input :name %>  -    <%= form.input :registration_number, :input_html => { :title => t("formtastic.titles.network.registration_number")} %>   +    <%= form.input :name, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.network.name")} %>  +    <%= form.input :registration_number, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.network.registration_number")} %>      <%= form.input :comment %>      <%= form.input :version_date, :as => :date_picker %>      <%= form.input :description %>                    <%= form.input :source_name %>                    <%= form.input :source_identifier %>               -    <%= form.input :objectid, :required => !@network.new_record?, :input_html => { :title => t("formtastic.titles.network.objectid")} %>   +    <%= form.input :objectid, :required => !@network.new_record?, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.network.objectid")} %>      <% end %>     <%= form.actions do %> diff --git a/app/views/routes/_form.html.erb b/app/views/routes/_form.html.erb index b6c4a8c24..2aa9dd8b7 100644 --- a/app/views/routes/_form.html.erb +++ b/app/views/routes/_form.html.erb @@ -7,7 +7,7 @@      <%= form.input :opposite_route, :as => :select, :collection => @line.routes.select { |r| r.id != @route.id } %>      <%= form.input :direction_code, :as => :select, :collection => Chouette::Route.directions, :include_blank => false, :member_label => Proc.new { |mode| t("directions.label.#{mode}") } %>      <%= form.input :wayback_code, :as => :select, :collection => Chouette::Route.waybacks, :include_blank => false, :member_label => Proc.new { |mode| t("waybacks.label.#{mode}") } %> -    <%= form.input :objectid, :required => !@route.new_record?, :input_html => { :title => t("formtastic.titles.route.objectid")}%> +    <%= form.input :objectid, :required => !@route.new_record?, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.route.objectid")} %>    <% end %>  	<div id="stop_points">  		<%= form.semantic_fields_for :stop_points, :include_id => false, :label => "TOTO" do |p| %> diff --git a/app/views/stop_areas/_form.html.erb b/app/views/stop_areas/_form.html.erb index 9fd549e18..e34253828 100644 --- a/app/views/stop_areas/_form.html.erb +++ b/app/views/stop_areas/_form.html.erb @@ -2,23 +2,23 @@    <div class="row">      <div class="col-md-6">        <%= form.inputs do %> -      <%= form.input :id, :as => :hidden %> -      <%= form.input :name %> -      <%= form.input :stop_area_type, :as => :select, :input_html => { :disabled => !@stop_area.new_record? }, :collection => Chouette::StopArea.stop_area_types, :include_blank => false, :member_label => Proc.new { |stop_area_type| t("area_types.label.#{stop_area_type}") }  %> -      <div class="location_info"> -      <h3><%= t("stop_areas.stop_area.localisation") %></h3> -      <div id="prefetch"> +        <%= form.input :id, :as => :hidden %> +        <%= form.input :name, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.name")} %> +        <%= form.input :stop_area_type, :as => :select, :input_html => { :disabled => !@stop_area.new_record? }, :collection => Chouette::StopArea.stop_area_types, :include_blank => false, :member_label => Proc.new { |stop_area_type| t("area_types.label.#{stop_area_type}") }  %> +        <div class="location_info"> +          <h3><%= t("stop_areas.stop_area.localisation") %></h3> +        <div id="prefetch">          <label><%= t('.geolocalize') %></label>  	      <input class="typeahead form-control input-lg" maxlength="255" type="text" placeholder="<%= t('.address') %>" />        </div>        <% unless @referential.projection_type_label.empty? %> -  	    <%= form.input :projection_xy, :label => t("projection_xy", :projection => @referential.projection_type_label), :input_html => { :title => t("formtastic.titles.stop_area.projection_xy")} %> +  	    <%= form.input :projection_xy, :label => t("projection_xy", :projection => @referential.projection_type_label), :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.projection_xy")} %>  	    <% end %> -	    <%= form.input :coordinates, :input_html => { :title => t("formtastic.titles.stop_area.coordinates")} %> +	    <%= form.input :coordinates, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.coordinates")} %>        <%= form.input :street_name %>        <%= form.input :country_code %> -      <%= form.input :zip_code %> -      <%= form.input :city_name %> +      <%= form.input :zip_code, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.zip_code")} %> +      <%= form.input :city_name, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.city_name")} %>      <% end %>      </div>      <div class="col-md-6"> @@ -30,11 +30,11 @@    <div class="stop_areas.stop_area.general_info">      <h3><%= t("stop_area.general") %></h3>      <%= form.inputs do %> -      <%= form.input :objectid, :required => !@stop_area.new_record?, :input_html => { :title => t("formtastic.titles.stop_area.objectid")} %> -      <%= form.input :registration_number, :input_html => { :title => t("formtastic.titles.stop_area.registration_number")} %> +      <%= form.input :objectid, :required => !@stop_area.new_record?, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.objectid")} %> +      <%= form.input :registration_number, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.registration_number")} %>        <%= form.input :fare_code, :as => :number %> -      <%= form.input :nearest_topic_name %> -      <%= form.input :comment, :as => :text, :input_html => { :rows => 5 } %> +      <%= form.input :nearest_topic_name, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.nearest_topic_name")} %> +      <%= form.input :comment, :as => :text, :input_html => { :rows => 5,  :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.comment") } %>        <%= form.input :time_zone,  :include_blank => true  %>        <%= form.input :url %>      <% end %> diff --git a/app/views/time_tables/_form.erb b/app/views/time_tables/_form.erb index 7dceab747..8cd614fa6 100644 --- a/app/views/time_tables/_form.erb +++ b/app/views/time_tables/_form.erb @@ -1,11 +1,11 @@  <%= semantic_form_for [@referential, @time_table] do |form| %>    <%= form.inputs do %>  -    <%= form.input :comment %> +    <%= form.input :comment, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.time_table.comment")} %>      <%= form.input :version %>          <%= form.input :tag_search, :as => :tags, :input_html => { :id => "tag_search",:placeholder => t("formtastic.placeholders.time_table.tag_search") } %>      <%= form.input :tag_list, :as => :hidden, :input_html => { :id => "tag_list" } %> -    <%= form.input :objectid, :required => !@time_table.new_record?, :input_html => { :title => t("formtastic.titles.time_table.objectid")} %> +    <%= form.input :objectid, :required => !@time_table.new_record?, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.time_table.objectid")} %>    <% end %>    <h3 class="time_table_periods"><%= @time_table.human_attribute_name("periods") %></h3> diff --git a/app/views/vehicle_journeys/_form.html.erb b/app/views/vehicle_journeys/_form.html.erb index 0212ae4ea..3c175148f 100644 --- a/app/views/vehicle_journeys/_form.html.erb +++ b/app/views/vehicle_journeys/_form.html.erb @@ -11,7 +11,7 @@      <%= form.input :status_value %>      <%= form.input :facility %>      <%= form.input :vehicle_type_identifier%> -    <%= form.input :objectid, :required => !@vehicle_journey.new_record?, :input_html => { :title => t("formtastic.titles.vehicle_journey.objectid")} %> +    <%= form.input :objectid, :required => !@vehicle_journey.new_record?, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.vehicle_journey.objectid")} %>      <%= form.input :time_table_tokens, :label => t('.time_tables'), :as => :search_time_table, :json => referential_autocomplete_time_tables_path(@referential, :format => :json), :hint_text => t('search_hint'), :no_result_text => t('no_result_text'),:searching_text => t('searching_term'),  :input_html => { :"data-pre" => Rabl::Renderer.new( 'autocomplete_time_tables/index', @vehicle_journey.time_tables, :view_path => 'app/views', :format => :json, :scope => :self ).render }  %>      <%= form.input :footnote_ids, :as => :check_boxes, :collection => @line.footnotes.map { |f| [ "#{f.code}: #{f.label}", f.id.to_s]} %>      <li class="input"> | 
