deib97 Posted January 15, 2014 Share Posted January 15, 2014 How to implement jqrelcopy with timepicker (yiibooster)? I writen code like this : <?php $this->widget('ext.jqrelcopy.JQRelcopy',array( 'id' => 'copylink', 'removeText' => 'Remove', 'removeHtmlOptions' => array('style'=>'color:red'), 'options' => array( 'copyClass'=>'newcopy', 'limit'=>3, 'clearInputs'=>true, 'excludeSelector'=>'.skipcopy', // 'append'=>CHtml::tag('span',array('class'=>'hint'),'You can remove this line'), ) )); ?> <div class="control-group "><label class="control-label required">Jam Kerja</label> <div class="controls"> <a id="copylink" href="#" rel=".copy">Tambah Jam Kerja / Shift</a> <div class="row copy"> <?php echo CHtml::label('',''); ?> <?php $this->widget('bootstrap.widgets.TbTimePicker', array( 'name' => 'some_time', 'value' => '00:00', 'htmlOptions'=>array('width'=>'50px'), 'noAppend' => true, // mandatory 'options' => array( 'disableFocus' => true, // mandatory 'showMeridian' => false // irrelevant ), ) ); ?> <?php $this->widget('bootstrap.widgets.TbTimePicker', array( 'name' => 'some_time', 'value' => '00:00', 'noAppend' => true, // mandatory 'options' => array( 'disableFocus' => true, // mandatory 'showMeridian' => false // irrelevant ) ) ); ?> </div> </div> </div> But the result shown like this : The picker cannot flew on field 3. always default field 1. Link to comment https://forums.phpfreaks.com/topic/285379-how-to-implement-jqrelcopy-yii-with-timepicker/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.