add kulcsok, add tartós beszedés, add ticket type with intallments
This commit is contained in:
59
frontend/views/key/index.php
Normal file
59
frontend/views/key/index.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
use yii\helpers\Url;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $searchModel frontend\models\KeySearch */
|
||||
/* @var $dataProvider yii\data\ActiveDataProvider */
|
||||
|
||||
$this->title = Yii::t('frontend/key', 'Vendéghez rendelt kulcsok');
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="key-index">
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
|
||||
|
||||
<h2>Vendég: <?php echo $searchModel->card->customer->name ;?></h2>
|
||||
<h2>Kártyaszám: <?php echo $searchModel->card->number ;?></h2>
|
||||
<?= GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'columns' => [
|
||||
[
|
||||
'attribute' => 'key_number',
|
||||
'label' => 'Kulcs'
|
||||
|
||||
],
|
||||
[
|
||||
'attribute' => 'assign_created_at',
|
||||
'label' => 'Kiadás dátuma',
|
||||
'format' => 'datetime'
|
||||
|
||||
],
|
||||
[
|
||||
'attribute' => 'user_username',
|
||||
'label' => 'Felhasználó',
|
||||
],
|
||||
|
||||
['class' => 'yii\grid\ActionColumn',
|
||||
'template' => '{delete}',
|
||||
'buttons' => [
|
||||
'delete' => function ($url, $model, $key) {
|
||||
return Html::a('Visszaad', $url, ['class'=> 'btn btn-xs btn-danger','data-method' => 'post' ]) ;
|
||||
},
|
||||
],
|
||||
'urlCreator' => function ($action, $model, $key, $index){
|
||||
$url = "";
|
||||
if ( 'delete' == $action ){
|
||||
$url = Url::to(['key/delete','id_key' => $model['key_id_key']]);
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
||||
],
|
||||
],
|
||||
]); ?>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user