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.

39 lines
1.6 KiB

%h2 Add Bike
%p
%p
%input{id: "bike_shop_id", placeholder: "Shop ID", type: "number", min:0, class: "input-lg" }
%p
= select_tag(:bike_brand_id, options_for_select(@brands))
%p
%input{id: "bike_model", placeholder: "Model", type: "text", class: "input-lg" }
%p
.btn-group{ "data-toggle" => "buttons-radio"}
%label{ class: "btn btn-default"}
%input{ type: "radio", name: "options"} RD
%label{ class: "btn btn-default"}
%input{ type: "radio", name: "options"} MTN
%label{ class: "btn btn-default"}
%input{ type: "radio", name: "options"} HYB
%label{ class: "btn btn-default"}
%input{ type: "radio", name: "options"} OTHER
%p
= select_tag(:bike_wheel_size, options_for_select(@wheel_sizes))
%p
.btn-group{ "data-toggle" => "buttons-radio"}
%label{ class: "btn btn-default"}
%input{ type: "radio", name: "options"} Poor
%label{ class: "btn btn-default"}
%input{ type: "radio", name: "options"} Fair
%label{ class: "btn btn-default"}
%input{ type: "radio", name: "options"} Good
%label{ class: "btn btn-default"}
%input{ type: "radio", name: "options"} Excellent
%p
%input{id: "bike_seat_tube", placeholder: "Seat Tube (cm)", type: "number", min: 0, max: 100, class: "input-lg" }
%p
%input{id: "bike_description", placeholder: "Short description", type: "text", class: "input-lg" }
%p
%input{id: "index_logout", value: "Add Bike", type: "button", class: "btn btn-lg btn-block btn-primary", "data-url" => "api_add_bike_path"}