Changed days layout into table
This commit is contained in:
@@ -269,7 +269,7 @@ die();
|
||||
));
|
||||
|
||||
$form->add('label', 'label_why', 'why', 'Précisions');
|
||||
$obj = $form->add('textarea', 'why',$ar['why']);
|
||||
$obj = $form->add('textarea', 'why',$ar['why'], array('cols' => 60));
|
||||
$obj->set_rule(array(
|
||||
'required' => array('error', 'Merci de préciser la nature de la prestation!'),
|
||||
));
|
||||
@@ -338,7 +338,7 @@ die();
|
||||
));
|
||||
|
||||
$form->add('label', 'label_paiement_autre', 'paiement_autre', 'Autre');
|
||||
$obj = $form->add('textarea', 'paiement_autre', $ar['paiement_autre']);
|
||||
$obj = $form->add('textarea', 'paiement_autre', $ar['paiement_autre'], array('cols' => 60));
|
||||
$obj->set_rule(array(
|
||||
'required' => array('error', 'Merci de préciser la nature du paiement!'),
|
||||
'dependencies' => array(array(
|
||||
@@ -358,7 +358,7 @@ die();
|
||||
));
|
||||
|
||||
$form->add('label', 'label_adresse_distrib', 'adresse_distrib', 'Adresse de distribution');
|
||||
$obj = $form->add('textarea', 'adresse_distrib', $ar['adresse_distrib']);
|
||||
$obj = $form->add('textarea', 'adresse_distrib', $ar['adresse_distrib'], array('cols' => 60));
|
||||
$obj->set_rule(array(
|
||||
'required' => array('error', 'Merci de fournir une adresse de distribution'),
|
||||
'dependencies' => array(array(
|
||||
@@ -420,7 +420,7 @@ $(document).ready(function(){
|
||||
|
||||
var $form = $('#form'),
|
||||
$summands = $('.num_prest');
|
||||
var $sumDisplay = null,
|
||||
var $sumDisplay = null,
|
||||
$summandsNor = $form.find('.num_nor'),
|
||||
$summandsVip = $form.find('.num_vip'),
|
||||
|
||||
@@ -439,13 +439,13 @@ var $form = $('#form'),
|
||||
var value = Number($(this).val());
|
||||
if($(this).hasClass('num_nor')) {
|
||||
if (!isNaN(value)) {
|
||||
price = Number($(this).parent().parent().find('.prixnor').html().substring(4));
|
||||
price = Number($(this).parent().parent().find('.prixnor').html());
|
||||
cntNor += value;
|
||||
sumNor += price*value;
|
||||
}
|
||||
} else if($(this).hasClass('num_vip')) {
|
||||
if (!isNaN(value)) {
|
||||
price = Number($(this).parent().parent().find('.prixvip').html().substring(4));
|
||||
price = Number($(this).parent().parent().find('.prixvip').html());
|
||||
cntVip += value;
|
||||
sumVip += price*value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user