diff options
| author | jpl | 2016-11-29 14:53:38 +0100 |
|---|---|---|
| committer | jpl | 2016-11-29 14:53:38 +0100 |
| commit | 50d13424c2bdbc5a86ec67560fa296e9142fe652 (patch) | |
| tree | 9c3943499034ca5ed4b4a77e8d3b87a46459c8f7 | |
| parent | 94d9e6b8ffea5958983dfc63df7e1dcc3c5feed2 (diff) | |
| download | chouette-core-50d13424c2bdbc5a86ec67560fa296e9142fe652.tar.bz2 | |
Refs #2019: updating ref_stop_areas with table_builder
| -rw-r--r-- | app/views/referential_stop_areas/_stop_areas.html.slim | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/app/views/referential_stop_areas/_stop_areas.html.slim b/app/views/referential_stop_areas/_stop_areas.html.slim index e05bab1bc..a79c86a96 100644 --- a/app/views/referential_stop_areas/_stop_areas.html.slim +++ b/app/views/referential_stop_areas/_stop_areas.html.slim @@ -1,9 +1,7 @@ -.page_info - span.search = t("will_paginate.page_entries_info.search") - = page_entries_info @stop_areas += table_builder @stop_areas, + { 'Object_id' => 'objectid', @stop_areas.human_attribute_name(:name) => 'name', @stop_areas.human_attribute_name(:registration_number) => 'registration_number', @stop_areas.human_attribute_name(:city_name) => 'city_name', @stop_areas.human_attribute_name(:zip_code) => 'zip_code', @stop_areas.human_attribute_name(:lines) => Proc.new { |n| n.lines.count } }, + [:show, :edit, :delete], + 'table table-bordered' -.stop_areas.paginated_content - = paginated_content(@stop_areas) - -.pagination - = will_paginate @stop_areas, :container => false, renderer: RemoteBootstrapPaginationLinkRenderer
\ No newline at end of file +.text-center + = will_paginate @stop_areas, container: false, renderer: RemoteBootstrapPaginationLinkRenderer |
