| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- use yii\helpers\Html;
- use yii\grid\GridView;
- use yii\widgets\Pjax;
- /* @var $this yii\web\View */
- /* @var $searchModel app\models\LotSearch */
- /* @var $dataProvider yii\data\ActiveDataProvider */
- $this->title = Yii::t('app', 'Messages ID');
- $this->params['breadcrumbs'][] = $this->title;
- ?>
- <div class="panel panel-primary">
- <div class="panel-heading"><span class="glyphicon glyphicon-envelope"></span><strong> <?= Html::encode($this->title) ?></strong></div>
- <div class="panel-body">
- <div class="messages-index">
- <?= $this->render('_alert.php') ?>
- <?php Pjax::begin(); ?>
- <?= GridView::widget([
- 'dataProvider' => $dataProvider,
- 'columns' => [
- [
- 'attribute' => 'date',
- 'header' => Yii::t('app','Dates ID'),
- 'format' => 'datetime',
- ],
- [
- 'attribute' => 'notes',
- 'header' => Yii::t('app','Notes ID'),
- ],
- [
- 'class' => 'yii\grid\ActionColumn',
- 'template' => '{view}{delete}',
- 'buttons' => [
- 'view' => function($url, $model, $key){
- return Html::a('<i class="glyphicon glyphicon-eye-open"></i>', ['/messages/view', 'id' => $model['id']]);
- },
- 'delete' => function($url, $model, $key){
- return Html::a('<i class="glyphicon glyphicon-trash"></i>', ['/messages/delete', 'id' => $model['id']], [
- 'data' => [
- 'method' => 'post',
- ]
- ]);
- }
- ]
- ],
- ],
- ]); ?>
- <?php Pjax::end(); ?>
- </div>
- </div>
- </div>
|