correction for mandatory fields in forms

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-08-26 09:06:42 +02:00
parent 8f64460647
commit 7f6ea29e15
19 changed files with 75 additions and 21 deletions

View File

@@ -40,7 +40,7 @@ return [
'new_loginname' => [
'label' => lng('login.username'),
'type' => 'text',
'placeholder' => 'Leave empty for autogenerated value'
'placeholder' => lng('admin.username_default_msg')
],
'createstdsubdomain' => [
'label' => lng('admin.stdsubdomain_add') . '?',
@@ -58,6 +58,7 @@ return [
'label' => lng('login.password'),
'type' => 'password',
'autocomplete' => 'off',
'placeholder' => lng('admin.username_default_msg'),
'next_to' => [
'new_customer_password_suggestion' => [
'next_to_prefix' => lng('customer.generated_pwd') . ':',

View File

@@ -35,7 +35,7 @@ return [
'title' => lng('menue.main.changepassword'),
'image' => 'icons/email_edit.png',
'fields' => [
'email_full' => [
'emailaddr' => [
'label' => lng('emails.emailaddress'),
'type' => 'label',
'value' => $result['email_full']

View File

@@ -32,7 +32,7 @@ return [
'title' => lng('emails.quota_edit'),
'image' => 'icons/email_edit.png',
'fields' => [
'email_full' => [
'emailaddr' => [
'label' => lng('emails.emailaddress'),
'type' => 'label',
'value' => $result['email_full']

View File

@@ -44,6 +44,7 @@ return [
'label' => lng('login.password'),
'type' => 'password',
'autocomplete' => 'off',
'mandatory' => true,
'next_to' => [
'admin_password_suggestion' => [
'next_to_prefix' => lng('customer.generated_pwd') . ':',

View File

@@ -39,7 +39,8 @@ return [
],
'destination' => [
'label' => lng('emails.to'),
'type' => 'email'
'type' => 'email',
'mandatory' => true
]
]
]

View File

@@ -118,6 +118,11 @@ return [
]
]
]
],
'buttons' => [
[
'label' => lng('panel.backtooverview')
]
]
]
];

View File

@@ -42,6 +42,7 @@ return [
'select_var' => $pathSelect['select_var'] ?? '',
'value' => $pathSelect['value'],
'note' => $pathSelect['note'] ?? '',
'mandatory' => true
],
'options_indexes' => [
'label' => lng('extras.directory_browsing'),

View File

@@ -43,15 +43,18 @@ return [
'select_var' => $pathSelect['select_var'] ?? '',
'value' => $pathSelect['value'],
'note' => $pathSelect['note'] ?? '',
'mandatory' => true
],
'username' => [
'label' => lng('login.username'),
'type' => 'text'
'type' => 'text',
'mandatory' => true
],
'directory_password' => [
'label' => lng('login.password'),
'type' => 'password',
'autocomplete' => 'off'
'autocomplete' => 'off',
'mandatory' => true
],
'directory_password_suggestion' => [
'label' => lng('customer.generated_pwd'),
@@ -61,7 +64,8 @@ return [
],
'directory_authname' => [
'label' => lng('extras.htpasswdauthname'),
'type' => 'text'
'type' => 'text',
'mandatory' => true
]
]
]

View File

@@ -60,7 +60,8 @@ return [
'directory_authname' => [
'label' => lng('extras.htpasswdauthname'),
'type' => 'text',
'value' => $result['authname']
'value' => $result['authname'],
'mandatory' => true
]
]
]

View File

@@ -52,11 +52,13 @@ return [
'select_var' => $pathSelect['select_var'] ?? '',
'value' => $pathSelect['value'],
'note' => $pathSelect['note'] ?? '',
'mandatory' => true
],
'ftp_password' => [
'label' => lng('login.password'),
'type' => 'password',
'autocomplete' => 'off'
'autocomplete' => 'off',
'mandatory' => true
],
'ftp_password_suggestion' => [
'label' => lng('customer.generated_pwd'),

View File

@@ -45,7 +45,8 @@ return [
'mysql_password' => [
'label' => lng('login.password'),
'type' => 'password',
'autocomplete' => 'off'
'autocomplete' => 'off',
'mandatory' => true
],
'mysql_password_suggestion' => [
'label' => lng('customer.generated_pwd'),