Skip to content

Commit

Permalink
fix-task-form-cancel
Browse files Browse the repository at this point in the history
On the task edit page you might also have noticed that Rapid didn't manage to figure out a destination for the cancel link. You can fix that by editing `tasks/edit.dryml` to be:

SHOW_PATCH

This is a good demonstration of DRYML's nested parameter feature. The `<edit-page>` makes it's form available as a parameter, and the form provides a `<cancel:>` parameter. We can drill down from the edit-page to the form and then to the cancel link to pass in a custom attribute. You can do this to any depth.
  • Loading branch information
bryanlarsen committed Nov 14, 2011
1 parent 31d0deb commit 4e22d31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/tasks/edit.dryml
@@ -0,0 +1,5 @@
<edit-page>
<form:>
<cancel: with="&this.story"/>
</form:>
</edit-page>

0 comments on commit 4e22d31

Please sign in to comment.