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.
10 lines
364 B
10 lines
364 B
%li.list
|
|
%h2= list.name
|
|
%form.new(action="/#{list.id}" method="POST")
|
|
%input(type="text" name="task[name]")
|
|
%ul.tasks
|
|
- list.tasks.each do |task|
|
|
= render(:haml, :task, locals: { task: task })
|
|
%form.destroy(action="/list/#{list.id}" method="POST")
|
|
%input(type="hidden" name="_method" value="DELETE")
|
|
%input(type="submit" value="✗")
|