Skip to content

Commit

Permalink
story-status-ajaxified
Browse files Browse the repository at this point in the history
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 Aug 12, 2013
1 parent 62c5cf7 commit a2b7deb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 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.