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