From e72dc752bb7fa6e00f3867cba799ab1532484090 Mon Sep 17 00:00:00 2001 From: Jeroen Peelaerts Date: Tue, 24 Nov 2020 22:08:38 +0100 Subject: [PATCH] Make receivings date readonly (#2843) --- application/views/receivings/form.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/views/receivings/form.php b/application/views/receivings/form.php index 46bbf4b02..37b68dc33 100755 --- a/application/views/receivings/form.php +++ b/application/views/receivings/form.php @@ -12,7 +12,13 @@
lang->line('receivings_date'), 'date', array('class'=>'control-label col-xs-3')); ?>
- 'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($receiving_info['receiving_time'])), 'id'=>'datetime', 'class'=>'form-control input-sm'));?> + 'date', + 'value' => to_datetime(strtotime($receiving_info['receiving_time'])), + 'id' => 'datetime', + 'class' => 'datetime form-control input-sm', + 'readonly' => 'readonly')); + ?>