add domain-bulk-import, fixes #1452
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
3
templates/Sparkle/admin/domains/domains.tpl
vendored
3
templates/Sparkle/admin/domains/domains.tpl
vendored
@@ -21,6 +21,9 @@
|
||||
<div class="overviewadd">
|
||||
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />
|
||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['domain_add']}</a>
|
||||
|
||||
<img src="templates/{$theme}/assets/img/icons/archive.png" alt="" />
|
||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => $page, 'action' => 'import'))}">{$lng['domains']['domain_import']}</a>
|
||||
</div>
|
||||
</if>
|
||||
|
||||
|
||||
38
templates/Sparkle/admin/domains/domains_import.tpl
vendored
Normal file
38
templates/Sparkle/admin/domains/domains_import.tpl
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
$header
|
||||
<article>
|
||||
<header>
|
||||
<h2>
|
||||
<img src="templates/{$theme}/assets/img/icons/domain_add_big.png" alt="{$title}" />
|
||||
{$title}
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<div class="messagewrapperfull">
|
||||
<div class="warningcontainer bradius">
|
||||
<div class="warningtitle">{$lng['admin']['note']}</div>
|
||||
<div class="warning">{$lng['domains']['import_description']}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
|
||||
<form action="{$linker->getLink(array('section' => 'domains'))}" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
|
||||
<table class="full">
|
||||
{$domain_import_form}
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</section>
|
||||
<br />
|
||||
<section>
|
||||
<p>
|
||||
<span class="red">*</span>: {$lng['admin']['valuemandatory']}
|
||||
</p>
|
||||
</section>
|
||||
</article>
|
||||
$footer
|
||||
8
templates/Sparkle/assets/css/froxlor.css
vendored
8
templates/Sparkle/assets/css/froxlor.css
vendored
@@ -157,7 +157,7 @@ input {
|
||||
/*
|
||||
* BUTTONS
|
||||
*/
|
||||
input[type="button"],input[type="submit"],input[type="reset"] {
|
||||
input[type="button"],input[type="submit"],input[type="reset"],input[type="file"] {
|
||||
padding:4px 10px;
|
||||
margin:0 30px 0 0;
|
||||
height:30px;
|
||||
@@ -185,6 +185,12 @@ input[class="nobutton"],input[type="reset"],input[class="nobutton"]:hover,input[
|
||||
padding-left:25px;
|
||||
}
|
||||
|
||||
input[type="file"] {
|
||||
color:blue!important;
|
||||
background:#ccc url('../img/icons/button_ok.png') no-repeat 4px 8px!important;
|
||||
padding-left:25px;
|
||||
}
|
||||
|
||||
select {
|
||||
color:#000;
|
||||
background-color:#dae7ee;
|
||||
|
||||
7
templates/Sparkle/assets/css/main.css
vendored
7
templates/Sparkle/assets/css/main.css
vendored
@@ -590,7 +590,7 @@ input[type="password"] {
|
||||
/*
|
||||
* BUTTONS
|
||||
*/
|
||||
input[type="button"],input[type="submit"],input[type="reset"] {
|
||||
input[type="button"],input[type="submit"],input[type="reset"],input[type="file"] {
|
||||
margin:0 5px;
|
||||
padding:5px 14px;
|
||||
outline:0;
|
||||
@@ -637,6 +637,11 @@ input[class="nobutton"],input[type="reset"] {
|
||||
background-color:#d84a38;
|
||||
}
|
||||
|
||||
input[type="file"] {
|
||||
background-color:#FFFFFF;
|
||||
padding-left:0px;
|
||||
}
|
||||
|
||||
input[class="nobutton"]:hover,input[type="reset"]:hover {
|
||||
color:#fff;
|
||||
background-color:#c53727;
|
||||
|
||||
4
templates/Sparkle/formfields/file.tpl
vendored
Normal file
4
templates/Sparkle/formfields/file.tpl
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<tr>
|
||||
<td>{$label}</td>
|
||||
<td><input type="file" class="file" name="{$fieldname}" /></td>
|
||||
</tr>
|
||||
1
templates/Sparkle/misc/form/input_file.tpl
vendored
Normal file
1
templates/Sparkle/misc/form/input_file.tpl
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<input type="file" name="{$fieldname}" id="{$fieldname}" class="file" />
|
||||
Reference in New Issue
Block a user