PageRenderTime 49ms CodeModel.GetById 46ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 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>