first commit
This commit is contained in:
41
admin/templates/newsletter/import.php
Normal file
41
admin/templates/newsletter/import.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?
|
||||
global $db;
|
||||
ob_start();
|
||||
?>
|
||||
<?= \Html::textarea(
|
||||
array(
|
||||
'label' => 'Maile (oddzielone nowym wierszem)',
|
||||
'name' => 'emails',
|
||||
'id' => 'emails'
|
||||
)
|
||||
);?>
|
||||
|
||||
<?
|
||||
$out = ob_get_clean();
|
||||
$grid = new \gridEdit;
|
||||
$grid -> id = 'emails';
|
||||
$grid -> gdb_opt = $gdb;
|
||||
$grid -> include_plugins = true;
|
||||
$grid -> title = 'Import adresów mailowych';
|
||||
$grid -> fields = [
|
||||
[
|
||||
'db' => 'id',
|
||||
'type' => 'hidden',
|
||||
'value' => $this -> element['id']
|
||||
]
|
||||
];
|
||||
$grid -> external_code = $out;
|
||||
$grid -> actions = [
|
||||
'save' => [
|
||||
'url' => '/admin/newsletter/emails_import/',
|
||||
'back_url' => '/admin/newsletter/emails_list/'
|
||||
],
|
||||
'cancel' => [
|
||||
'url' => '/admin/newsletter/emails_list/'
|
||||
]
|
||||
];
|
||||
$grid -> persist_edit = false;
|
||||
$grid -> id_param = 'id';
|
||||
|
||||
echo $grid -> draw();
|
||||
?>
|
||||
Reference in New Issue
Block a user