Created
May 3, 2012 18:33
-
-
Save anonymous/2587957 to your computer and use it in GitHub Desktop.
task.slim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment