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