Settings page finished, filter gui improved
This commit is contained in:
+19
-5
@@ -313,9 +313,11 @@ $opt_special = array(
|
||||
<form method="post" action="<?=$g_scriptname?>">
|
||||
<div id="filter" class="card">
|
||||
<div class="card-header"><i class="bi bi-funnel me-2"></i>Filter</div>
|
||||
<div class="card-body">
|
||||
<div class="card-body d-flex flex-wrap gap-3">
|
||||
|
||||
<div class="d-flex flex-nowrap gap-2">
|
||||
<label for="flt_doctype">Type</label>
|
||||
<select id="flt_doctype" name="flt_doctype">
|
||||
<select class="form-select" id="flt_doctype" name="flt_doctype">
|
||||
<?php
|
||||
foreach ($opt_special + $opt_doctype as $k => $v) {
|
||||
echo '<option value="', $k,'"';
|
||||
@@ -326,8 +328,11 @@ foreach ($opt_special + $opt_doctype as $k => $v) {
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<label for="flt_reftype"><?=_('Ref.-Type')?></label>
|
||||
<select id="flt_reftype" name="flt_reftype">
|
||||
</div>
|
||||
|
||||
<div class="d-flex flex-nowrap gap-2">
|
||||
<label for="flt_reftype"><?=_('Reference')?></label>
|
||||
<select class="form-select" id="flt_reftype" name="flt_reftype">
|
||||
<?php
|
||||
$opt_special['none'] = _('― none ―');
|
||||
foreach ($opt_special + $opt_reftype as $k => $v) {
|
||||
@@ -339,11 +344,20 @@ foreach ($opt_special + $opt_reftype as $k => $v) {
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="d-flex flex-nowrap gap-2">
|
||||
<label for="flt_txt">Text</label>
|
||||
<input type="text" name="flt_txt" size="15" maxlength="30" value="<?=$flt->txt?>">
|
||||
<input type="text" class="form-control" name="flt_txt" size="15" maxlength="30" value="<?=$flt->txt ?>">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<button name="submit[filter]" class="btn btn-sm btn-primary" title="<?=_('Apply')?>"><?=_('Go')?></button>
|
||||
<button name="submit[freset]" class="btn btn-sm btn-secondary float-end" title="<?=_('Reset filter to defaults')?>"><?=_('Clear')?></button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user