Source

trac-ticketlinks / templates / attachment.cs

Full commit
<?cs include "header.cs" ?>
<?cs include "macros.cs" ?>

<div id="page-content">
<h3>Add Attachment to 
<a href="<?cs var:file.attachment_parent_href?>"><?cs var:file.attachment_parent?></a></h3>

<div id="main">
  <div id="main-content">
  <fieldset>
  <form action="<?cs var:cgi_location ?>" method="post" 
        enctype="multipart/form-data">

   <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 ?>" />
  <div style="align: right">
   <label for="author" class="att-label">Author:</label>
   <input type="text" id="author" name="author" class="textwidget" size="40"
       value="<?cs var:trac.authname?>" />
   <br />
   <label for="description" class="att-label">Description:</label>
   <input type="text" id="description" name="description" class="textwidget"
       size="40" />
   <br />
   <label for="file" class="att-label">File:</label>
   <input type="file" id="file" name="attachment" />
   <br />
   <br />
   <input type="reset" value="Reset" />
   <input type="submit" value="Add" />
  </div>
  </form>
  </fieldset>
 </div>
</div>
</div>
<?cs include:"footer.cs"?>