move submit button at end of form

This commit is contained in:
Uwe Steinmann 2021-12-03 10:49:27 +01:00
parent 368b0fc6a5
commit 84442d68f0

View File

@ -303,7 +303,6 @@ function typeahead() { /* {{{ */
} }
} }
} }
$this->formSubmit("<i class=\"fa fa-search\"></i> ".getMLText('search'));
$this->contentContainerEnd(); $this->contentContainerEnd();
/* First check if any of the folder filters are set. If it is, /* First check if any of the folder filters are set. If it is,
@ -428,8 +427,11 @@ function typeahead() { /* {{{ */
} }
} }
$content = ob_get_clean(); $content = ob_get_clean();
$this->printAccordion(getMLText('filter_for_folders'), $content); if($content)
$this->printAccordion(getMLText('filter_for_folders'), $content);
// }}} // }}}
$this->formSubmit("<i class=\"fa fa-search\"></i> ".getMLText('search'));
?> ?>
</form> </form>
</div> </div>
@ -437,7 +439,7 @@ function typeahead() { /* {{{ */
if($enablefullsearch) { if($enablefullsearch) {
echo "<div class=\"tab-pane ".(($fullsearch == true) ? 'active' : '')."\" id=\"fulltext\">\n"; echo "<div class=\"tab-pane ".(($fullsearch == true) ? 'active' : '')."\" id=\"fulltext\">\n";
?> ?>
<form action="<?= $this->params['settings']->_httpRoot ?>out/out.Search.php" name="form2" style="min-height: 330px;"> <form class="form-horizontal" action="<?= $this->params['settings']->_httpRoot ?>out/out.Search.php" name="form2" style="min-height: 330px;">
<input type="hidden" name="fullsearch" value="1" /> <input type="hidden" name="fullsearch" value="1" />
<?php <?php
$this->contentContainerStart(); $this->contentContainerStart();