The date validation for the "Text Date" field isn't working.
http://sky-walker.net/temp/test/yii/testdate/index.php?r=site/login
The "required" validation works if I set it as required though.
What I want the text field to do is to either turn red or green when the form is submitted and also when the focus is lost using ajax. If it turns red an error message should also appear.
From login.php
<div class="row">
<?php echo $form->labelEx($model,'textDate'); ?>
<?php echo $form->textField($model,'textDate'); ?>
<?php echo $form->error($model,'textDate'); ?>
</div>
From LoginForm.php
public $textDate;
From rules()
...array('textDate', 'date', 'format'=>'d/M/yyyy'),...