Better handling of dates when registering children

This commit is contained in:
Deon George
2014-10-23 10:05:32 +11:00
parent 48debfbd6c
commit 6eb0b2f8dd
3 changed files with 63 additions and 8 deletions

View File

@@ -22,7 +22,7 @@
</div>
</div>
<div class="col-md-3">
Age: <strong><?php echo $o->age(); ?></strong><br/>
Age: <strong><div id="age" style="display: inline;"><?php echo $o->dob ? $o->age() : ''; ?></div></strong><br/>
</div>
</div>
@@ -60,7 +60,7 @@
</td>
<td>
<div class="input-group date" id="date_stop" data-date-format="dd-mm-yyyy" data-provide="datepicker" data-date-start-view="year" data-date-autoclose="true" data-date-today-highlight="true" data-date-start-date="0d">
<?php echo Form::input('room[date_stop]',$rco->date_stop ? $rco->display('date_stop') : $o->date_enrol_max(TRUE),array('class'=>'form-control','placeholder'=>'End','required','nocg'=>TRUE,'readonly')); ?>
<?php echo Form::input('room[date_stop]',$rco->date_stop ? $rco->display('date_stop') : '',array('class'=>'form-control','placeholder'=>'End','required','nocg'=>TRUE,'readonly')); ?>
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</td>