Bläddra i källkod

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

refactoring
Guillaume Bourgeois 4 år sedan
förälder
incheckning
d9ce2c5551
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      backend/views/document/_form.php

+ 1
- 1
backend/views/document/_form.php Visa fil

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

Laddar…
Avbryt
Spara