Przeglądaj źródła

Correction formulaire de création de document : glyphicon en trop #166

refactoring
Guillaume Bourgeois 4 lat temu
rodzic
commit
d9ce2c5551
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      backend/views/document/_form.php

+ 1
- 1
backend/views/document/_form.php Wyświetl plik

@@ -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']; }),

Ładowanie…
Anuluj
Zapisz