title = $generator->getName();
$templates = array();
foreach ($generator->templates as $name => $path) {
$templates[$name] = "$name ($path)";
}
?>
title); ?>
getDescription(); ?>
"$id-generator",
'fieldConfig' => array('class' => ActiveField::className()),
)); ?>
renderFile($generator->formView(), array(
'generator' => $generator,
'form' => $form,
)); ?>
field($generator, 'template')->sticky()
->label(array('label' => 'Code Template'))
->dropDownList($templates)->hint('
Please select which set of the templates should be used to generated the code.
'); ?>
'preview', 'class' => 'btn btn-success')); ?>
'generate', 'class' => 'btn btn-danger')); ?>
render('view/results', array(
'generator' => $generator,
'results' => $results,
'hasError' => $hasError,
));
} elseif (isset($files)) {
echo $this->render('view/files', array(
'generator' => $generator,
'files' => $files,
'answers' => $answers,
));
}
?>