Permalink
Browse files

story-status-ajaxified

Now there is a status selector on the 'story/edit' page. It would be nice though if we had an ajaxified editor right on the story 'show' page. Edit `app/views/stories/show.dryml` to be:

SHOW_PATCH

What did that do? `<show-page>` uses a tag `<field-list>` to render a table of fields. DRYML's parameter mechanism allows the caller to customize the parameters that are passed to `<field-list>`. On our story page the field-list contains only the status field. By default `<field-list>` uses the `<view>` tag to render read-only views of the fields, but that can be changed by passing a tag name to the `tag` attribute. We're passing `editor` which is a tag for creating ajax-style in-place editors.
  • Loading branch information...
bryanlarsen authored and iox committed Jun 3, 2013
1 parent 62c5cf7 commit a2b7deb2fdf654de64ff54449db11ee1e4e98c31
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/views/stories/show.dryml
@@ -0,0 +1,3 @@
+<show-page>
+ <field-list: tag="editor"/>
+</show-page>

0 comments on commit a2b7deb

Please sign in to comment.