mail & filetemplates listing/forms

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-03-06 09:43:06 +01:00
parent 54ce296018
commit a3a33c0da4
8 changed files with 241 additions and 33 deletions

View 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'
],
],
],
]
];

View 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'
],
],
],
]
];