|
|
@@ -462,6 +462,7 @@ $this->setPageTitle('Distributions') ; |
|
|
|
<div class="form-group"> |
|
|
|
<label class="control-label" for="select-id-user">Utilisateur</label> |
|
|
|
<select class="form-control" v-model="order.id_user"> |
|
|
|
<option value="0">--</option> |
|
|
|
<option v-for="user in users" :value="user.id_user">{{ user.lastname +' '+ user.name }}</option> |
|
|
|
</select> |
|
|
|
<input v-model="order.username" type="text" class="form-control" placeholder="Ou saisissez ici le nom de l'utilisateur" /> |
|
|
@@ -511,8 +512,8 @@ $this->setPageTitle('Distributions') ; |
|
|
|
</div> |
|
|
|
<div slot="footer"> |
|
|
|
<div class="actions-form"> |
|
|
|
<button class="modal-default-button btn btn-primary" @click="submitFormCreate" v-if="!order.id && order.id_user" data-process-credit="1">Créer et payer</button> |
|
|
|
<button class="modal-default-button btn btn-primary" @click="submitFormUpdate" v-if="order.id && order.id_user" data-process-credit="1">Modifier et payer</button> |
|
|
|
<button class="modal-default-button btn btn-primary" @click="submitFormCreate" v-if="!order.id && order.id_user > 0" data-process-credit="1">Créer et payer</button> |
|
|
|
<button class="modal-default-button btn btn-primary" @click="submitFormUpdate" v-if="order.id && order.id_user > 0" data-process-credit="1">Modifier et payer</button> |
|
|
|
|
|
|
|
<button class="modal-default-button btn btn-primary" @click="submitFormUpdate" v-if="order.id">Modifier</button> |
|
|
|
<button class="modal-default-button btn btn-primary" @click="submitFormCreate" v-else>Créer</button> |