title = AmosTranslation::t('amostranslation', 'Manage translators'); $this->params['breadcrumbs'][] = ['label' => AmosTranslation::t('amostranslation', 'Translate manager'), 'url' => ['/translation']]; $this->params['breadcrumbs'][] = $this->title; ?>
render('_filter', ['model' => $model]); ?>

'btn btn-amministration-primary']) */ ?>

$dataProvider, 'columns' => [ 'nome', 'cognome', 'codice_fiscale', [ 'attribute' => 'languages', 'label' => AmosTranslation::t('amostranslation', 'Languages'), 'format' => 'html', 'value' => function ($model){ $languages = arter\amos\translation\models\TranslationUserLanguageMm::find()->andWhere(['user_id' => $model['user_id']]); if($languages->count()){ $i = 0; $lng = ''; foreach ($languages->all() as $l){ $lng .= ($i == 0? '' : '
') . $l->language; $i++; } return $lng; } else { return AmosTranslation::t('amostranslation', 'Not set'); } }, ], [ 'class' => \arter\amos\core\views\grid\ActionColumn::className(), 'template' => '{custom}', 'buttons' => [ 'custom' => function ($url, $model) { $url = yii\helpers\Url::current(); $urlDestination = \Yii::$app->urlManager->createUrl(['/translation/default/user-language', 'user_id' => $model['user_id'] , 'url' => $url]); return \yii\helpers\Html::a(AmosIcons::show('square-right', ['class' => 'btn btn-tool-secondary']), $urlDestination, [ 'title' => AmosTranslation::t('app', 'Choose the language he can translate'), ]); }, ] ] ], ]); ?>