Add description field to FTP accounts, fixes #1340

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2014-01-02 22:45:30 +01:00
parent 15515f2840
commit 0c2aa8de45
11 changed files with 48 additions and 9 deletions

View File

@@ -34,6 +34,10 @@ return array(
'type' => 'select',
'select_var' => (isset($domains) ? $domains : ""),
),
'ftp_description' => array(
'label' => $lng['panel']['ftpdesc'] = 'FTP description',
'type' => 'text'
),
'path' => array(
'label' => $lng['panel']['path'],
'desc' => (Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),

View File

@@ -28,6 +28,11 @@ return array(
'type' => 'label',
'value' => $result['username'],
),
'ftp_description' => array(
'label' => $lng['panel']['ftpdesc'] = 'FTP description',
'type' => 'text',
'value' => $result['description']
),
'path' => array(
'label' => $lng['panel']['path'],
'desc' => (Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),