Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Problema Com 2 Cjuidatepicker

$
0
0
Boa tarde.

Tenho um form com 2 CJuiDatePicker, apenas um deles é inserido na bd, que poderá estar a causar isto?

<?php $this->widget('zii.widgets.jui.CJuiDatePicker',
						 array(
								 'model'=>'$model',
								 'name'=>'Reparacao[data_recb]',
								 'language'=>'pt',
								 'value'=>$model->data_recb,
								 'htmlOptions'=>array('size'=>10, 'style'=>'width:80px !important'),
									 'options'=>array(
									 'showButtonPanel'=>true,
									 'changeYear'=>true,                                      
									 'changeYear'=>true,
									 'dateFormat' => 'yy-mm-dd',
									 ),
								 )
							 );
					; ?>
               
<?php echo $form->labelEx($model,'data_entrega'); ?>

<?php $this->widget('zii.widgets.jui.CJuiDatePicker',
						 array(
								 'model'=>'$model',
								 'name'=>'Reparacao[data_entrega]',
								 'language'=>'pt',
								 'value'=>$model->data_entrega,
								 'htmlOptions'=>array('size'=>10, 'style'=>'width:80px !important'),
									 'options'=>array(
									 'showButtonPanel'=>true,
									 'changeYear'=>true,                                      
									 'changeYear'=>true,
									 'dateFormat' => 'yy-mm-dd'
									 ),
								 )
							 );
					; ?>


Estão os 2 iguais sem qualquer problema e no model na rulles está tudo direito.

Viewing all articles
Browse latest Browse all 18717


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>