git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@494 97e9348a-65ac-dc4b-aefc-98561f571b83
28 lines
767 B
PHP
28 lines
767 B
PHP
<?php /* -*- mode:PHP -*- */
|
|
|
|
echo '<div class="unit edit">' . "\n";
|
|
|
|
echo $form->create('Unit', array('action' => 'edit')) . "\n";
|
|
echo $form->input('id') . "\n";
|
|
|
|
echo($this->element
|
|
('form_table',
|
|
array('class' => 'item unit detail',
|
|
'caption' => isset($this->data['Unit']) ? 'Edit Unit' : 'New Unit',
|
|
'fields' => array
|
|
('name' => true,
|
|
'unit_size_id' => true,
|
|
'status' => array('opts' =>
|
|
array('options' => $statusEnums,
|
|
),
|
|
),
|
|
'deposit' => true,
|
|
'rent' => true,
|
|
'comment' => true,
|
|
))) . "\n");
|
|
|
|
echo $form->submit('Update') . "\n";
|
|
echo $form->submit('Cancel', array('name' => 'cancel')) . "\n";
|
|
echo $form->end() . "\n";
|
|
echo '</div>' . "\n";
|