|
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label class="control-label" for="select-id-user">Utilisateur</label> |
|
|
<label class="control-label" for="select-id-user">Utilisateur</label> |
|
|
<select class="form-control" v-model="order.id_user"> |
|
|
<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> |
|
|
<option v-for="user in users" :value="user.id_user">{{ user.lastname +' '+ user.name }}</option> |
|
|
</select> |
|
|
</select> |
|
|
<input v-model="order.username" type="text" class="form-control" placeholder="Ou saisissez ici le nom de l'utilisateur" /> |
|
|
<input v-model="order.username" type="text" class="form-control" placeholder="Ou saisissez ici le nom de l'utilisateur" /> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div slot="footer"> |
|
|
<div slot="footer"> |
|
|
<div class="actions-form"> |
|
|
<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="submitFormUpdate" v-if="order.id">Modifier</button> |
|
|
<button class="modal-default-button btn btn-primary" @click="submitFormCreate" v-else>Créer</button> |
|
|
<button class="modal-default-button btn btn-primary" @click="submitFormCreate" v-else>Créer</button> |