public
anonymous / task.slim
Created

task.slim

  • Download Gist
task.slim
1 2 3 4 5 6 7 8 9 10 11
li.task id=task.id
= task.name
form.update action="/task/#{task.id}" method="POST"
input type="hidden" name="_method" value="PUT"
-if task.completed_at.nil?
input type="submit" value=" " title="Complete Task"
-else
input type="submit" value="✓" title="Uncomplete Task"
form.delete action="/task/#{task.id}" method="POST"
input type="hidden" name="_method" value="DELETE"
input type="submit" value="×" title="Delete Task"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.