-
-
Notifications
You must be signed in to change notification settings - Fork 943
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finished changing trac templates to handle upgrade to 0.9pre -- fixes #…
…424 and #358 git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@559 bcc190cf-cafb-0310-a4f2-bffc1f526a37
- Loading branch information
jacob
committed
Aug 26, 2005
1 parent
3067701
commit 72a49ed
Showing
20 changed files
with
1,661 additions
and
1,306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,76 @@ | ||
<?cs set:html.stylesheet = 'css/code.css' ?> | ||
<?cs set:html.stylesheet = 'css/diff.css' ?> | ||
<?cs include "header.cs" ?> | ||
<?cs include "macros.cs" ?> | ||
|
||
<div id="ctxtnav" class="nav"></div> | ||
|
||
<div id="content" class="attachment"> | ||
|
||
<h3>Add Attachment to <a href="<?cs | ||
var:file.attachment_parent_href?>"><?cs var:file.attachment_parent?></a></h3> | ||
<form id="attachment" method="post" enctype="multipart/form-data" action="<?cs | ||
var:cgi_location ?>"> | ||
<?cs if:attachment.mode == 'new' ?> | ||
<h1>Add Attachment to <a href="<?cs var:attachment.parent.href?>"><?cs | ||
var:attachment.parent.name ?></a></h1> | ||
<form id="attachment" method="post" enctype="multipart/form-data" action=""> | ||
<div class="field"> | ||
<label for="file">File:</label> | ||
<input type="file" id="file" name="attachment" /> | ||
<label>File:<br /><input type="file" name="attachment" /></label> | ||
</div> | ||
<fieldset> | ||
<legend>Attachment Info</legend> | ||
<div class="field"> | ||
<label for="author">Your email or username:</label><br /> | ||
<input type="text" id="author" name="author" class="textwidget" size="30" | ||
value="<?cs var:attachment.author?>" /> | ||
<label>Your email or username:<br /> | ||
<input type="text" name="author" size="30" value="<?cs | ||
var:attachment.author?>" /></label> | ||
</div> | ||
<div class="field"> | ||
<label for="description">Description of the file (optional):</label><br /> | ||
<input type="text" id="description" name="description" class="textwidget" | ||
size="60" /> | ||
</div><br /> | ||
<label>Description of the file (optional):<br /> | ||
<input type="text" name="description" size="60" /></label | ||
</div> | ||
<div class="options"> | ||
<label><input type="checkbox" name="replace" checked="checked" /> | ||
Replace existing attachment of the same name</label> | ||
</div> | ||
<br /> | ||
</fieldset> | ||
<div class="buttons"> | ||
<input type="hidden" name="mode" value="attachment" /> | ||
<input type="hidden" name="type" value="<?cs var:attachment.type ?>" /> | ||
<input type="hidden" name="id" value="<?cs var:attachment.id ?>" /> | ||
<input type="submit" value="Add Attachment" /> | ||
<input type="hidden" name="action" value="new" /> | ||
<input type="hidden" name="type" value="<?cs var:attachment.parent.type ?>" /> | ||
<input type="hidden" name="id" value="<?cs var:attachment.parent.id ?>" /> | ||
<input type="submit" value="Add attachment" /> | ||
<input type="submit" name="cancel" value="Cancel" /> | ||
</div> | ||
</form> | ||
<?cs elif:attachment.mode == 'delete' ?> | ||
<h1><a href="<?cs var:attachment.parent.href ?>"><?cs | ||
var:attachment.parent.name ?></a>: <?cs var:attachment.filename ?></h1> | ||
<p><strong>Are you sure you want to delete this attachment?</strong><br /> | ||
This is an irreversible operation.</p> | ||
<div class="buttons"> | ||
<form method="post" action=""><div id="delete"> | ||
<input type="hidden" name="action" value="delete" /> | ||
<input type="submit" name="cancel" value="Cancel" /> | ||
<input type="submit" value="Delete attachment" /> | ||
</div></form> | ||
</div><?cs else ?> | ||
<h1><a href="<?cs var:attachment.parent.href ?>"><?cs | ||
var:attachment.parent.name ?></a>: <?cs var:attachment.filename ?></h1> | ||
<div id="preview"><?cs | ||
if:attachment.preview ?> | ||
<?cs var:attachment.preview ?><?cs | ||
elif:attachment.max_file_size_reached ?> | ||
<strong>HTML preview not available</strong>, since file-size exceeds | ||
<?cs var:attachment.max_file_size ?> bytes. You may <a href="<?cs | ||
var:attachment.raw_href ?>">download the file</a> instead.<?cs | ||
else ?> | ||
<strong>HTML preview not available</strong>. To view the file, | ||
<a href="<?cs var:attachment.raw_href ?>">download the file</a>.<?cs | ||
/if ?> | ||
</div> | ||
<?cs if:attachment.can_delete ?><div class="buttons"> | ||
<form method="get" action=""><div id="delete"> | ||
<input type="hidden" name="action" value="delete" /> | ||
<input type="submit" value="Delete attachment" /> | ||
</div></form> | ||
</div><?cs /if ?> | ||
<?cs /if ?> | ||
|
||
</div> | ||
<?cs include "footer.cs"?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.