</tr> <?php $workflowList = Workflow::getList(); ?> <tr id="workflow-row"> <td class="label" width="20%"><?php echo $model->getAttributeLabel('status'); ?> </td> <td id="status" onclick="showField(this,true);"> <div class="detail-field"><?php echo Yii::t('quotes', $model->status); ?> </div> <div class="detail-form"><?php echo $form->dropDownList($model, 'status', Quote::statusList()); ?> </div> </td> <td class="label"><?php echo Yii::t('workflow', 'Workflow'); ?> </td> <td colspan="3" id="workflow"> <div class="detail-field" style="width:170px; text-align:center;margin-bottom:5px;" onclick="showField($('#workflow').get(),false);"><?php echo $workflowList[$currentWorkflow]; ?> </div> <div class="detail-form" style="width:170px; text-align:center;margin-bottom:5px;"> <?php echo CHtml::dropDownList('workflowId', $currentWorkflow, $workflowList, array('ajax' => array('type' => 'GET', 'url' => CHtml::normalizeUrl(array('workflow/getWorkflow', 'modelId' => $model->id, 'type' => 'quotes')), 'update' => '#workflow-diagram')));
echo Yii::t('quotes', 'Status'); ?> </th> </tr> <tr> <td><?php echo $quote->createdBy; ?> </td> <td><?php echo $quote->updatedBy; ?> </td> <td> <?php echo $form->dropDownList($quote, 'status', Quote::statusList()); ?> <?php echo $form->error($quote, 'status'); ?> <span style="padding-left: 5px;"> <?php echo Yii::t('quotes', $attributeLabel['locked']); ?> <?php echo $form->checkBox($quote, 'locked', array('id' => "quote-{$quote->id}-locked")); ?> </span> </td> <td>