@@ -657,12 +657,15 @@ if ($page == 'domains' || $page == 'overview') {
|
||||
} else {
|
||||
|
||||
$domain_import_data = include_once dirname(__FILE__) . '/lib/formfields/admin/domains/formfield.domains_import.php';
|
||||
$domain_import_form = \Froxlor\UI\HtmlForm::genHTMLForm($domain_import_data);
|
||||
|
||||
$title = $domain_import_data['domain_import']['title'];
|
||||
$image = $domain_import_data['domain_import']['image'];
|
||||
|
||||
eval("echo \"" . \Froxlor\UI\Template::getTemplate("domains/domains_import") . "\";");
|
||||
UI::twigBuffer('user/form-note.html.twig', [
|
||||
'formaction' => $linker->getLink(array('section' => 'domains', 'page' => $page)),
|
||||
'formdata' => $domain_import_data['domain_import'],
|
||||
// alert-box
|
||||
'type' => 'info',
|
||||
'alert_msg' => $lng['domains']['import_description']
|
||||
]);
|
||||
UI::twigOutputBuffer();
|
||||
}
|
||||
}
|
||||
} elseif ($page == 'domaindnseditor' && Settings::Get('system.dnsenabled') == '1') {
|
||||
|
||||
@@ -32,9 +32,10 @@ return array(
|
||||
),
|
||||
'offset' => array(
|
||||
'label' => $lng['domains']['import_offset'],
|
||||
'type' => 'text',
|
||||
'type' => 'number',
|
||||
'mandatory' => true,
|
||||
'size' => 10,
|
||||
'min' => 0,
|
||||
'value' => '0'
|
||||
),
|
||||
'file' => array(
|
||||
|
||||
8
templates/Froxlor/user/form-note.html.twig
Normal file
8
templates/Froxlor/user/form-note.html.twig
Normal file
@@ -0,0 +1,8 @@
|
||||
{% extends "Froxlor/user/form.html.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row mb-2">
|
||||
{% include 'Froxlor/misc/alertbox.html.twig' %}
|
||||
</div>
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user