fix download buttons and sort order
This commit is contained in:
parent
7486334234
commit
38935fddd3
@ -46,6 +46,7 @@ class DocumentSearch extends Document
|
||||
|
||||
$dataProvider = new ActiveDataProvider([
|
||||
'query' => $query,
|
||||
'sort'=> ['defaultOrder' => ['id' => SORT_DESC]],
|
||||
]);
|
||||
|
||||
$this->load($params);
|
||||
|
@ -46,6 +46,7 @@ class DocumentTemplateSearch extends DocumentTemplate
|
||||
|
||||
$dataProvider = new ActiveDataProvider([
|
||||
'query' => $query,
|
||||
'sort'=> ['defaultOrder' => ['id' => SORT_DESC]],
|
||||
]);
|
||||
|
||||
$this->load($params);
|
||||
|
@ -38,8 +38,8 @@ $this->params['breadcrumbs'][] = 'Загрузить';
|
||||
|
||||
<div>
|
||||
<p>
|
||||
<?= Html::a('Скачать pdf', ['download', 'id' => $model->id, 'fileType' => 'docx'], ['class' => 'btn btn-success']) ?>
|
||||
<?= Html::a('Скачать docx', ['download', 'id' => $model->id, 'fileType' => 'pdf'], ['class' => 'btn btn-success']) ?>
|
||||
<?= Html::a('Скачать pdf', ['download', 'id' => $model->id, 'fileType' => 'pdf'], ['class' => 'btn btn-success']) ?>
|
||||
<?= Html::a('Скачать docx', ['download', 'id' => $model->id, 'fileType' => 'docx'], ['class' => 'btn btn-success']) ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user