add reception redirection change when card with key read

This commit is contained in:
2016-02-24 21:40:21 +01:00
parent ae212eddd4
commit 3b7f42014b
5 changed files with 33 additions and 3 deletions

View File

@@ -38,7 +38,15 @@ if ( $model->isCardWithCustomer() ){
],
[
'label' => 'Kulcsok',
'value' => $model->keysText,
'value' =>
empty($model->keysText) ? '' : (
"<form method='POST' action='". Url::toRoute(['key/toggle', "number" => $model->card->number])."'>"
.$model->keysText
.Html::hiddenInput("KeyToggleForm[key]", $model->keysText)
.Html::submitButton("Visszaad", [ 'style' => 'float: right;', 'class' => 'btn btn-primary btn-xs'])
."</form>")
,
'format' => 'raw'
],
[
'label' => 'Fénykép',