Commit ce5267e3 authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Correction : rename attribute virtuel quand les champs sont obligatoire

parent 848bef0b
...@@ -48,7 +48,7 @@ foreach ($champs as $key => $value) { ...@@ -48,7 +48,7 @@ foreach ($champs as $key => $value) {
// Grand champ texte // Grand champ texte
case 'textarea': case 'textarea':
echo '<div class="draggable form-group col-md-6 long-text" style="top:' . $line . 'px; ' . $colonne . '" virtual-data-required="'.$champObligatoire.'" virtual-data-repeat="'.$fieldRepeat.'">' echo '<div class="draggable form-group col-md-6 long-text" style="top:' . $line . 'px; ' . $colonne . '" data-virtual-required="'.$champObligatoire.'" virtual-data-repeat="'.$fieldRepeat.'">'
. '<div class="col-md-4">' . '<div class="col-md-4">'
. '<label>' . '<label>'
. '<span class="labeler">' . $details['label'] . '</span>' . '<span class="labeler">' . $details['label'] . '</span>'
...@@ -63,7 +63,7 @@ foreach ($champs as $key => $value) { ...@@ -63,7 +63,7 @@ foreach ($champs as $key => $value) {
// Champ date // Champ date
case 'date': case 'date':
echo '<div class="draggable form-group col-md-6 date" style="top:' . $line . 'px; ' . $colonne . '" virtual-data-required="'.$champObligatoire.'" virtual-data-repeat="'.$fieldRepeat.'">' echo '<div class="draggable form-group col-md-6 date" style="top:' . $line . 'px; ' . $colonne . '" data-virtual-required="'.$champObligatoire.'" virtual-data-repeat="'.$fieldRepeat.'">'
. '<div class="col-md-4">' . '<div class="col-md-4">'
. '<label>' . '<label>'
. '<span class="labeler">' . $details['label'] . '</span>' . '<span class="labeler">' . $details['label'] . '</span>'
...@@ -99,7 +99,7 @@ foreach ($champs as $key => $value) { ...@@ -99,7 +99,7 @@ foreach ($champs as $key => $value) {
// Cases à cocher // Cases à cocher
case 'checkboxes': case 'checkboxes':
echo '<div class="draggable form-group col-md-6 checkboxes" style="top: '.$line.'px; '.$colonne.'" data="'.$champObligatoire.'"> echo '<div class="draggable form-group col-md-6 checkboxes" style="top: '.$line.'px; '.$colonne.'" data-virtual-required="'.$champObligatoire.'">
<div class="input select"> <div class="input select">
<label class="col-md-4"> <label class="col-md-4">
<span class="labeler">'.$details['label'].'</span> <span class="labeler">'.$details['label'].'</span>
...@@ -124,7 +124,7 @@ foreach ($champs as $key => $value) { ...@@ -124,7 +124,7 @@ foreach ($champs as $key => $value) {
// Choix unique // Choix unique
case 'radios': case 'radios':
echo '<div class="draggable form-group col-md-6 radios" style="top:' . $line . 'px; ' . $colonne . '" virtual-data-required="'.$champObligatoire.'" virtual-data-repeat="'.$fieldRepeat.'">' echo '<div class="draggable form-group col-md-6 radios" style="top:' . $line . 'px; ' . $colonne . '" data-virtual-required="'.$champObligatoire.'" virtual-data-repeat="'.$fieldRepeat.'">'
. '<div class="col-md-4">' . '<div class="col-md-4">'
. '<label>' . '<label>'
. '<span class="labeler">' . $details['label'] . '</span>' . '<span class="labeler">' . $details['label'] . '</span>'
...@@ -147,7 +147,7 @@ foreach ($champs as $key => $value) { ...@@ -147,7 +147,7 @@ foreach ($champs as $key => $value) {
// Menu déroulant // Menu déroulant
case 'deroulant': case 'deroulant':
echo '<div class="draggable form-group col-md-6 deroulant" style="top:' . $line . 'px; ' . $colonne . '" virtual-data-required="'.$champObligatoire.'" virtual-data-repeat="'.$fieldRepeat.'">' echo '<div class="draggable form-group col-md-6 deroulant" style="top:' . $line . 'px; ' . $colonne . '" data-virtual-required="'.$champObligatoire.'" virtual-data-repeat="'.$fieldRepeat.'">'
. '<div class="col-md-4">' . '<div class="col-md-4">'
. '<label>' . '<label>'
. '<span class="labeler">' . $details['label'] . '</span>' . '<span class="labeler">' . $details['label'] . '</span>'
...@@ -173,7 +173,7 @@ foreach ($champs as $key => $value) { ...@@ -173,7 +173,7 @@ foreach ($champs as $key => $value) {
break; break;
case 'multi-select' : case 'multi-select' :
echo '<div class="draggable col-md-6 form-group multi-select" style="top:'.$line.'px; '.$colonne.'" data="'.$champObligatoire.'">' echo '<div class="draggable col-md-6 form-group multi-select" style="top:'.$line.'px; '.$colonne.'" data-virtual-required="'.$champObligatoire.'">'
.'<div class="col-md-4">' .'<div class="col-md-4">'
.'<label>' .'<label>'
.'<span class="labeler">' . $details['label'] . '</span>' .'<span class="labeler">' . $details['label'] . '</span>'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment