mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 08:43:23 -05:00
BS3: edit task list.
This commit is contained in:
parent
462cf8b5d5
commit
c58c039e3c
@ -1,16 +1,20 @@
|
|||||||
= link_to_dashboard
|
= link_to_dashboard
|
||||||
|
|
||||||
%h2 Task List
|
%h1 Task List
|
||||||
|
|
||||||
%h3
|
%h3
|
||||||
%a{ href: bike_path(@task_list.item)}#{@task_list.item.shop_id} #{@task_list.item.bike_brand}
|
= link_to bike_path(@task_list.item) do
|
||||||
|
#{@task_list.item.shop_id}: #{@task_list.item.bike_brand}
|
||||||
|
|
||||||
%h4 #{@task_list.item.model}
|
%h4 #{@task_list.item.model}
|
||||||
|
|
||||||
%p
|
%fieldset
|
||||||
.control-group
|
.form-group
|
||||||
- @task_list.tasks.each do |task|
|
- @task_list.tasks.each do |task|
|
||||||
.controls
|
.checkbox
|
||||||
%input{class: "task_list_task", type: "checkbox", "data-id" => task.id, checked: task.done}
|
%label
|
||||||
#{task.task}
|
= check_box_tag '', '', task.done, class: 'task_list_task', type: 'checkbox', "data-id": task.id
|
||||||
.control-group
|
= task.task
|
||||||
.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}"}
|
.form-group
|
||||||
|
= button_tag 'Save Changes', id: 'update_tasks_submit', class: 'btn btn-primary disabled', "data-url": "#{api_update_task_path}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user