PageRenderTime 195ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/extra/webapps/pastebin/paste.xml

http://github.com/abeaumont/factor
XML | 59 lines | 39 code | 20 blank | 0 comment | 0 complexity | 3449639a27a7f59ca2ddef322a248860 MD5 | raw file
 1<?xml version='1.0' ?>
 2
 3<t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
 4
 5	<t:atom t:href="$pastebin/paste.atom" t:query="id">
 6		Paste: <t:label t:name="summary" />
 7	</t:atom>
 8
 9	<t:title>Paste: <t:label t:name="summary" /></t:title>
10
11	<table>
12		<tr><th class="field-label">Author: </th><td><t:label t:name="author" /></td></tr>
13		<tr><th class="field-label">Mode: </th><td><t:label t:name="mode" /></td></tr>
14		<tr><th class="field-label">Date: </th><td><t:label t:name="date" /></td></tr>
15	</table>
16
17	<t:a t:href="$pastebin/paste.txt" t:query="id">Plain Text</t:a> |
18	<t:button t:action="$pastebin/delete-paste" t:for="id" class="link-button link">Delete Paste</t:button>
19
20	<pre class="description"><t:code t:name="contents" t:mode="mode" /></pre>
21
22	<t:bind-each t:name="annotations">
23
24		<h2><a name="@id">Annotation: <t:label t:name="summary" /></a></h2>
25
26		<table>
27			<tr><th class="field-label">Author: </th><td><t:label t:name="author" /></td></tr>
28			<tr><th class="field-label">Mode: </th><td><t:label t:name="mode" /></td></tr>
29			<tr><th class="field-label">Date: </th><td><t:label t:name="date" /></td></tr>
30		</table>
31
32		<t:a t:href="$pastebin/annotation.txt" t:query="id">Plain Text</t:a> |
33		<t:button t:action="$pastebin/delete-annotation" t:for="id" class="link-button link">Delete Annotation</t:button>
34
35		<pre class="description"><t:code t:name="contents" t:mode="mode"/></pre>
36
37	</t:bind-each>
38
39	<t:bind t:name="new-annotation">
40
41		<h2>New Annotation</h2>
42
43		<t:form t:action="$pastebin/new-annotation" t:for="parent">
44
45			<table>
46				<tr><th class="field-label">Summary: </th><td><t:field t:name="summary" /></td></tr>
47				<tr><th class="field-label">Author: </th><td><t:field t:name="author" /></td></tr>
48				<tr><th class="field-label">Mode: </th><td><t:choice t:name="mode" t:choices="modes" /></td></tr>
49				<tr><th class="field-label big-field-label">Body: </th><td><t:textarea t:name="contents" t:rows="20" t:cols="60" /></td></tr>
50				<tr><td colspan="2"><t:recaptcha /></td></tr>
51			</table>
52
53			<p> <button type="submit">Done</button> </p>
54
55		</t:form>
56
57	</t:bind>
58
59</t:chloe>