| Line 159... |
Line 159... |
| 159 |
'Pas d\'espaces, aucuns caractères spéciaux (accents, cédilles, etc.).' +
|
159 |
'Pas d\'espaces, aucuns caractères spéciaux (accents, cédilles, etc.).' +
|
| 160 |
'</p>' +
|
160 |
'</p>' +
|
| 161 |
// Type de champ
|
161 |
// Type de champ
|
| 162 |
'<div class="col-sm-12 mt-3 add-field-select" data-id="' + fieldIndex + '">'+
|
162 |
'<div class="col-sm-12 mt-3 add-field-select" data-id="' + fieldIndex + '">'+
|
| 163 |
'<label for="field-element" title="Quel type de champ">Type de champ *</label>'+
|
163 |
'<label for="field-element" title="Quel type de champ">Type de champ *</label>'+
|
| 164 |
'<select name="field-element" data-id="' + fieldIndex + '" class="field-element form-control">'+
|
164 |
'<select name="field-element" data-id="' + fieldIndex + '" class="field-element form-control custom-select">'+
|
| 165 |
'<option value="text">Champ texte</option>'+
|
165 |
'<option value="text">Champ texte</option>'+
|
| 166 |
'<option value="email">Champ email</option>'+
|
166 |
'<option value="email">Champ email</option>'+
|
| 167 |
'<option value="textarea">Champ rédaction</option>'+
|
167 |
'<option value="textarea">Champ rédaction</option>'+
|
| 168 |
'<option value="select">Menu déroulant</option>'+
|
168 |
'<option value="select">Menu déroulant</option>'+
|
| 169 |
'<option value="checkbox">Cases à cocher</option>'+
|
169 |
'<option value="checkbox">Cases à cocher</option>'+
|
| Line 1058... |
Line 1058... |
| 1058 |
// Required
|
1058 |
// Required
|
| 1059 |
commonFieldsHtml.fieldInput.mandatoryAttr +
|
1059 |
commonFieldsHtml.fieldInput.mandatoryAttr +
|
| 1060 |
// Info bulle
|
1060 |
// Info bulle
|
| 1061 |
commonFieldsHtml.titleAttr +
|
1061 |
commonFieldsHtml.titleAttr +
|
| 1062 |
// Class
|
1062 |
// Class
|
| 1063 |
' class="form-control ' + fieldElement + '"' +
|
1063 |
' class="form-control custom-select ' + fieldElement + '"' +
|
| 1064 |
'>' +
|
1064 |
'>' +
|
| 1065 |
// Apparait dans la barre de sélection
|
1065 |
// Apparait dans la barre de sélection
|
| 1066 |
'<option>Plusieurs choix possibles</option>' +
|
1066 |
'<option>Plusieurs choix possibles</option>' +
|
| 1067 |
'</select>' +
|
1067 |
'</select>' +
|
| 1068 |
'<div class="overSelect"></div>' +
|
1068 |
'<div class="overSelect"></div>' +
|
| Line 1143... |
Line 1143... |
| 1143 |
'</div>';
|
1143 |
'</div>';
|
| 1144 |
break;
|
1144 |
break;
|
| Line 1145... |
Line 1145... |
| 1145 |
|
1145 |
|
| 1146 |
case 'select':
|
1146 |
case 'select':
|
| 1147 |
commonFieldsHtml.fieldInput.classAttr = commonFieldsHtml.fieldInput.classAttr.slice(0, -1);
|
1147 |
commonFieldsHtml.fieldInput.classAttr = commonFieldsHtml.fieldInput.classAttr.slice(0, -1);
|
| 1148 |
commonFieldsHtml.fieldInput.classAttr += ' form-control"';
|
1148 |
commonFieldsHtml.fieldInput.classAttr += ' form-control custom-select"';
|
| 1149 |
fieldHtml =
|
1149 |
fieldHtml =
|
| 1150 |
// Conteneur/Wrapper
|
1150 |
// Conteneur/Wrapper
|
| 1151 |
// +Classe 'and-help'
|
1151 |
// +Classe 'and-help'
|
| 1152 |
'<div class="add-field-select ' + fieldElement + commonFieldsHtml.helpClass + '"' +
|
1152 |
'<div class="add-field-select ' + fieldElement + commonFieldsHtml.helpClass + '"' +
|