Blame Identity/Models/Html/Trac/templates/attachment.cs

d6e8d8
d6e8d8
d6e8d8
d6e8d8
d6e8d8
d6e8d8
d6e8d8
d6e8d8
d6e8d8
 

Add Attachment to

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

d6e8d8
   var:attachment.parent.name ?>: 
d6e8d8
 

Are you sure you want to delete this attachment?

d6e8d8
 This is an irreversible operation.

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

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

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