<%= title_tag t('lines.index.title') %> <%= search_form_for @q, :url => referential_lines_path(@referential), :html => {:method => :get} do |f| %> <%= f.label :name_or_number_cont, "#{t('.name_or_number')} :" %> <%= f.text_field :name_or_number_cont %> <%= f.hidden_field :company_id_eq %> <%= f.hidden_field :network_id_eq %> <%= f.hidden_field :group_of_lines_id_eq %> <%= f.submit t('actions.search') %> <%= t("or") %> <%= link_to t("cancel"), referential_lines_path(@referential) %> <% end %> <% if @q.network_id_eq.present? %>

<%= Chouette::Line.human_attribute_name('network') %> : <%= @referential.networks.find(@q.network_id_eq).name %>

<% end %> <% if @q.company_id_eq.present? %>

<%= Chouette::Line.human_attribute_name('company') %> : <%= @referential.companies.find(@q.company_id_eq).name %>

<% end %> <% if @q.group_of_lines_id_eq.present? %>

<%= Chouette::Line.human_attribute_name('group_of_line') %> : <%= @referential.group_of_lines.find(@q.group_of_lines_id_eq).name %>

<% end %>
<%= t("will_paginate.page_entries_info.search") %> <%= page_entries_info @lines %>
<%= render :partial => "line", :collection => @lines %>
<% content_for :sidebar do %>

<%= t(".selection") %>

<%= Chouette::Company.model_name.human.pluralize %>

<%= Chouette::Network.model_name.human.pluralize %>

<% if @referential.group_of_lines.count > 0 %>

<%= Chouette::GroupOfLine.model_name.human.pluralize %>

<% end %>

<%= t(".multi_selection") %>

<%= t(".multi_selection_enable") %>
<% end %>