echo CHtml::checkBox('ci-stage-functest', false, array('value' => 'f', 'ext' => 'CI-Stage', 'style' => 'margin: 6px 2px 0px 10px; float: left;')); echo CHtml::label(YIi::t('Job', 'CI Functest'), 'ci-stage-functest', array('style' => 'float: left')); echo '</div>'; ?> </div> <div class="row-fluid" style="margin-bottom: 0"> <?php echo CHtml::label(Yii::t('Job', 'Other Options'), 'ci-other-opts', array('class' => 'span2')); echo CHtml::textField('ci-other-opts', '', array('class' => 'focus span10', 'placeholder' => Yii::t('Job', 'Other Options Tip'))); ?> </div> <hr/> <div class="row-fluid" style="margin-bottom: 0"> <?php echo CHtml::label(Yii::t('Command', 'Test Tool'), 'ci-parser', array('class' => 'span2')); $this->widget('application.extensions.select2.ESelect2', array('name' => 'ci-parser', 'data' => Parser::model()->getParserOptions(), 'htmlOptions' => array('multiple' => 'multiple', 'placeholder' => Yii::t('Parser', 'No need parse'), 'class' => 'span10'))); ?> </div> </div> <!-- ci command fields end --> </div> </div> </div> <!-- command fields end --> <!-- case fields start --> <div id="test-case-fields"> <div class="row-fluid"> <?php echo CHtml::label(Yii::t('TestCase', 'Query Case'), 'query-case', array('class' => 'span2')); // echo CHtml::textField('query-case', '', array('class' => 'span10 focus')); $this->Widget('application.extensions.querybuilder.QueryBuilderWidget', array('name' => 'search', 'options' => array_merge(VTestCase::model()->getQueryOpts(), array('keyClick' => 'js:function(queryStr){
$oldParserIDs = preg_split('/,/', $diffAttr->old); $oldParserStr = ''; foreach ($oldParserIDs as $oldParserID) { $parser = Parser::model()->findByPk($oldParserID); if ($parser) { $oldParserStr .= $parser->name . ','; } } $oldParserStr = trim($oldParserStr, ', '); if ($oldParserStr) { $diffAttr->old = $oldParserStr; } $newParserIDs = preg_split('/,/', $diffAttr->new); $newParserStr = ''; foreach ($newParserIDs as $newParserID) { $parser = Parser::model()->findByPk($newParserID); if ($parser) { $newParserStr .= $parser->name . ','; } } $newParserStr = trim($newParserStr, ', '); if ($newParserStr) { $diffAttr->new = $newParserStr; } } if ($diffAttr->old === NULL) { $diffAttr->old = '[NULL]'; } if ($diffAttr->new === NULL) { $diffAttr->new = '[NULL]'; }
</div> <?php echo CHtml::errorSummary($command); ?> <div class="detail block"> <div class="row-fluid"> <?php echo CHtml::activeLabelEx($command, 'name', array('class' => 'span1')); echo CHtml::activeTextField($command, 'name', array('class' => 'focus span11')); ?> </div> <div class="row-fluid"> <?php echo CHtml::activeLabelEx($command, 'parser_id', array('class' => 'span1')); echo '<div class="span11">'; $this->widget('application.extensions.select2.ESelect2', array('model' => $command, 'attribute' => 'parser_id', 'data' => Parser::model()->getParserOptions(), 'htmlOptions' => array('multiple' => 'multiple', 'placeholder' => Yii::t('Parser', 'No need parse'), 'class' => 'span3'))); echo '</div>'; ?> </div> <div class="row-fluid"> <?php echo CHtml::activeLabelEx($command, 'command', array('class' => 'span1')); echo '<div class="span11">'; echo CHtml::activeTextArea($command, 'command'); echo '</div>'; ?> </div> <div class="row-fluid"> <?php echo CHtml::activeLabelEx($command, 'desc_info', array('class' => 'span1')); echo CHtml::activeTextArea($command, 'desc_info', array('class' => 'span11 focus', 'style' => 'height: 6em'));