Browse Source

[Administration] Distribution > Création commande : ajout lien pour créer utilisateur

feature/souke
Guillaume Bourgeois 10 months ago
parent
commit
767d183bf0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      backend/views/distribution/index.php

+ 4
- 0
backend/views/distribution/index.php View File

@@ -649,6 +649,10 @@ $this->setPageTitle('Distributions') ;
<a v-if="producer && producer.credit && order.id_user > 0 && user.id_user == order.id_user" class="btn btn-xs btn-primary btn-credit" :href="baseUrl+'/user/credit?id='+user.id_user" v-for="user in users">{{ parseFloat(user.credit).toFixed(2).replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+'&nbsp;€' }}</a>
<label class="control-label" for="select-id-user">
Utilisateur
<a v-if="!order.id_user || order.id_user == 0" class="btn btn-default btn-xs" href="<?= Yii::$app->urlManager->createUrl('user/create'); ?>">
<span class="glyphicon glyphicon-plus"></span>
Créer un utilisateur
</a>
</label>
<select class="form-control select2-order-form" v-model="order.id_user" @change="userChange">
<option value="0">--</option>

Loading…
Cancel
Save