mirror of https://github.com/fspc/BikeShed-1.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.9 KiB
42 lines
1.9 KiB
12 years ago
|
- model_class = Bike.new.class
|
||
|
.page-header
|
||
|
%h1=t '.title', :default => model_class.model_name.human.pluralize
|
||
|
%table.table.table-striped
|
||
|
%thead
|
||
|
%tr
|
||
|
%th= model_class.human_attribute_name(:id)
|
||
|
%th= model_class.human_attribute_name(:serial_number)
|
||
|
%th= model_class.human_attribute_name(:bike_brand_id)
|
||
|
%th= model_class.human_attribute_name(:bike_model_id)
|
||
|
%th= model_class.human_attribute_name(:color)
|
||
|
%th= model_class.human_attribute_name(:bike_style_id)
|
||
|
%th= model_class.human_attribute_name(:seat_tube_height)
|
||
|
%th= model_class.human_attribute_name(:top_tube_length)
|
||
|
%th= model_class.human_attribute_name(:wheel_size)
|
||
|
%th= model_class.human_attribute_name(:value)
|
||
|
%th= model_class.human_attribute_name(:bike_condition_id)
|
||
|
%th= model_class.human_attribute_name(:bike_status_id)
|
||
|
%th= model_class.human_attribute_name(:created_at)
|
||
|
%th=t '.actions', :default => t("helpers.actions")
|
||
|
%tbody
|
||
|
- bikes.each do |bike|
|
||
|
%tr
|
||
|
%td= link_to bike.id, bike_path(bike)
|
||
|
%td= link_to bike.serial_number, bike_path(bike)
|
||
|
%td= bike.brand
|
||
|
%td= bike.model
|
||
|
%td= bike.color
|
||
|
%td= bike.style
|
||
|
%td= bike.seat_tube_height
|
||
|
%td= bike.top_tube_length
|
||
|
%td= bike.wheel_size
|
||
|
%td= bike.value
|
||
|
%td= bike.condition
|
||
|
%td= bike.status
|
||
|
%td= bike.created_at
|
||
|
%td
|
||
|
= link_to t('.edit', :default => t("helpers.links.edit")), edit_bike_path(bike), :class => 'btn btn-mini'
|
||
|
= link_to t('.destroy', :default => t("helpers.links.destroy")), bike_path(bike), :method => :delete, :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')), :class => 'btn btn-mini btn-danger'
|
||
|
= will_paginate bikes
|
||
|
= link_to t('.new', :default => t("helpers.links.new")), new_bike_path, :class => 'btn btn-primary'
|