/extra/webapps/blogs/edit-post.xml

http://github.com/abeaumont/factor · XML · 29 lines · 23 code · 6 blank · 0 comment · 0 complexity · 3e3e5ccaafff930080f03601970b1dc6 MD5 · raw file

  1. <?xml version='1.0' ?>
  2. <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
  3. <t:title>Edit: <t:label t:name="title" /></t:title>
  4. <div class="post-form">
  5. <t:form t:action="$blogs/edit-post" t:for="id">
  6. <p>Title: <t:field t:name="title" t:size="60" /></p>
  7. <p><t:textarea t:name="content" t:rows="30" t:cols="80" /></p>
  8. <input type="SUBMIT" value="Done" />
  9. </t:form>
  10. </div>
  11. <div class="posting-footer">
  12. Post by
  13. <t:a t:href="$blogs/by" t:rest="author">
  14. <t:label t:name="author" />
  15. </t:a>
  16. on
  17. <t:label t:name="date" />
  18. |
  19. <t:a t:href="$blogs/post" t:rest="id">View Post</t:a>
  20. |
  21. <t:button t:action="$blogs/delete-post" t:for="id,author" class="link-button link">Delete Post</t:button>
  22. </div>
  23. </t:chloe>