<?php
/* @var $this HrdReportDutyLetterController */
/* @var $model HrdReportDutyLetter */
/* @var $form CActiveForm */
?>

<?php $this->beginWidget('ext.coolfieldset.JCollapsibleFieldset', array(
        'legend'=>'Detail Information of Duty Letter Request',
		'collapsed'=>false,
));?>
<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$dutyLetterRequest,
        'attributes'=>array(
                'rdl_id',
		array(
                    'name'=>'person_in_charge',
                    'value'=>implode(', ',$dutyLetterRequest->person_in_charge),
                ),
                array(
                       'name'=>'requester_id',
                       'value'=>$dutyLetterRequest->requester->name,
                ),
		'duty_category',
		'duty_concerning',
		'duty_location',
		'contactable_information',
		'depart_date',
		'return_date',
		'starting_date',
		'finishing_date',
                array(
                       'name'=>'status_id',
                       'value'=>$dutyLetterRequest->status->status,
                ),
		'request_date',
	),
)); ?>
<?php $this->endWidget(); ?><!-- collabsible fieldset -->

<?php echo '<BR><BR>' ?>

<?php $this->beginWidget('ext.coolfieldset.JCollapsibleFieldset', array(
        'legend'=>'Detail Information of Duty Letter',
		'collapsed'=>false,
));?>
<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$dutyLetter,
	'attributes'=>array(
		//'duty_letter_id',
		'request_id',
		'duty_letter_number',
		'duty_letter_date',
		array(
                   'name'=>'signed_by',
                   'value'=>$dutyLetter->employee->name,
                ),
		'depart_transport',
		'return_transport',
		'route_journey',
		'hostelry',
		'sppd_duration',
		array(
                       'name'=>'status_id',
                       'value'=>$dutyLetter->status->status,
                ),
		'task_shifting',
	),
)); ?>
<?php $this->endWidget(); ?><!-- collabsible fieldset -->

<?php echo '<BR><BR>' ?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'hrd-report-duty-letter-form',
	'enableAjaxValidation'=>false,
        'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>
        
	<?php echo $form->errorSummary($model); ?>
        
        
        
        <table width="100%">
            <tr>
                <td class="row">
                    <?php echo $form->labelEx($model, 'file_report');?>
                </td>
                <td class="row">
                    <?php echo ":"; ?>
                </td>
                <td>
                    <?php echo $form->fileField($model, 'file_report'); ?>
                </td>
            </tr>
        </table>
        
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Submit Report' : 'Update Report'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->