Example #1
0
?>
</p>

    <input type="hidden" name="config_id" id="config_id" value="<?php 
echo $model->id;
?>
">
	<input type="hidden" id="config_required" value="<?php 
echo $required;
?>
">

    <?php 
echo '<div class="rowold">';
echo CHtml::activeLabel($model, 'value', array('required' => $required));
if ($model->type == 'enum' && ($list = ConfigurationModel::getEnumListForKey($model->name))) {
    echo $form->dropDownList($model, 'value', $list, array('class' => 'width450', 'id' => 'config_value'));
} else {
    echo $form->textArea($model, 'value', array('class' => 'width450', 'id' => 'config_value'));
}
echo $form->error($model, 'value');
echo '</div>';
?>

<?php 
if (!$ajax) {
    ?>
    <div class="rowold buttons">
           <?php 
    $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'icon' => 'ok white', 'label' => tc('Save')));
    ?>