admin_edit.ctp 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <div class="page form">
  2. <h2><?php echo __('Edit %s', __('Qurl')); ?></h2>
  3. <?php echo $this->Form->create('Qurl');?>
  4. <fieldset>
  5. <legend><?php echo __('Edit %s', __('Qurl')); ?></legend>
  6. <?php
  7. echo $this->Form->input('id');
  8. echo $this->Form->input('url');
  9. echo $this->Form->input('title');
  10. echo $this->Form->input('note', ['type' => 'textarea']);
  11. echo $this->Form->input('active');
  12. ?>
  13. </fieldset>
  14. <fieldset>
  15. <legend><?php echo __('Internal details')?></legend>
  16. <?php
  17. echo $this->Form->input('comment', ['type' => 'textarea']);
  18. echo $this->Form->input('used');
  19. echo $this->Form->input('last_used', ['empty' => '- -', 'dateFormat' => 'DMY', 'timeFormat' => 24]);
  20. ?>
  21. </fieldset>
  22. <?php echo $this->Form->submit(__('Submit')); echo $this->Form->end();?>
  23. </div>
  24. <div class="actions">
  25. <ul>
  26. <li><?php echo $this->Form->postLink(__('Delete'), ['action' => 'delete', $this->Form->value('Qurl.id')], ['confirm' => __('Are you sure you want to delete # %s?', $this->Form->value('Qurl.id'))]); ?></li>
  27. <li><?php echo $this->Html->link(__('List %s', __('Qurls')), ['action' => 'index']);?></li>
  28. </ul>
  29. </div>