Make receivings date readonly (#2843)

This commit is contained in:
Jeroen Peelaerts
2020-11-24 22:08:38 +01:00
parent 8e054de506
commit e72dc752bb

View File

@@ -12,7 +12,13 @@
<div class="form-group form-group-sm">
<?php echo form_label($this->lang->line('receivings_date'), 'date', array('class'=>'control-label col-xs-3')); ?>
<div class='col-xs-8'>
<?php echo form_input(array('name'=>'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($receiving_info['receiving_time'])), 'id'=>'datetime', 'class'=>'form-control input-sm'));?>
<?php echo form_input(array(
'name' => 'date',
'value' => to_datetime(strtotime($receiving_info['receiving_time'])),
'id' => 'datetime',
'class' => 'datetime form-control input-sm',
'readonly' => 'readonly'));
?>
</div>
</div>