Guest User

Ticket view's add CTP file

a guest
Oct 3rd, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.98 KB | None | 0 0
  1. <div class="tickets form">
  2. <?php echo $this->Form->create('Ticket', array('type' => 'file')); ?>
  3.     <fieldset>
  4.         <legend><?php echo __('Add Ticket'); ?></legend>
  5.     <?php
  6.         echo $this->Form->input('Ticket.title');
  7.         echo $this->Form->input('TicketResponse.0.content');
  8.         echo $this->Form->input('TicketResponse.0.TicketAttachment.0.filename', array('type' => 'file'));
  9.         echo $this->Form->input('TicketResponse.0.TicketAttachment.0.location', array('type' => 'hidden'));
  10.     ?>
  11.     </fieldset>
  12. <?php echo $this->Form->end(__('Submit')); ?>
  13. </div>
  14. <div class="actions">
  15.     <h3><?php echo __('Actions'); ?></h3>
  16.     <ul>
  17.  
  18.         <li><?php echo $this->Html->link(__('List Tickets'), array('action' => 'index')); ?></li>
  19.         <li><?php echo $this->Html->link(__('List Ticket Responses'), array('controller' => 'ticket_responses', 'action' => 'index')); ?> </li>
  20.         <li><?php echo $this->Html->link(__('New Ticket Response'), array('controller' => 'ticket_responses', 'action' => 'add')); ?> </li>
  21.     </ul>
  22. </div>
Advertisement
Add Comment
Please, Sign In to add comment