tmp commit

This commit is contained in:
iIronside
2022-11-10 16:00:43 +03:00
parent 45b110ac44
commit 1175b9f973
25 changed files with 4032 additions and 95 deletions

View File

@ -17,8 +17,8 @@ class DocumentTemplateSearch extends DocumentTemplate
public function rules()
{
return [
[['id'], 'integer'],
[['title', 'template_body'], 'safe'],
[['id', 'status'], 'integer'],
[['title', 'template_body', 'created_at', 'updated_at'], 'safe'],
];
}
@ -59,6 +59,9 @@ class DocumentTemplateSearch extends DocumentTemplate
// grid filtering conditions
$query->andFilterWhere([
'id' => $this->id,
'status' => $this->status,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
]);
$query->andFilterWhere(['like', 'title', $this->title])