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.

Edited by deib97
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.