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.
16 lines
563 B
16 lines
563 B
= link_to_dashboard
|
|
|
|
%h2 Task List
|
|
%h3
|
|
%a{ href: bike_path(@task_list.item)}#{@task_list.item.shop_id} #{@task_list.item.bike_brand}
|
|
%h4 #{@task_list.item.model}
|
|
|
|
%p
|
|
.control-group
|
|
- @task_list.tasks.each do |task|
|
|
.controls
|
|
%input{class: "task_list_task", type: "checkbox", "data-id" => task.id, checked: task.done}
|
|
#{task.task}
|
|
.control-group
|
|
.controls
|
|
%input{id: "update_tasks_submit", value: "Save Changes", type: "button", class: "btn btn-lg btn-block btn-primary disabled", "data-url" => "#{api_update_task_path}"}
|
|
|