#1: Log Card Read In Botond
This commit is contained in:
@@ -19,6 +19,8 @@ use common\models\Account;
|
||||
|
||||
<?= $form->field($model, 'type')->dropDownList(Account::types()) ?>
|
||||
|
||||
<?= $form->field($model, 'log_card_read_in_reception')->checkbox([], false) ?>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton($model->isNewRecord ? Yii::t('common/account', 'Create') : Yii::t('common/account', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
|
||||
|
||||
@@ -22,26 +22,33 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
</p>
|
||||
<?php }?>
|
||||
|
||||
<?= GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'columns' => [
|
||||
'name',
|
||||
[
|
||||
'attribute' => 'status',
|
||||
'value' => 'statusHuman',
|
||||
],
|
||||
[
|
||||
'attribute' => 'type',
|
||||
'value' => 'typeHuman',
|
||||
],
|
||||
'created_at:datetime',
|
||||
'updated_at:datetime',
|
||||
<?=
|
||||
/** @noinspection PhpUnhandledExceptionInspection */
|
||||
GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'columns' => [
|
||||
'name',
|
||||
[
|
||||
'attribute' => 'status',
|
||||
'value' => 'statusHuman',
|
||||
],
|
||||
[
|
||||
'attribute' => 'type',
|
||||
'value' => 'typeHuman',
|
||||
],
|
||||
[
|
||||
'attribute' => 'log_card_read_in_reception',
|
||||
'value' => function($model) { return $model->log_card_read_in_reception == '1' ? 'Igen' : 'Nem'; }
|
||||
],
|
||||
'created_at:datetime',
|
||||
'updated_at:datetime',
|
||||
|
||||
['class' => 'yii\grid\ActionColumn',
|
||||
'template' => RoleDefinition::getRoleTemplate( ['admin' => '{view} {update}','employee' => '{view}' , 'reception' => '{view}']),
|
||||
|
||||
],
|
||||
],
|
||||
]); ?>
|
||||
['class' => 'yii\grid\ActionColumn',
|
||||
'template' => RoleDefinition::getRoleTemplate(['admin' => '{view} {update}', 'employee' => '{view}', 'reception' => '{view}']),
|
||||
|
||||
],
|
||||
],
|
||||
]);
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -21,7 +21,8 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
</p>
|
||||
<?php }?>
|
||||
|
||||
<?= DetailView::widget([
|
||||
<?= /** @noinspection PhpUnhandledExceptionInspection */
|
||||
DetailView::widget([
|
||||
'model' => $model,
|
||||
'attributes' => [
|
||||
'name',
|
||||
@@ -34,6 +35,10 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'attribute' => 'type',
|
||||
'value' => $model->typeHuman
|
||||
],
|
||||
[
|
||||
'attribute' => 'log_card_read_in_reception',
|
||||
'value' => $model->log_card_read_in_reception == '1' ? 'Igen' : 'Nem'
|
||||
],
|
||||
'created_at:datetime',
|
||||
'updated_at:datetime',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user