Browse Source

[Boutique] Abonnements : amélioration ergonomie

feature/souke
Guillaume Bourgeois 9 months ago
parent
commit
cfe20da198
2 changed files with 22 additions and 21 deletions
  1. +21
    -20
      producer/views/subscription/_form.php
  2. +1
    -1
      producer/web/js/vuejs/subscription-form.js

+ 21
- 20
producer/views/subscription/_form.php View File

@@ -99,27 +99,28 @@ $orderModule = OrderModule::getInstance();
</div>
<h3 id="step-date"><span>Dates</span></h3>
<div class="col-md-4">
<div class="form-group">
<label>Date de début</label>
<v-date-picker
mode="single"
v-model="dateBegin"
:input-props='{class: "form-control", placeholder: "" }'>
</v-date-picker>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>Date de début</label>
<v-date-picker
mode="single"
v-model="dateBegin"
:input-props='{class: "form-control", placeholder: "" }'>
</v-date-picker>
</div>
</div>
</div>
<div class="clr"></div>
<div class="col-md-4">
<div class="form-group">
<label>Date de fin</label>
<v-date-picker
mode="single"
v-model="dateEnd"
:min-date="dateBegin"
:input-props='{class: "form-control", placeholder: ""}'>
</v-date-picker>
<div class="hint-block">Laisser vide pour une durée indéterminée</div>
<div class="col-md-4">
<div class="form-group">
<label>Date de fin</label>
<v-date-picker
mode="single"
v-model="dateEnd"
:min-date="dateBegin"
:input-props='{class: "form-control", placeholder: ""}'>
</v-date-picker>
<div class="hint-block">Laisser vide pour une durée indéterminée</div>
</div>
</div>
</div>
<div class="clr"></div>

+ 1
- 1
producer/web/js/vuejs/subscription-form.js View File

@@ -35,7 +35,7 @@ var app = new Vue({
this.idSubscription = $('#subscription-id').val();
}

this.dateBegin = new Date();
//this.dateBegin = new Date();

axios.get("ajax-infos", {params: {idSubscription: this.idSubscription}})
.then(function (response) {

Loading…
Cancel
Save