Ejemplo n.º 1
0
?>
    </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(PahChartClass::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 
Ejemplo n.º 2
0
<?php

$this->breadcrumbs = array('Pah Chart Types' => array('index'), Yii::t('app', 'Manage'));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' PahChartTypes', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PahChartTypes', '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('pah-chart-types-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1><?php 
echo Yii::t('app', 'Manage');
?>
 Pah Chart Types</h1>

<p style="display:none">
    You may optionally enter a comparison operator (&lt;, &lt;=, &gt;, &gt;=, &lt;&gt; 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' => 'pah-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(PahChartClass::model()->findAllAttributes(null, true))), 'parent', array('name' => 'inactive', 'value' => '($data->inactive === 0) ? Yii::t(\'app\', \'No\') : Yii::t(\'app\', \'Yes\')', 'filter' => array('0' => Yii::t('app', 'No'), '1' => Yii::t('app', 'Yes'))), array('class' => 'CButtonColumn'))));
Ejemplo n.º 3
0
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(PahChartClass::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');