mail & filetemplates listing/forms
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -35,9 +35,37 @@ return array(
|
||||
'cols' => 60,
|
||||
'rows' => 12,
|
||||
'value' => $row['value']
|
||||
),
|
||||
'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']
|
||||
]
|
||||
]
|
||||
]
|
||||
);
|
||||
|
||||
57
lib/tablelisting/admin/tablelisting.filetemplates.php
Normal file
57
lib/tablelisting/admin/tablelisting.filetemplates.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the Froxlor project.
|
||||
* Copyright (c) 2010 the Froxlor Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Froxlor team <team@froxlor.org> (2010-)
|
||||
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
||||
* @package Tabellisting
|
||||
*
|
||||
*/
|
||||
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
return [
|
||||
'filetpl_list' => [
|
||||
'title' => $lng['admin']['templates']['filetemplates'],
|
||||
'icon' => 'fa-solid fa-file-lines',
|
||||
'columns' => [
|
||||
'template' => [
|
||||
'label' => $lng['admin']['templates']['action'],
|
||||
'field' => 'template'
|
||||
],
|
||||
],
|
||||
'visible_columns' => Listing::getVisibleColumnsForListing('filetpl_list', [
|
||||
'template'
|
||||
]),
|
||||
'actions' => [
|
||||
'edit' => [
|
||||
'icon' => 'fa fa-edit',
|
||||
'title' => $lng['panel']['edit'],
|
||||
'href' => [
|
||||
'section' => 'templates',
|
||||
'page' => $page,
|
||||
'action' => 'editf',
|
||||
'id' => ':id'
|
||||
],
|
||||
],
|
||||
'delete' => [
|
||||
'icon' => 'fa fa-trash',
|
||||
'title' => $lng['panel']['delete'],
|
||||
'class' => 'text-danger',
|
||||
'href' => [
|
||||
'section' => 'templates',
|
||||
'page' => $page,
|
||||
'action' => 'deletef',
|
||||
'id' => ':id'
|
||||
],
|
||||
],
|
||||
],
|
||||
]
|
||||
];
|
||||
64
lib/tablelisting/admin/tablelisting.mailtemplates.php
Normal file
64
lib/tablelisting/admin/tablelisting.mailtemplates.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the Froxlor project.
|
||||
* Copyright (c) 2010 the Froxlor Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Froxlor team <team@froxlor.org> (2010-)
|
||||
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
||||
* @package Tabellisting
|
||||
*
|
||||
*/
|
||||
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
return [
|
||||
'mailtpl_list' => [
|
||||
'title' => $lng['admin']['templates']['templates'],
|
||||
'icon' => 'fa-solid fa-envelope',
|
||||
'columns' => [
|
||||
'language' => [
|
||||
'label' => $lng['login']['language'],
|
||||
'field' => 'language'
|
||||
],
|
||||
'template' => [
|
||||
'label' => $lng['admin']['templates']['action'],
|
||||
'field' => 'template'
|
||||
],
|
||||
],
|
||||
'visible_columns' => Listing::getVisibleColumnsForListing('mailtpl_list', [
|
||||
'language',
|
||||
'template'
|
||||
]),
|
||||
'actions' => [
|
||||
'edit' => [
|
||||
'icon' => 'fa fa-edit',
|
||||
'title' => $lng['panel']['edit'],
|
||||
'href' => [
|
||||
'section' => 'templates',
|
||||
'page' => $page,
|
||||
'action' => 'edit',
|
||||
'subjectid' => ':subjectid',
|
||||
'mailbodyid' => ':mailbodyid'
|
||||
],
|
||||
],
|
||||
'delete' => [
|
||||
'icon' => 'fa fa-trash',
|
||||
'title' => $lng['panel']['delete'],
|
||||
'class' => 'text-danger',
|
||||
'href' => [
|
||||
'section' => 'templates',
|
||||
'page' => $page,
|
||||
'action' => 'delete',
|
||||
'subjectid' => ':subjectid',
|
||||
'mailbodyid' => ':mailbodyid'
|
||||
],
|
||||
],
|
||||
],
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user