Commit c40b1824 authored by Ad Schellevis's avatar Ad Schellevis

spacing and cleanups in picture.widget.php

parent 569365fb
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
*/ */
$nocsrf = true;
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
...@@ -69,40 +67,38 @@ if ($_POST) { ...@@ -69,40 +67,38 @@ if ($_POST) {
?> ?>
<input type="hidden" id="picture-config" name="picture-config" value="" />
<div id="picture-settings" class="widgetconfigdiv" style="display:none;"> <div id="picture-settings" class="widgetconfigdiv" style="display:none;">
<form action="/widgets/widgets/picture.widget.php" method="post" name="iforma" enctype="multipart/form-data"> <form action="/widgets/widgets/picture.widget.php" method="post" name="iforma" enctype="multipart/form-data">
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<td> <td>
<input name="pictfile" type="file" class="btn btn-primary formbtn" id="pictfile" size="20" /> <input name="pictfile" type="file" class="btn btn-primary formbtn" id="pictfile" size="20" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<input id="submita" name="submita" type="submit" class="btn btn-primary formbtn" value="<?= gettext('Upload') ?>" /> <input id="submita" name="submita" type="submit" class="btn btn-primary formbtn" value="<?= gettext('Upload') ?>" />
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
<!-- hide picture if none is defined in the configuration --> <!-- hide picture if none is defined in the configuration -->
<?php if ($config['widgets']['picturewidget_filename'] != "") : <?php
?> if ($config['widgets']['picturewidget_filename'] != "") :?>
<div id="picture-widgets" style="padding: 5px"> <div id="picture-widgets" style="padding: 5px">
<a href='/widgets/widgets/picture.widget.php?getpic=true' target='_blank'> <a href='/widgets/widgets/picture.widget.php?getpic=true' target='_blank'>
<img border="0" width="100%" height="100%" src="/widgets/widgets/picture.widget.php?getpic=true" alt="picture" /> <img border="0" width="100%" height="100%" src="/widgets/widgets/picture.widget.php?getpic=true" alt="picture" />
</a> </a>
</div> </div>
<?php <?php
endif ?> endif ?>
<!-- needed to show the settings widget icon --> <!-- needed to show the settings widget icon -->
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
selectIntLink = "picture-configure"; selectIntLink = "picture-configure";
textlink = document.getElementById(selectIntLink); textlink = document.getElementById(selectIntLink);
textlink.style.display = "inline"; textlink.style.display = "inline";
//]]> //]]>
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment