fix filter submit button
This commit is contained in:
		@@ -73,8 +73,8 @@ class ListJsonTable extends JasonTable
 | 
			
		||||
        }
 | 
			
		||||
        if ($this->showFiltersRow) {
 | 
			
		||||
            $this->getFilters($columnKeys);
 | 
			
		||||
            $this->html .= "</thead>";
 | 
			
		||||
        }
 | 
			
		||||
        $this->html .= "</thead>";
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function createTbody(): void
 | 
			
		||||
@@ -271,8 +271,10 @@ class ListJsonTable extends JasonTable
 | 
			
		||||
    private function getFilters(array $columnKeys): void
 | 
			
		||||
    {
 | 
			
		||||
        $this->html .= "<tr><form action='$this->baseUrl/search'>";
 | 
			
		||||
        $flag = false;
 | 
			
		||||
        foreach ($columnKeys as $key) {
 | 
			
		||||
            if ($this->issetFilter($key)) {
 | 
			
		||||
                $flag = true;
 | 
			
		||||
                $filter = $this->getCurrentFilter($key);
 | 
			
		||||
                $params = [
 | 
			
		||||
                    'param' => $filter['param'] ?? '',
 | 
			
		||||
@@ -290,7 +292,8 @@ class ListJsonTable extends JasonTable
 | 
			
		||||
                $this->html .= "<td></td>";
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        if ($this->showActionColumn) {
 | 
			
		||||
        if ($flag) {
 | 
			
		||||
            $this->showActionColumn = true;
 | 
			
		||||
            $this->html .= "<td><input class='btn btn-primary' type='submit' style='width: 150px' value='Применить'></td>";
 | 
			
		||||
        }
 | 
			
		||||
        $this->html .= "</form></tr>";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user