@@ -60,7 +60,7 @@ var app = new Vue({ | |||
}) ; | |||
}, | |||
changeQuantityProductSubscription: function(increase, product) { | |||
var step = step ? parseFloat(product.step) : 1 ; | |||
var step = product.step ? parseFloat(product.step) : 1 ; | |||
if(!product.quantity) product.quantity = 0 ; | |||
var quantity = parseFloat(product.quantity) ; | |||
if(!increase) { |
@@ -53,7 +53,7 @@ class CreditForm extends Model | |||
{ | |||
return [ | |||
[['amount'], 'required'], | |||
[['amount'], 'double', 'min' => 15], | |||
[['amount'], 'double', 'min' => 25], | |||
]; | |||
} | |||
@@ -62,7 +62,7 @@ $this->addButton( | |||
'template' => '{label}<div class="input-group input-group-lg">{input}<span class="input-group-addon"><span class="glyphicon glyphicon-euro"></span></span></div>{hint}', | |||
]) | |||
->label('Quel montant souhaitez-vous créditer ?') | |||
->hint('Montant minimum : 15 €'); ?> | |||
->hint('Montant minimum : 25 €'); ?> | |||
<div class="form-group"> | |||
<?= Html::submitButton('<span class="glyphicon glyphicon-lock"></span> Payer', ['class' => 'btn btn-primary'] |