Browse Source

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

refactoring
Guillaume Bourgeois 4 years ago
parent
commit
d9ce2c5551
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/views/document/_form.php

+ 1
- 1
backend/views/document/_form.php View File

<?= $form->field($model, 'name')->label('Nom du document') ?> <?= $form->field($model, 'name')->label('Nom du document') ?>
<?php $usersArray = User::findBy()->all() ; ?> <?php $usersArray = User::findBy()->all() ; ?>
<?= $form->field($model, 'id_user', [ <?= $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( ->dropDownList(
ArrayHelper::map($usersArray, 'user_id', function($model) { return $model['lastname'].' '.$model['name']; }), ArrayHelper::map($usersArray, 'user_id', function($model) { return $model['lastname'].' '.$model['name']; }),

Loading…
Cancel
Save