some work on mail/file template formfields

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-03-05 11:46:35 +01:00
parent 8256f31374
commit 54ce296018
6 changed files with 222 additions and 23 deletions

View File

@@ -14,6 +14,7 @@
* @package Formfields
*
*/
return array(
'filetemplate_add' => array(
'title' => $lng['admin']['templates']['template_add'],
@@ -26,17 +27,44 @@ return array(
'template' => array(
'label' => $lng['admin']['templates']['action'],
'type' => 'select',
'select_var' => $free_templates,
'selected' => '@TODO'
'select_var' => $free_templates
),
'filecontent' => array(
'label' => $lng['admin']['templates']['filecontent'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12
),
'filesend' => array(
'type' => 'hidden',
'value' => 'filesend'
)
)
)
)
)
),
'filetemplate_replacers' => [
'replacers' => [
[
'var' => 'SERVERNAME',
'description' => $lng['admin']['templates']['SERVERNAME']
],
[
'var' => 'CUSTOMER',
'description' => $lng['admin']['templates']['CUSTOMER']
],
[
'var' => 'ADMIN',
'description' => $lng['admin']['templates']['ADMIN']
],
[
'var' => 'CUSTOMER_EMAIL',
'description' => $lng['admin']['templates']['CUSTOMER_EMAIL']
],
[
'var' => 'ADMIN_EMAIL',
'description' => $lng['admin']['templates']['ADMIN_EMAIL']
]
]
]
);