Hello, here is the code  file: add.ctp

div class="trainingCourses form">
<?php echo $form->create('TrainingCourse');?>
 <fieldset>
   <legend><?php __('Add TrainingCourse');?></legend>
 <?php
  echo $form->input('course_code');
  echo $form->input('name');
  echo $form->input('training_type_id');
  echo $form->input('Duration',array('training_courses.time', 'type'
=> 'time', 'interval' => 15 , 'empty' => ' ','options' => array
('hh','mm')));
  echo $form->input('course_sequence');
  echo $form->input('comments');
 ?>

 </fieldset>
<?php echo $form->end('Submit');?>
</div>

On Oct 30, 1:23 pm, John Andersen <[email protected]> wrote:
> Please show the code with what you are trying to accomplish, so that
> we may better be able to help you!
> Enjoy,
>    John
>
> On Oct 30, 9:19 am, Jiru <[email protected]> wrote:
>
> > Even though tried to change the options the hh/mm option is not
> > available.
>
> > On Oct 30, 11:09 am, John Andersen <[email protected]> wrote:
>
> > > Please read the cook book!
>
> > >http://book.cakephp.org/view/189/Automagic-Form-Elements#options-time...
>
> > > Enjoy,
> > >    John
>
> > > On Oct 30, 8:00 am, Jiru <[email protected]> wrote:
>
> > > > Hi,
> > > >        I have atimefield in the form. In the combo box it have
> > > > meridians[am/pm].
> > > > As I wantdurationI need hh/mm instead of am/pm in the drop
> > > > down.Please give suggessions for this.
> > > >                                     Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to