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.

25 lines
641 B

= top_menu
%h1 Task List
%h3
= link_to bike_path(@task_list.item) do
#{@task_list.item.shop_id}: #{@task_list.item.bike_brand}
8 years ago
%h4= @task_list.item.model
- if @task_list.item.photo?
%p
%img{src: @task_list.item.photo.url(:thumb), class: 'img-thumbnail'}
%fieldset
.form-group
- @task_list.tasks.each do |task|
.checkbox
%label
= check_box_tag nil, nil, task.done, class: 'task_list_task', type: 'checkbox', data: {id: task.id}
= task.task
.form-group
= button_tag 'Save Changes', id: 'update_tasks_submit', class: 'btn btn-primary disabled', data: {url: api_update_task_path}