Hi,
I am using ejuidatetimepicker extension and in my view I have a field like this:
<div class="row">
<?php echo $form->labelEx($model,'activation_date'); ?>
<?php
$this->widget('application.extensions.timepicker.EJuiDateTimePicker',array(
'model'=>$model,
'attribute'=>'activation_date',
'options'=>array(
'hourGrid' => 4,
'minuteGrid' => 15,
'timeFormat' => 'hh:mm:ss',
'dateFormat'=>'yy-mm-dd',
),
));
?>
<?php echo $form->error($model,'activation_date'); ?>
</div>
My question is how can I have a default text (says "now") displayed in the field and if the user did not manually select using the picker then the value will be cdbexpression now saved in database. Similarly, I have an expiration field like the above and I would like a default text (says "never") and if nothing picked then the value will be NULL. Both of my fields have datatype timestamp in the model.
Thank you for any advice/help!