Blame Extras/Trac/templates/attachment.cs

4c79b5
4c79b5
4c79b5
4c79b5
4c79b5
4c79b5
4c79b5
4c79b5
4c79b5
 

Add Attachment to

4c79b5
   var:attachment.parent.name ?>
4c79b5
 <form id="attachment" method="post" enctype="multipart/form-data" action="">
4c79b5
  
4c79b5
   <label>File:
<input type="file" name="attachment" /></label>
4c79b5
  
4c79b5
  <fieldset>
4c79b5
   <legend>Attachment Info</legend>
4c79b5
   
4c79b5
    
4c79b5
     <label>Your email or username:
4c79b5
     
4c79b5
       var:attachment.author?>" /></label>
4c79b5
    
4c79b5
   
4c79b5
   
4c79b5
    <label>Description of the file (optional):
4c79b5
    <input type="text" name="description" size="60" /></label>
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
    <label><input type="checkbox" name="replace" />
4c79b5
    Replace existing attachment of the same name</label>
4c79b5
   
4c79b5
   
4c79b5
  </fieldset>
4c79b5
  
4c79b5
   <input type="hidden" name="action" value="new" />
4c79b5
   <input type="hidden" name="type" value="<?cs var:attachment.parent.type ?>" />
4c79b5
   <input type="hidden" name="id" value="<?cs var:attachment.parent.id ?>" />
4c79b5
   <input type="submit" value="Add attachment" />
4c79b5
   <input type="submit" name="cancel" value="Cancel" />
4c79b5
  
4c79b5
 </form>
4c79b5
4c79b5
 

4c79b5
   var:attachment.parent.name ?>: 
4c79b5
 

Are you sure you want to delete this attachment?

4c79b5
 This is an irreversible operation.

4c79b5
 
4c79b5
  <form method="post" action="">
4c79b5
   <input type="hidden" name="action" value="delete" />
4c79b5
   <input type="submit" name="cancel" value="Cancel" />
4c79b5
   <input type="submit" value="Delete attachment" />
4c79b5
  </form>
4c79b5
 
4c79b5
4c79b5
 

4c79b5
   var:attachment.parent.name ?>
4c79b5
  call:list_of_attachments(attachment.list, attachment.attach_href) ?>
4c79b5
4c79b5
 

4c79b5
   var:attachment.parent.name ?>: 
4c79b5
 
4c79b5
   
4c79b5
    File ,  
4c79b5
    (added by ,   ago)
4c79b5
   
4c79b5
   
4c79b5
  
4c79b5
 
4c79b5
 
4c79b5
  if:attachment.preview ?>
4c79b5
   
4c79b5
  elif:attachment.max_file_size_reached ?>
4c79b5
   HTML preview not available, since the file size exceeds
4c79b5
    bytes. You may 
4c79b5
     var:attachment.raw_href ?>">download the file instead.
4c79b5
  else ?>
4c79b5
   HTML preview not available. To view the file,
4c79b5
   download the file.
4c79b5
  /if ?>
4c79b5
 
4c79b5
 
4c79b5
  <form method="get" action="">
4c79b5
   <input type="hidden" name="action" value="delete" />
4c79b5
   <input type="submit" value="Delete attachment" />
4c79b5
  </form>
4c79b5
 
4c79b5
4c79b5
4c79b5
4c79b5