cmc-sales/php/app/views/attachments/edit.ctp

30 lines
910 B
Plaintext
Raw Permalink Normal View History

2012-11-18 12:19:55 -08:00
<div class="attachments form">
<?php echo $form->create('Attachment', array('type'=>'file'));?>
2012-11-18 12:19:55 -08:00
<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
2012-11-18 12:19:55 -08:00
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>