openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

commit fce081953a12a7024a55676911b40a49427ba5df
parent 309ef131f518a74e36a3b2304449ea11491a312c
Author: Jan Dankert <develop@jandankert.de>
Date:   Tue, 21 May 2019 21:30:43 +0200

New: Tabellenfilter ist ausstellbar.

Diffstat:
modules/template-engine/components/html/table/Table.class.php | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/modules/template-engine/components/html/table/Table.class.php b/modules/template-engine/components/html/table/Table.class.php @@ -4,13 +4,17 @@ namespace template_engine\components; class TableComponent extends HtmlComponent { + public $filter = true; public $width = '100%'; public function begin() { echo '<div class="table-wrapper">'; - echo '<div class="table-filter"><input type="search" name="filter" placeholder="'.$this->htmlvalue('message:SEARCH_FILTER').'" /></div>'; + + if ( $this->filter) + echo '<div class="table-filter"><input type="search" name="filter" placeholder="'.$this->htmlvalue('message:SEARCH_FILTER').'" /></div>'; + echo '<table'; if ( !empty($this->class)) @@ -20,12 +24,12 @@ class TableComponent extends HtmlComponent echo ' width="'.$this->htmlvalue($this->width).'"'; echo '>'; - echo '</div>'; } public function end() { echo '</table>'; + echo '</div>'; } }