<commit_before><div class="crud-form">

    
    <?php
        Yii::app()->bootstrap->registerAssetCss('../select2/select2.css');
        Yii::app()->bootstrap->registerAssetJs('../select2/select2.js');
        Yii::app()->clientScript->registerScript('crud/variant/update','$(".crud-form select").select2();');

        $form=$this->beginWidget('TbActiveForm', array(
            'id'=>'ccmp-company-custom-form',
            'enableAjaxValidation'=>true,
            'enableClientValidation'=>true,
        ));

        //echo $form->errorSummary($model);
    ?>
    
    <div class="row">
        <div class="span7"> <!-- main inputs -->
            <div class="form-horizontal">

                
                  
                        
                
                   <?php 
		$customFields=BaseCccdCompanyData::getFields();
		if ($customFields) {
			foreach($customFields as $field) {
			?>
          <div class="control-group">        
	
            <div class="control-label">
		<?php echo $form->labelEx($model,$field->varname); ?>
            </div> 
            <div class="controls">  
		<?php 
		if ($widgetEdit = $field->widgetEdit($model)) {
			echo $widgetEdit;
		} elseif ($field->range) {
			echo $form->dropDownList($model,$field->varname,BaseCccdCompanyData::range($field->range));
                } elseif ($field->field_type =="BOOL") {
			echo $form->checkBox($model,$field->varname);        
		} elseif ($field->field_type=="TEXT") {
			echo CHtml::activeTextArea($model,$field->varname,array('rows'=>6, 'cols'=>50));
		} else {
			echo $form->textField($model,$field->varname,array('size'=>60,'maxlength'=>(($field->field_size)?$field->field_size:255)));
		}<commit_msg>To custom fields added listbox type<commit_after><div class="crud-form">

    
    <?php
        Yii::app()->bootstrap->registerAssetCss('../select2/select2.css');
        Yii::app()->bootstrap->registerAssetJs('../select2/select2.js');
        Yii::app()->clientScript->registerScript('crud/variant/update','$(".crud-form select").select2();');

        $form=$this->beginWidget('TbActiveForm', array(
            'id'=>'ccmp-company-custom-form',
            'enableAjaxValidation'=>true,
            'enableClientValidation'=>true,
        ));

        //echo $form->errorSummary($model);
    ?>
    
    <div class="row">
        <div class="span7"> <!-- main inputs -->
            <div class="form-horizontal">

                
                  
                        
                
                   <?php 
		$customFields=BaseCccdCompanyData::getFields();
		if ($customFields) {
			foreach($customFields as $field) {
			?>
          <div class="control-group">        
	
            <div class="control-label">
		<?php echo $form->labelEx($model,$field->varname); ?>
            </div> 
            <div class="controls">  
		<?php 
		if ($widgetEdit = $field->widgetEdit($model)) {
			echo $widgetEdit;
		} elseif ($field->range) {
			echo $form->dropDownList($model,$field->varname,BaseCccdCompanyData::range($field->range));
                } elseif ($field->field_type =="BOOL") {
			echo $form->checkBox($model,$field->varname);        
		} elseif ($field->field_type=="TEXT") {
			echo CHtml::activeTextArea($model,$field->varname,array('rows'=>6, 'cols'=>50));
		} elseif ($field->field_type=="ListBox") {
            $list_data   = json_decode($field->widgetparams, true);
            echo $form->listBox($model,$field->varname, $list_data);
		} else {
			echo $form->textField($model,$field->varname,array('size'=>60,'maxlength'=>(($field->field_size)?$field->field_size:255)));
		}
{'fraction_non_alphanumeric': 0.1930747922437673, 'fraction_numerical': 0.00775623268698061, 'mean_word_length': 2.550639134709931, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6065848', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1062, 'n_words': 137}