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.
 
 
 
 
 
 

42 lines
970 B

- btn = if @show_add_bike
- capture do
= link_to 'Add Another Bike?', new_bike_path, class: 'btn btn-default navbar-btn hidden-xs'
= link_to new_bike_path, class: 'navbar-brand visible-xs', title: 'Add Another Bike?' do
%i.glyphicon.glyphicon-plus
= top_menu btn
%h1 #{@bike.shop_id}: #{@bike.bike_brand}
%h4= @bike.model
%dl.dl-horizontal
%dt Type
%dd= @bike.bike_style
%dt Wheel Size
%dd= @bike.bike_wheel_size.display_string
%dt Condition
%dd= @bike.bike_condition
%dt Seat Tube (cm)
%dd= @bike.seat_tube_height
%dt Purpose
%dd= @bike.bike_purpose
- unless @bike.value.nil?
%dt Value
%dd= @bike.value
- unless @bike.color.nil?
%dt Color
%dd
.bike-color(style="background-color: ##{@bike.color}")= @bike.color
- 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}