annotate examples/trac/templates/attachment_new.html @ 60:2cb5b54d87ff trunk

Migrate attachment templates to Markup.
author cmlenz
date Wed, 05 Jul 2006 21:32:27 +0000
parents
children 448792ab1303
rev   line source
60
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
1 <!DOCTYPE html
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
4 <html xmlns="http://www.w3.org/1999/xhtml"
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
5 xmlns:py="http://purl.org/kid/ns#"
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
6 xmlns:xi="http://www.w3.org/2001/XInclude">
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
7 <xi:include href="layout.html"><xi:fallback/></xi:include>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
8 <head>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
9 <title>Add Attachment to ${attachment.parent_id}</title>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
10 </head>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
11
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
12 <body>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
13 <div id="ctxtnav" class="nav"></div>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
14
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
15 <div id="content" class="attachment">
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
16 <h1>Add Attachment to <a href="${attachment.parent_href(req)}"
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
17 py:content="attachment.parent_id"/></h1>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
18 <form id="attachment" method="post" enctype="multipart/form-data" action="">
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
19 <div class="field">
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
20 <label>File:<br /><input type="file" name="attachment" /></label>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
21 </div>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
22 <fieldset>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
23 <legend>Attachment Info</legend>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
24 <div class="field" py:if="req.authname == 'anonymous'">
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
25 <label>Your email or username:<br />
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
26 <input type="text" name="author" size="30"
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
27 value="${author}" />
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
28 </label>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
29 </div>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
30 <div class="field">
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
31 <label>Description of the file (optional):<br />
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
32 <input type="text" name="description" size="60" /></label>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
33 </div><br />
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
34 <div class="options">
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
35 <label><input type="checkbox" name="replace" />
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
36 Replace existing attachment of the same name
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
37 </label>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
38 </div><br />
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
39 </fieldset>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
40 <div class="buttons">
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
41 <input type="hidden" name="action" value="new" />
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
42 <input type="hidden" name="type" value="${attachment.parent_type}" />
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
43 <input type="hidden" name="id" value="${attachment.parent_id}" />
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
44 <input type="submit" value="Add attachment" />
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
45 <input type="submit" name="cancel" value="Cancel" />
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
46 </div>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
47 </form>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
48 </div>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
49
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
50 </body>
2cb5b54d87ff Migrate attachment templates to Markup.
cmlenz
parents:
diff changeset
51 </html>
Copyright (C) 2012-2017 Edgewall Software