add date/datetime input fields to relevant formfields
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -75,19 +75,20 @@ return [
|
||||
'add_date' => [
|
||||
'label' => lng('domains.add_date'),
|
||||
'desc' => lng('panel.dateformat'),
|
||||
'type' => 'label',
|
||||
'type' => 'date',
|
||||
'readonly' => true,
|
||||
'value' => date('Y-m-d')
|
||||
],
|
||||
'registration_date' => [
|
||||
'label' => lng('domains.registration_date'),
|
||||
'desc' => lng('panel.dateformat'),
|
||||
'type' => 'text',
|
||||
'type' => 'date',
|
||||
'size' => 10
|
||||
],
|
||||
'termination_date' => [
|
||||
'label' => lng('domains.termination_date'),
|
||||
'desc' => lng('panel.dateformat'),
|
||||
'type' => 'text',
|
||||
'type' => 'date',
|
||||
'size' => 10
|
||||
]
|
||||
]
|
||||
|
||||
@@ -86,20 +86,21 @@ return [
|
||||
'add_date' => [
|
||||
'label' => lng('domains.add_date'),
|
||||
'desc' => lng('panel.dateformat'),
|
||||
'type' => 'label',
|
||||
'type' => 'date',
|
||||
'readonly' => true,
|
||||
'value' => date('Y-m-d', (int)$result['add_date'])
|
||||
],
|
||||
'registration_date' => [
|
||||
'label' => lng('domains.registration_date'),
|
||||
'desc' => lng('panel.dateformat'),
|
||||
'type' => 'text',
|
||||
'type' => 'date',
|
||||
'value' => $result['registration_date'],
|
||||
'size' => 10
|
||||
],
|
||||
'termination_date' => [
|
||||
'label' => lng('domains.termination_date'),
|
||||
'desc' => lng('panel.dateformat'),
|
||||
'type' => 'text',
|
||||
'type' => 'date',
|
||||
'value' => $result['termination_date'],
|
||||
'size' => 10
|
||||
]
|
||||
|
||||
@@ -58,9 +58,8 @@ return [
|
||||
'title' => lng('apikeys.valid_until'),
|
||||
'description' => lng('apikeys.valid_until_help')
|
||||
],
|
||||
/** @TODO datetime-picker */
|
||||
'type' => 'text',
|
||||
'value' => $result['valid_until'] < 0 ? "" : $result['valid_until']
|
||||
'type' => 'datetime-local',
|
||||
'value' => $result['valid_until'] < 0 ? "" : date('Y-m-d\TH:i', $result['valid_until'])
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user