|
|
@@ -58,7 +58,7 @@ use common\models\Producer; |
|
|
|
<?= $form->field($model, 'name')->label('Nom du document') ?> |
|
|
|
<?php $usersArray = User::findBy()->all() ; ?> |
|
|
|
<?= $form->field($model, 'id_user', [ |
|
|
|
'template' => '{label} <a href="'.Yii::$app->urlManager->createUrl(['user/create']).'" class="btn btn-xs btn-default">Nouvel utilisateur <span class="glyphicon glyphicon-plus"></span></a><div class="input-group">{input}<span class="input-group-addon"><span class="glyphicon glyphicon-euro"></span></span></div>{hint}', |
|
|
|
'template' => '{label} <a href="'.Yii::$app->urlManager->createUrl(['user/create']).'" class="btn btn-xs btn-default">Nouvel utilisateur <span class="glyphicon glyphicon-plus"></span></a><div>{input}</div>{hint}', |
|
|
|
]) |
|
|
|
->dropDownList( |
|
|
|
ArrayHelper::map($usersArray, 'user_id', function($model) { return $model['lastname'].' '.$model['name']; }), |