This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
memberdb/application/views/site/date/admin/add_edit.php
2016-08-31 02:13:05 +10:00

16 lines
615 B
PHP

<div class="col-md-12">
<fieldset>
<legend>Configure New Date Parameters</legend>
<?php
echo View::factory('field/select')->set('data',['field'=>'code','value'=>Arr::Merge([''=>''],$o->codes()),'text'=>'Code','default'=>$o->code,'class'=>'col-md-4']);
echo View::factory('field/date')->set('data',['field'=>'date_start','value'=>$o->date_start ? $o->date_start : time(),'text'=>'Date Start']);
echo View::factory('field/date')->set('data',['field'=>'date_stop','value'=>$o->date_stop ? $o->date_stop : time(),'text'=>'Date Stop']);
?>
</fieldset>
<?php echo View::factory('field/submit'); ?>
</div>