Jump to content

How to implement jqrelcopy yii with timepicker?


deib97

Recommended Posts

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 :

default_onchange.jpg?_subject_uid=152431

 

The picker cannot flew on field 3. always default field 1.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.