<div class="row"> <?php echo $form->label($model, 'related_case'); ?> <?php echo $form->textField($model, 'related_case', array('class' => 'info_input', 'maxlength' => 255)); ?> </div> <div class="row"> <?php echo $form->label($model, 'related_result'); ?> <?php echo InfoService::getRelatedIdHtml('result', $model->related_result); ?> </div> </fieldset> <fieldset> <legend> <?php echo Yii::t('Common', 'Attachments') . '(' . TestFileService::getFileSize(CommonService::getMaxFileSize()) . ')'; ?> </legend> <?php echo $model->attachment_file; ?> <?php $this->widget('CMultiFileUpload', array('model' => $model, 'name' => 'attachment_file', 'accept' => '', 'htmlOptions' => array('size' => 16), 'remove' => '<img src="' . Yii::app()->theme->baseUrl . '/assets/images/deletefile.gif" alt="remove" />', 'options' => array()));
echo empty($customfield['result_related']) ? '' : $customfield['result_related']; ?> <div class="row"> <?php echo $form->label($model, 'related_case_id'); ?> <?php echo InfoService::getRelatedIdHtml('case', $model->related_case_id); ?> </div> <div class="row"> <?php echo $form->label($model, 'related_bug'); ?> <?php echo InfoService::getRelatedIdHtml('bug', $model->related_bug); ?> </div> </fieldset> <fieldset> <legend><?php echo Yii::t('Common', 'Attachments'); ?> </legend> <?php echo $model->attachment_file; ?> </fieldset> </div> </div>
<?php echo empty($customfield['bug_related']) ? '' : $customfield['bug_related']; ?> <div class="row"> <?php echo $form->labelEx($model, 'related_bug'); ?> <?php echo InfoService::getRelatedIdHtml('bug', $model->related_bug); ?> </div> <?php $isShowCaseResultTab = Yii::app()->params['showCaseResultTab']; if ($isShowCaseResultTab) { $caseResultStr = '<div class="row">' . $form->label($model, 'related_case') . InfoService::getRelatedIdHtml('case', $model->related_case) . '</div>'; $caseResultStr .= '<div class="row">' . $form->label($model, 'related_result') . InfoService::getRelatedIdHtml('result', $model->related_result) . '</div>'; echo $caseResultStr; } ?> </fieldset> <fieldset> <legend><?php echo Yii::t('Common', 'Attachments'); ?> </legend> <?php echo $model->attachment_file; ?> </fieldset>