Skip to content

Commit 297629c

Browse files
committed
Added pagination
1 parent b5948bd commit 297629c

File tree

6 files changed

+56
-5
lines changed

6 files changed

+56
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
## 1.1.8 (2020-03-27)
5+
* Added pagination
6+
* Up to date dependencies
7+
48
## 1.1.7 (2019-12-10)
59
* Fixed deprecated class declaration
610

Module.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Yii2 Tickets
77
*
88
* @category Module
9-
* @version 1.1.7
9+
* @version 1.1.8
1010
* @author Alexsander Vyshnyvetskyy <alex.vyshnyvetskyy@gmail.com>
1111
* @link https://github.com/wdmg/yii2-tickets
1212
* @copyright Copyright (c) 2019 - 2020 W.D.M.Group, Ukraine
@@ -45,7 +45,7 @@ class Module extends BaseModule
4545
/**
4646
* @var string the module version
4747
*/
48-
private $version = "1.1.7";
48+
private $version = "1.1.8";
4949

5050
/**
5151
* @var integer, priority of initialization

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
[![Progress](https://img.shields.io/badge/required-Yii2_v2.0.13-blue.svg)](https://packagist.org/packages/yiisoft/yii2) [![Github all releases](https://img.shields.io/github/downloads/wdmg/yii2-tickets/total.svg)](https://github.com/wdmg/yii2-tickets/releases/) [![GitHub version](https://badge.fury.io/gh/wdmg%2Fyii2-tickets.svg)](https://github.com/wdmg/yii2-tickets) ![Progress](https://img.shields.io/badge/progress-in_development-red.svg) [![GitHub license](https://img.shields.io/github/license/wdmg/yii2-tickets.svg)](https://github.com/wdmg/yii2-tickets/blob/master/LICENSE)
1+
[![Progress](https://img.shields.io/badge/required-Yii2_v2.0.33-blue.svg)](https://packagist.org/packages/yiisoft/yii2)
2+
[![Github all releases](https://img.shields.io/github/downloads/wdmg/yii2-tickets/total.svg)](https://github.com/wdmg/yii2-tickets/releases/)
3+
[![GitHub version](https://badge.fury.io/gh/wdmg%2Fyii2-tickets.svg)](https://github.com/wdmg/yii2-tickets)
4+
![Progress](https://img.shields.io/badge/progress-in_development-red.svg)
5+
[![GitHub license](https://img.shields.io/github/license/wdmg/yii2-tickets.svg)](https://github.com/wdmg/yii2-tickets/blob/master/LICENSE)
26

37
# Yii2 Tickets Module
48
Ticket system for Yii2
59

610
# Requirements
711
* PHP 5.6 or higher
8-
* Yii2 v.2.0.20 and newest
12+
* Yii2 v.2.0.33 and newest
913
* [Yii2 Base](https://github.com/wdmg/yii2-base) module (required)
1014
* [Yii2 Editor](https://github.com/wdmg/yii2-editor) module
1115
* [Yii2 Tasks](https://github.com/wdmg/yii2-tasks) module (optionaly)
@@ -57,6 +61,7 @@ Use the `Module::dashboardNavItems()` method of the module to generate a navigat
5761

5862

5963
# Status and version [in progress development]
64+
* v.1.1.8 - Added pagination, up to date dependencies
6065
* v.1.1.7 - Fixed deprecated class declaration
6166
* v.1.1.6 - Added extra options to composer.json and navbar menu icon
6267
* v.1.1.5 - Added choice param for non interactive mode

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"keywords": ["yii2", "yii2-tickets", "ticket system", "wdmg"],
55
"type": "yii2-extension",
66
"license": "MIT",
7-
"version": "1.1.7",
7+
"version": "1.1.8",
88
"homepage": "https://github.com/wdmg/yii2-tickets",
99
"support": {
1010
"source": "https://github.com/wdmg/yii2-tickets",

views/attachments/index.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,27 @@
3636

3737
['class' => 'yii\grid\ActionColumn'],
3838
],
39+
'pager' => [
40+
'options' => [
41+
'class' => 'pagination',
42+
],
43+
'maxButtonCount' => 5,
44+
'activePageCssClass' => 'active',
45+
'linkContainerOptions' => [
46+
'class' => 'linkContainerOptions',
47+
],
48+
'linkOptions' => [
49+
'class' => 'linkOptions',
50+
],
51+
'prevPageCssClass' => '',
52+
'nextPageCssClass' => '',
53+
'firstPageCssClass' => 'previous',
54+
'lastPageCssClass' => 'next',
55+
'firstPageLabel' => Yii::t('app/modules/tickets', 'First page'),
56+
'lastPageLabel' => Yii::t('app/modules/tickets', 'Last page'),
57+
'prevPageLabel' => Yii::t('app/modules/tickets', '&larr; Prev page'),
58+
'nextPageLabel' => Yii::t('app/modules/tickets', 'Next page &rarr;')
59+
],
3960
]); ?>
4061
<?php Pjax::end(); ?>
4162
</div>

views/messages/index.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,27 @@
3636

3737
['class' => 'yii\grid\ActionColumn'],
3838
],
39+
'pager' => [
40+
'options' => [
41+
'class' => 'pagination',
42+
],
43+
'maxButtonCount' => 5,
44+
'activePageCssClass' => 'active',
45+
'linkContainerOptions' => [
46+
'class' => 'linkContainerOptions',
47+
],
48+
'linkOptions' => [
49+
'class' => 'linkOptions',
50+
],
51+
'prevPageCssClass' => '',
52+
'nextPageCssClass' => '',
53+
'firstPageCssClass' => 'previous',
54+
'lastPageCssClass' => 'next',
55+
'firstPageLabel' => Yii::t('app/modules/tickets', 'First page'),
56+
'lastPageLabel' => Yii::t('app/modules/tickets', 'Last page'),
57+
'prevPageLabel' => Yii::t('app/modules/tickets', '&larr; Prev page'),
58+
'nextPageLabel' => Yii::t('app/modules/tickets', 'Next page &rarr;')
59+
],
3960
]); ?>
4061
<?php Pjax::end(); ?>
4162
</div>

0 commit comments

Comments
 (0)