Permalink
Browse files

fix-task-form-cancel

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 authored and iox committed Jun 3, 2013
1 parent 2b6917e commit 48d4a2d878b2077d6066198403f4b4641808f68f
Showing with 5 additions and 0 deletions.
  1. +5 −0 app/views/tasks/edit.dryml
@@ -0,0 +1,5 @@
<edit-page>
<form:>
<cancel: with="&this.story"/>
</form:>
</edit-page>

0 comments on commit 48d4a2d

Please sign in to comment.