Blame Artworks/Webenv/Trac/0.10.4/Modern/templates/attachment.cs

Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
 

Add Attachment to

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

Alain Reguera Delgado 46de3c
   var:attachment.parent.name ?>: 
Alain Reguera Delgado 46de3c
 

Are you sure you want to delete this attachment?

Alain Reguera Delgado 46de3c
 This is an irreversible operation.

Alain Reguera Delgado 46de3c
 
Alain Reguera Delgado 46de3c
  <form method="post" action="">
Alain Reguera Delgado 46de3c
   <input type="hidden" name="action" value="delete" />
Alain Reguera Delgado 46de3c
   <input type="submit" name="cancel" value="Cancel" />
Alain Reguera Delgado 46de3c
   <input type="submit" value="Delete attachment" />
Alain Reguera Delgado 46de3c
  </form>
Alain Reguera Delgado 46de3c
 
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
 

Alain Reguera Delgado 46de3c
   var:attachment.parent.name ?>
Alain Reguera Delgado 46de3c
  call:list_of_attachments(attachment.list, attachment.attach_href) ?>
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
 

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