Skip to content

Instantly share code, notes, and snippets.

@jackfruh
Created August 24, 2014 20:17
Show Gist options
  • Save jackfruh/6fef89c0cd3f4761ddc7 to your computer and use it in GitHub Desktop.
Save jackfruh/6fef89c0cd3f4761ddc7 to your computer and use it in GitHub Desktop.
This is the edit view \View\Excels\edit.ctp
<div class="excels form">
<?php echo $this->Form->create('Excel');
$this->Form->inputDefaults(array('rows' => '1') );?>
<fieldset>
<legend><?php echo __('Edit Session'); ?></legend>
<?php
echo $this->Form->hidden('ID', array('hidden'));
echo $this->Form->input('FirstName'); //, array('div' => array('style' => 'display:inline')));
echo $this->Form->input('LastName');//, array('div' => array('style' => 'display:inline')));
//echo $this->Form->input('SpeakerStatus');
echo $this->Form->input('Phone');
echo $this->Form->input('Email', array('label' => 'Email address'));
echo $this->Form->input('SessionTitle');
$options = array('' => 'rejected', '1' => 'Approved');
$this->Form->inputDefaults('');
echo $this->Form->input('SessionStatus', array('type'=>'select', 'options'=> $options ));
$this->Form->inputDefaults(array('rows' => '1') );
echo $this->Form->input('MVP');
echo $this->Form->input('Contacted');
echo $this->Form->input('SessionTimeSlot');
echo $this->Form->input('RoomNumber');
echo $this->Form->input('Blog');
echo $this->Form->input('Twitter');
echo $this->Form->input('SessionAbstract', array('rows'=>'7'));
echo $this->Form->input('Bio', array('rows'=>'7'));
echo $this->Form->input('Headshot');
echo $this->Form->input('ext1');
echo $this->Form->input('ext2');
?>
</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
<div class="actions">
<h3><?php echo __('Actions'); ?></h3>
<ul>
<li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Excel.ID')), null, __('Are you sure you want to delete # %s?', $this->Form->value('Excel.ID'))); ?></li>
<li><?php echo $this->Html->link(__('List Sessions'), array('action' => 'index')); ?></li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment