<div class="row"> <?php echo $form->label($model, 'id'); ?> <?php echo $form->textField($model, 'id'); ?> </div> <div class="row"> <?php echo $form->label($model, 'atencion_id'); ?> <?php echo $form->dropDownList($model, 'atencion_id', GxHtml::listDataEx(Atencion::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All'))); ?> </div> <div class="row"> <?php echo $form->label($model, 'numero'); ?> <?php echo $form->textField($model, 'numero', array('maxlength' => 45)); ?> </div> <div class="row"> <?php echo $form->label($model, 'compania');
<?php $this->breadcrumbs = array($model->label(2) => array('index'), Yii::t('app', 'Manage')); $this->menu = array(array('label' => Yii::t('app', 'List') . ' ' . $model->label(2), 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('create'))); Yii::app()->clientScript->registerScript('search', "\r\n\$('.search-button').click(function(){\r\n\t\$('.search-form').toggle();\r\n\treturn false;\r\n});\r\n\$('.search-form form').submit(function(){\r\n\t\$.fn.yiiGridView.update('noprepago-grid', {\r\n\t\tdata: \$(this).serialize()\r\n\t});\r\n\treturn false;\r\n});\r\n"); ?> <h1><?php echo Yii::t('app', 'Manage') . ' ' . GxHtml::encode($model->label(2)); ?> </h1> <p> 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"> <?php $this->renderPartial('_search', array('model' => $model)); ?> </div><!-- search-form --> <?php $this->widget('bootstrap.widgets.TbGridView', array('id' => 'noprepago-grid', 'dataProvider' => $model->search(), 'type' => 'striped bordered condensed', 'filter' => $model, 'template' => "{items}{pager}", 'columns' => array('id', array('name' => 'atencion_id', 'value' => 'GxHtml::valueEx($data->atencion)', 'filter' => GxHtml::listDataEx(Atencion::model()->findAllAttributes(null, true))), 'numero', 'compania', array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 50px')))));
public function esMia($user_id) { return Atencion::model()->exists('recarga_id =:recarga_id AND user_id = :user_id', array(':recarga_id' => $this->id, ':user_id' => $user_id)); }
echo $form->textField($model, 'fecha'); ?> <?php echo $form->error($model, 'fecha'); ?> </div><!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'estado'); ?> <?php echo $form->textField($model, 'estado', array('maxlength' => 45)); ?> <?php echo $form->error($model, 'estado'); ?> </div><!-- row --> <label><?php echo GxHtml::encode($model->getRelationLabel('atencions')); ?> </label> <?php echo $form->checkBoxList($model, 'atencions', GxHtml::encodeEx(GxHtml::listDataEx(Atencion::model()->findAllAttributes(null, true)), false, true)); ?> <?php echo GxHtml::submitButton(Yii::t('app', 'Save')); $this->endWidget(); ?> </div><!-- form -->
<span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?> . </p> <?php echo $form->errorSummary($model); ?> <div class="row"> <?php echo $form->labelEx($model, 'atencion_id'); ?> <?php echo $form->dropDownList($model, 'atencion_id', GxHtml::listDataEx(Atencion::model()->findAllAttributes(null, true))); ?> <?php echo $form->error($model, 'atencion_id'); ?> </div><!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'numero'); ?> <?php echo $form->textField($model, 'numero', array('maxlength' => 45)); ?> <?php echo $form->error($model, 'numero'); ?>