add date/datetime input fields to relevant formfields

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-15 10:07:25 +02:00
parent 4d5473ff14
commit 07a1ad8c58
9 changed files with 27 additions and 21 deletions

View File

@@ -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
]
]

View File

@@ -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
]

View File

@@ -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'])
]
]
]