more work on add/edit forms

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-02-22 19:31:28 +01:00
parent 4af1dff6fd
commit 56519b4072
8 changed files with 77 additions and 92 deletions

View File

@@ -25,13 +25,16 @@ return array(
'fields' => array(
'ip' => array(
'label' => $lng['admin']['ipsandports']['ip'],
'type' => 'text'
'type' => 'text',
'mandatory' => true
),
'port' => array(
'label' => $lng['admin']['ipsandports']['port'],
'type' => 'number',
'min' => 1,
'max' => 65535
'max' => 65535,
'value' => 80,
'mandatory' => true
)
)
),

View File

@@ -26,14 +26,16 @@ return array(
'ip' => array(
'label' => $lng['admin']['ipsandports']['ip'],
'type' => 'text',
'value' => $result['ip']
'value' => $result['ip'],
'mandatory' => true
),
'port' => array(
'label' => $lng['admin']['ipsandports']['port'],
'type' => 'number',
'value' => $result['port'],
'min' => 1,
'max' => 65535
'max' => 65535,
'mandatory' => true
)
)
),

View File

@@ -25,7 +25,8 @@ return array(
'fields' => array(
'name' => array(
'label' => $lng['admin']['plans']['name'],
'type' => 'text'
'type' => 'text',
'mandatory' => true
),
'description' => array(
'label' => $lng['admin']['plans']['description'],

View File

@@ -26,7 +26,8 @@ return array(
'name' => array(
'label' => $lng['admin']['plans']['name'],
'type' => 'text',
'value' => $result['name']
'value' => $result['name'],
'mandatory' => true
),
'description' => array(
'label' => $lng['admin']['plans']['description'],