Yii Framework Forum: CStarRating & labelEx ?? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CStarRating & labelEx ?? Rate Topic: -----

#1 User is offline   saegeek 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 09-December 09
  • Location:Montpellier - France

Posted 06 May 2012 - 11:00 AM

I expected having my LabelEx to auto-check the last star (example: the 5th star) when i click the label.
The code i used:
<?php echo $form->labelEx($model,'rating'); ?>
<?php $this->widget('CStarRating',array(
                'model'=>$model,
                'attribute'=>'rating',
                'maxRating'=>5,
                'allowEmpty'=>false,
                ));
?>


I think this feature should be added.
And [for] their saying, "Indeed, we have killed the Messiah, Jesus, the son of Mary, the messenger of God ." And they did not kill him, nor did they crucify him; but [another] was made to resemble him to them. And indeed, those who differ over it are in doubt about it. They have no knowledge of it except the following of assumption. And they did not kill him, for certain.Rather, God raised him to Himself.
0

#2 User is offline   saegeek 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 09-December 09
  • Location:Montpellier - France

Posted 11 May 2012 - 05:08 AM

This should be added as a new CStarRating property
And [for] their saying, "Indeed, we have killed the Messiah, Jesus, the son of Mary, the messenger of God ." And they did not kill him, nor did they crucify him; but [another] was made to resemble him to them. And indeed, those who differ over it are in doubt about it. They have no knowledge of it except the following of assumption. And they did not kill him, for certain.Rather, God raised him to Himself.
0

#3 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 11 May 2012 - 05:16 AM

The functionality of clicking the label to select the input field is completely implemented by HTML standard and the browsers... this is not Yii or JS related at all...

The functionality you are requesting here would mean to add JS code to do what you request... and then someone can complain why the last star... why not the first one...

I personally (because of this above) don't see any valid reason for implementing this...
Find more about me.... btw. Do you know your WAN IP?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users