add domain-bulk-import, fixes #1452

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2014-12-15 14:49:34 +01:00
parent 7dd6f9b97c
commit cd5e8801e4
14 changed files with 710 additions and 2 deletions

View File

@@ -21,6 +21,9 @@
<div class="overviewadd">
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />&nbsp;
<a href="{$linker->getLink(array('section' => 'domains', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['domain_add']}</a>
&nbsp;
<img src="templates/{$theme}/assets/img/icons/archive.png" alt="" />&nbsp;
<a href="{$linker->getLink(array('section' => 'domains', 'page' => $page, 'action' => 'import'))}">{$lng['domains']['domain_import']}</a>
</div>
</if>

View File

@@ -0,0 +1,38 @@
$header
<article>
<header>
<h2>
<img src="templates/{$theme}/assets/img/icons/domain_add_big.png" alt="{$title}" />&nbsp;
{$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

View File

@@ -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;

View File

@@ -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
View File

@@ -0,0 +1,4 @@
<tr>
<td>{$label}</td>
<td><input type="file" class="file" name="{$fieldname}" /></td>
</tr>

View File

@@ -0,0 +1 @@
<input type="file" name="{$fieldname}" id="{$fieldname}" class="file" />