deib97 Posted January 15, 2014 Share Posted January 15, 2014 (edited) 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. Edited January 15, 2014 by deib97 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.