wip
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
$header
|
||||
<form method="post" action="$filename" enctype="application/x-www-form-urlencoded">
|
||||
<form method="post" action="$filename" enctype="multipart/form-data">
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
|
||||
6
templates/Sparkle/assets/css/main.css
vendored
6
templates/Sparkle/assets/css/main.css
vendored
@@ -1745,3 +1745,9 @@ td.size-50 {
|
||||
.footer-link:last-child:after {
|
||||
content: "";
|
||||
}
|
||||
|
||||
.field-image-preview {
|
||||
max-width: 300px;
|
||||
max-height: 500px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
11
templates/Sparkle/formfields/image.tpl
vendored
Normal file
11
templates/Sparkle/formfields/image.tpl
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<tr>
|
||||
<td>{$label}</td>
|
||||
<td>
|
||||
<if $value>
|
||||
<img src="/{$value}" alt="Current Image" class="field-image-preview"><br>
|
||||
<input type="checkbox" value="1" name="{$fieldname}_delete" /> {$lng['panel']['image_field_delete']}
|
||||
<br><br>
|
||||
</if>
|
||||
<input <if $do_show == 0>disabled="disabled"</if> type="file" class="file" name="{$fieldname}" accept=".jpg, .jpeg, .png" />
|
||||
</td>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user