correction for mandatory fields in forms
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -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') . ':',
|
||||
|
||||
@@ -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']
|
||||
|
||||
@@ -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']
|
||||
|
||||
@@ -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') . ':',
|
||||
|
||||
@@ -39,7 +39,8 @@ return [
|
||||
],
|
||||
'destination' => [
|
||||
'label' => lng('emails.to'),
|
||||
'type' => 'email'
|
||||
'type' => 'email',
|
||||
'mandatory' => true
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
@@ -118,6 +118,11 @@ return [
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
'buttons' => [
|
||||
[
|
||||
'label' => lng('panel.backtooverview')
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
@@ -60,7 +60,8 @@ return [
|
||||
'directory_authname' => [
|
||||
'label' => lng('extras.htpasswdauthname'),
|
||||
'type' => 'text',
|
||||
'value' => $result['authname']
|
||||
'value' => $result['authname'],
|
||||
'mandatory' => true
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user