<div class="attachments form">
<?php echo $form->create('Attachment', array('type'=>'file'));?>
	<fieldset>
 		<legend><?php __('Edit Attachment');?></legend>
	<?php
		echo $form->input('id');
		echo $form->input('principle_id');
		echo $form->input('name');
?>
		<div class="input text">
			<label>Filename</label>
			<?php echo $this->data['Attachment']['filename']; ?>
		</div>
	
		<?php echo $form->file('file'); ?>
		
<?php 
		echo $form->input('description');
		echo $form->input('archived');
	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('Attachment.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Attachment.id'))); ?></li>
		<li><?php echo $html->link(__('List Attachments', true), array('action' => 'index'));?></li>
	</ul>
</div>
