/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
- <?xml version='1.0' ?>
- <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
- <t:title>Edit: <t:label t:name="title" /></t:title>
- <div class="post-form">
- <t:form t:action="$blogs/edit-post" t:for="id">
- <p>Title: <t:field t:name="title" t:size="60" /></p>
- <p><t:textarea t:name="content" t:rows="30" t:cols="80" /></p>
- <input type="SUBMIT" value="Done" />
- </t:form>
- </div>
- <div class="posting-footer">
- Post by
- <t:a t:href="$blogs/by" t:rest="author">
- <t:label t:name="author" />
- </t:a>
- on
- <t:label t:name="date" />
- |
- <t:a t:href="$blogs/post" t:rest="id">View Post</t:a>
- |
- <t:button t:action="$blogs/delete-post" t:for="id,author" class="link-button link">Delete Post</t:button>
- </div>
- </t:chloe>