Skip to content

Commit

Permalink
Suchfeld mit Value vorbelegen (#5389)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeberhard committed Nov 2, 2022
1 parent 6fcb0aa commit 92db98e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion redaxo/src/core/fragments/core/form/search.php
Expand Up @@ -13,13 +13,17 @@
if (isset($this->autofocus) && $this->autofocus) {
$autofocus = ' autofocus ';
}
$value = (string) $this->getVar('value', '');
if ('' !== $value) {
$value = ' value="'.rex_escape($value).'"';
}

if ($this->id) {
$id = ' id="' . $this->id .'"';
}

echo '<div class="'. $class . '"' . $id . '>
<span class="input-group-addon clear-button"><i class="rex-icon rex-icon-search"></i></span>
<input class="form-control" type="text"' . $autofocus . $placeholder . '>
<input class="form-control" type="text"' . $autofocus . $placeholder . $value . '>
<span title="' . $clear . '" class="form-control-clear rex-icon rex-icon-clear form-control-feedback hidden"></span>
</div>';

0 comments on commit 92db98e

Please sign in to comment.