some work on mail/file template formfields
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -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']
|
||||
]
|
||||
]
|
||||
]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user