<?php $this->breadcrumbs = array('Pe Chart Types' => array('index'), Yii::t('app', 'Manage')); $this->menu = array(array('label' => Yii::t('app', 'List') . ' PeChartTypes', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PeChartTypes', 'url' => array('create'))); Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('pe-chart-types-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); ?> <h1><?php echo Yii::t('app', 'Manage'); ?> Pe Chart Types</h1> <p style="display:none"> You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done. </p> <?php //echo GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button')); ?> <div class="search-form" style="display:none"> <?php $this->renderPartial('_search', array('model' => $model)); ?> </div><!-- search-form --> <?php $this->widget('zii.widgets.grid.CGridView', array('id' => 'pe-chart-types-grid', 'dataProvider' => $model->search(), 'itemsCssClass' => 'table', 'filter' => $model, 'columns' => array('id', 'name', array('name' => 'class_id', 'value' => 'GxHtml::valueEx($data->class)', 'filter' => GxHtml::listDataEx(PeChartClass::model()->findAllAttributes(null, true))), 'parent', 'inactive', array('class' => 'CButtonColumn'))));
?> </div> <div class="span-8 last"> <?php echo $form->label($model, 'name'); ?> <?php echo $form->textField($model, 'name', array('maxlength' => 60)); ?> </div> <div class="span-8 last"> <?php echo $form->label($model, 'class_id'); ?> <?php echo $form->dropDownList($model, 'class_id', GxHtml::listDataEx(PeChartClass::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All'))); ?> </div> <div class="span-8 last"> <?php echo $form->label($model, 'parent'); ?> <?php echo $form->textField($model, 'parent', array('maxlength' => 10)); ?> </div> <div class="span-8 last"> <?php echo $form->label($model, 'inactive'); ?> <?php
echo $form->labelEx($model, 'name'); ?> <?php echo $form->textField($model, 'name', array('maxlength' => 60)); ?> <?php echo $form->error($model, 'name'); ?> </div> <!-- row --> <div class="span-8 last"> <?php echo $form->labelEx($model, 'class_id'); ?> <?php echo $form->dropDownList($model, 'class_id', GxHtml::listDataEx(PeChartClass::model()->findAllAttributes(null, true))); ?> <?php echo $form->error($model, 'class_id'); ?> </div> <!-- row --> <div class="span-8 last"> <?php echo $form->labelEx($model, 'parent'); ?> <?php echo $form->textField($model, 'parent', array('maxlength' => 10)); ?> <?php echo $form->error($model, 'parent');