Velocipede's User, Sales, and Bike Inventory Web App
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.

40 lines
841 B

8 years ago
- btn = if @show_add_bike
- capture do
= link_to 'Add Another Bike?', new_bike_path, class: 'btn btn-default'
8 years ago
= top_menu link_to_dashboard, btn
8 years ago
%h1 #{@bike.shop_id}: #{@bike.bike_brand}
%h4= @bike.model
%dl.dl-horizontal
%dt Type
8 years ago
%dd= @bike.bike_style
%dt Wheel Size
8 years ago
%dd= @bike.bike_wheel_size.display_string
%dt Condition
8 years ago
%dd= @bike.bike_condition
%dt Seat Tube (cm)
8 years ago
%dd= @bike.seat_tube_height
%dt Purpose
8 years ago
%dd= @bike.bike_purpose
- unless @bike.value.nil?
%dt Value
8 years ago
%dd= @bike.value
- unless @bike.color.nil?
%dt Color
8 years ago
%dd
8 years ago
.bike-color(style="background-color: ##{@bike.color}")= @bike.color
8 years ago
- if @task_list
- tasks = @task_list.tasks.to_a
%dt Task list
%dd
= link_to edit_task_list_path(@task_list.id) do
#{tasks.select(&:done).count}/#{tasks.count}