Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 138 | Rev 140 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 138 Rev 139
Línea 748... Línea 748...
748
									return s;
748
									return s;
749
							}
749
							}
750
					}
750
					}
751
				],
751
				],
752
	});
752
	});
753
	// var tableForm = $('#gridTable').dataTable({
-
 
754
	// 	select :true,
-
 
755
  //       bProcessing: true,
-
 
756
  //       bServerSide: true,
-
 
757
  //       sAjaxSource: "ajax.<?php echo $this->module; ?>.php?action=gridview",
-
 
758
  //       fnServerData: function (sSource, aoData, fnCallback) {
-
 
759
  //        	$.ajax({
-
 
760
  //              	dataType: 'json',
-
 
761
  //               type: "POST",
-
 
762
  //               url: sSource,
-
 
763
  //               data: aoData,
-
 
764
  //               success: fnCallback
-
 
765
  //         	});
-
 
766
  //       },
-
 
767
  //       aaSorting : [],
-
 
768
  //       aoColumns: [
-
 
769
	// 				{sName: "checkbox", sTitle : '<input type="checkbox" value="all" data-type="select_all" name="select_all" id="select_all">',bSortable:false,bSearchable:false},
-
 
770
	// 				{sName: "name", sTitle: 'LABEL_FIRST_NAME'},
-
 
771
	// 				{sName: "language", sTitle: 'LABEL_LANGUAGE'},
-
 
772
	// 				{sName: "added_on", sTitle : 'LABEL_ADDED_ON'},
-
 
773
	// 				{sName: "status", sTitle: 'LABEL_STATUS', bSortable:false, bSearchable:false},
-
 
774
	// 				{sName: "operation", sTitle: 'LABEL_OPERATION', bSortable: false, bSearchable: false},
-
 
775
  //        ],
-
 
776
  //       //  fnServerParams: function(aoData){
-
 
777
  //       //  	setTitle(aoData, this)
-
 
778
  //       //  },
-
 
779
  //        fnDrawCallback: function(oSettings) {
-
 
780
  //        		$('.make-switch-form').bootstrapSwitch();
-
 
781
  //           $('.make-switch-form').bootstrapSwitch('setOnClass', 'success');
-
 
782
  //           $('.make-switch-form').bootstrapSwitch('setOffClass', 'danger');
-
 
783
  //        }
-
 
784
	// });
753
 
Línea 785... Línea 754...
785
 
754
 
786
	$('body').on('click', 'a.btn-delete-form',function(e) {
755
	$('body').on('click', 'a.btn-delete-form',function(e) {
787
		e.preventDefault();
756
		e.preventDefault();
Línea 811... Línea 780...
811
    
780
    
812
    	                if(response['success']) {
781
    	                if(response['success']) {
813
    	                	$.fn.showSuccess(response['message']);
782
    	                	$.fn.showSuccess(response['message']);
814
    	                	tableForm.fnDraw();
783
    	                	tableForm.fnDraw();
815
    	                } else {
784
    	                } else {
816
    	                	$.fn.showError(response['message']);
785
    	                	$.fn.showError(response['message'] || ERROR_UNKNOWN);
817
    	                }
786
    	                }
818
    	            }).fail(function( jqXHR, textStatus, errorThrown) {
787
    	            }).fail(function( jqXHR, textStatus, errorThrown) {
819
    					$.fn.showError(textStatus);
788
    					$.fn.showError(textStatus);
820
    	            });
789
    	            });
Línea 852... Línea 821...
852
    
821
    
853
    	                if(response['success']) {
822
    	                if(response['success']) {
854
    	                	$.fn.showSuccess(response['message']);
823
    	                	$.fn.showSuccess(response['message']);
855
    	                	tableForm.fnDraw();
824
    	                	tableForm.fnDraw();
856
    	                } else {
825
    	                } else {
857
    	                	$.fn.showError(response['message']);
826
    	                	$.fn.showError(response['message'] || ERROR_UNKNOWN);
858
    	                }
827
    	                }
859
    	            }).fail(function( jqXHR, textStatus, errorThrown) {
828
    	            }).fail(function( jqXHR, textStatus, errorThrown) {
860
    					$.fn.showError(textStatus);
829
    					$.fn.showError(textStatus);
861
    	            });
830
    	            });
Línea 884... Línea 853...
884
            },
853
            },
885
        }).done(function(response) {
854
        }).done(function(response) {
886
	        if(response['success']) {
855
	        if(response['success']) {
887
	        	$.fn.showSuccess(response['message']);
856
	        	$.fn.showSuccess(response['message']);
888
	       } else {
857
	       } else {
889
    	       	$.fn.showError(response['message']);
858
    	       	$.fn.showError(response['message'] || ERROR_UNKNOWN);
890
            }
859
            }
891
         }).fail(function( jqXHR, textStatus, errorThrown) {
860
         }).fail(function( jqXHR, textStatus, errorThrown) {
892
			$.fn.showError(textStatus);
861
			$.fn.showError(textStatus);
893
        })
862
        })
894
    }); 
863
    }); 
Línea 895... Línea 864...
895
 
864
 
896
	$('body').on('click', 'button.btn-edit-form',function(e) {
865
	$('body').on('click', 'button.btn-edit-form',function(e) {
897
		e.preventDefault();
866
		e.preventDefault();
898
		form_id =  $(this).data('id')
867
		form_id =  $(this).data('id')
899
    var action = $(this).data('href');
-
 
900
		console.log('>>: data > ', {
-
 
901
			form_id,
-
 
902
			action
-
 
903
		})
868
    var action = $(this).data('href');
904
		$.ajax({
869
		$.ajax({
905
			'dataType'  : 'json',
870
			'dataType'  : 'json',
906
			'accept'    : 'application/json',
871
			'accept'    : 'application/json',
907
			'method'    : 'get',
872
			'method'    : 'get',
Línea 935... Línea 900...
935
					$('#row-edit').show();
900
					$('#row-edit').show();
Línea 936... Línea 901...
936
 
901
 
Línea 937... Línea 902...
937
					$('#form-main #form-name').focus();
902
					$('#form-main #form-name').focus();
938
					
903
					
939
				} else {
904
				} else {
940
					$.fn.showError(response['message']);
905
					$.fn.showError(response['message'] || ERROR_UNKNOWN);
941
				}
906
				}
942
			}).fail(function( jqXHR, textStatus, errorThrown) {
907
			}).fail(function( jqXHR, textStatus, errorThrown) {
943
				$.fn.showError(textStatus);
908
				$.fn.showError(textStatus);
Línea 1052... Línea 1017...
1052
		    //form.submit();
1017
		    //form.submit();
Línea 1053... Línea 1018...
1053
 
1018
 
1054
		    
1019
		    
1055
		    var error = false;
1020
		    var error = false;
1056
		    if(objFormGenerator.sections.length == 0) {
1021
		    if(objFormGenerator.sections.length == 0) {
1057
		    	$.fn.showError('There are no sections');
1022
		    	$.fn.showError(ERROR_SECCTIONS);
Línea 1058... Línea 1023...
1058
		    	error = true;
1023
		    	error = true;
1059
		    } else {
1024
		    } else {
Línea 1060... Línea 1025...
1060
		    	
1025
		    	
1061
		    	for(i = 0; i < objFormGenerator.sections.length; i++) 
1026
		    	for(i = 0; i < objFormGenerator.sections.length; i++) 
1062
		    	{
1027
		    	{
1063
		    		
1028
		    		
Línea 1064... Línea 1029...
1064
		    		if(objFormGenerator.sections[i].questions.length == 0) {
1029
		    		if(objFormGenerator.sections[i].questions.length == 0) {
1065
		    			$.fn.showError('El "' + objFormGenerator.sections[i].name + '" no tiene preguntas');
1030
		    			$.fn.showError( ERROR_QUESTION.str_replace('%s', objFormGenerator.sections[i].name ));
Línea 1081... Línea 1046...
1081
		    				var questionNumber = j + 1;
1046
		    				var questionNumber = j + 1;
1082
		    				var numberCorrect = 0;
1047
		    				var numberCorrect = 0;
Línea 1083... Línea 1048...
1083
		    				
1048
		    				
-
 
1049
		    				
1084
		    				
1050
		    				if(objFormGenerator.sections[i].questions[j].options.length == 0) {
1085
		    				if(objFormGenerator.sections[i].questions[j].options.length == 0) {
1051
 
1086
		    					$.fn.showError('El "' + objFormGenerator.sections[i].name + '" sección, La pregunta #' + questionNumber + ' no tiene opciones');
1052
								$.fn.showError( ERROR_OPTIONS.str_replace('%s', objFormGenerator.sections[i].name ).str_replace('%n', questionNumber));
1087
									error = true;
1053
								error = true;
1088
									break;
-
 
Línea 1089... Línea 1054...
1089
		    				}
1054
									break;
1090
 
1055
		    				}
1091
		    				
1056
		    				
1092
		    				var totalOption = 0;
1057
		    				var totalOption = 0;
Línea 1112... Línea 1077...
1112
		    				}
1077
		    				}
Línea 1113... Línea 1078...
1113
 
1078
 
Línea 1114... Línea 1079...
1114
		    				if(objFormGenerator.sections[i].questions[j].type == 'simple' || objFormGenerator.sections[i].questions[j].type == 'multiple' ) {
1079
		    				if(objFormGenerator.sections[i].questions[j].type == 'simple' || objFormGenerator.sections[i].questions[j].type == 'multiple' ) {
1115
		    				
1080
		    				
1116
    		    				if(numberCorrect == 0) {
1081
    		    				if(numberCorrect == 0) {
1117
    		    					$.fn.showError('El "' + objFormGenerator.sections[i].name + '" sección, La pregunta #' + questionNumber + ' no tiene una opcion correcta');
1082
    		    					$.fn.showError( ERROR_OPTIONS_CORRECT.str_replace('%s', objFormGenerator.sections[i].name ).str_replace('%n', questionNumber));
1118
    		    					error = true;
1083
    		    					error = true;
1119
    		    					break;
1084
    		    					break;
1120
    		    				}
1085
    		    				}
1121
    		    				if(objFormGenerator.sections[i].questions[j].type == 'simple' && numberCorrect > 1) {
1086
    		    				if(objFormGenerator.sections[i].questions[j].type == 'simple' && numberCorrect > 1) {
1122
    		    					$.fn.showError('El "' + objFormGenerator.sections[i].name + '" sección, La pregunta #' + questionNumber + ' tiene más de una opción correcta');
1087
    		    					$.fn.showError( ERROR_OPTIONS_DUPLICATE_CORRECT.str_replace('%s', objFormGenerator.sections[i].name ).str_replace('%n', questionNumber));
1123
    		    					error = true;
1088
    		    					error = true;
1124
    		    					break;
1089
    		    					break;
1125
    		    				}
1090
    		    				}
1126
    		    				if(objFormGenerator.sections[i].questions[j].type == 'multiple' && numberCorrect == 1) {
1091
    		    				if(objFormGenerator.sections[i].questions[j].type == 'multiple' && numberCorrect == 1) {
1127
    		    					$.fn.showError('El "' + objFormGenerator.sections[i].name + '" sección, La pregunta #' + questionNumber + ' solo tiene una opción correcta');
1092
    		    					$.fn.showError( ERROR_OPTIONS_ONE_CORRECT.str_replace('%s', objFormGenerator.sections[i].name ).str_replace('%n', questionNumber));
1128
    		    					error = true;
1093
    		    					error = true;
1129
    		    					break;
1094
    		    					break;
Línea 1130... Línea -...
1130
    		    				}
-
 
1131
		    				}
-
 
1132
 
1095
    		    				}
-
 
1096
		    				}
1133
			    			//console.log('totalOption = ' + totalOption + ' valueQuestion = ' + valueQuestion );
1097
 
1134
			    			
1098
			 				if(objFormGenerator.sections[i].questions[j].type == 'multiple' && totalOption > valueQuestion ) {
1135
			 				if(objFormGenerator.sections[i].questions[j].type == 'multiple' && totalOption > valueQuestion ) {
1099
 
1136
		     					$.fn.showError('El "' + objFormGenerator.sections[i].name + '" sección, La pregunta #' + questionNumber + ' la suma de los valores de las opciones es mayor que el valor de la pregunta');
1100
								$.fn.showError( ERROR_OPTIONS_SUM_VALUES.str_replace('%s', objFormGenerator.sections[i].name ).str_replace('%n', questionNumber));
Línea 1137... Línea -...
1137
		    					error = true;
-
 
1138
		    					break;
-
 
1139
			    			}
1101
		    					error = true;
1140
 
1102
		    					break;
1141
							//console.log('maxOption = ' + maxOption + ' valueQuestion = ' + valueQuestion );
1103
			    			}
1142
			    			
1104
 
1143
		    				if(objFormGenerator.sections[i].questions[j].type == 'rating-open' && maxOption > valueQuestion ) {
1105
		    				if(objFormGenerator.sections[i].questions[j].type == 'rating-open' && maxOption > valueQuestion ) {
1144
		     					$.fn.showError('El "' + objFormGenerator.sections[i].name + '" sección, La pregunta #' + questionNumber + ' ');
1106
								$.fn.showError( ERROR_OPTIONS_MAX_OPTION.str_replace('%s', objFormGenerator.sections[i].name ).str_replace('%n', questionNumber));
1145
		    					error = true;
-
 
Línea 1146... Línea 1107...
1146
		    					break;
1107
		    					error = true;
Línea 1147... Línea 1108...
1147
			    			}
1108
		    					break;
1148
						}
1109
			    			}
1149
 
1110
						}
1150
	
1111
	
1151
		    		}
1112
		    		}
1152
 
1113
 
Línea 1174... Línea 1135...
1174
        				'form-text' : $( '#form-main #form-text' ).val(),
1135
        				'form-text' : $( '#form-main #form-text' ).val(),
1175
        				'form-language' : $( '#form-main #form-language' ).val(),
1136
        				'form-language' : $( '#form-main #form-language' ).val(),
1176
        				'form-status' : $( '#form-main #form-status' ).val(),
1137
        				'form-status' : $( '#form-main #form-status' ).val(),
1177
        				'sections' : objFormGenerator.sections
1138
        				'sections' : objFormGenerator.sections
1178
    				}
1139
    				}
1179
						console.log('>>: data> ', data)
-
 
1180
    				
-
 
Línea 1181... Línea 1140...
1181
 
1140
 
1182
					$.ajax({
1141
					$.ajax({
1183
						'dataType': 'json',
1142
						'dataType': 'json',
1184
						'method': 'post',
1143
						'method': 'post',
Línea 1194... Línea 1153...
1194
								$('#row-edit').hide();
1153
								$('#row-edit').hide();
1195
								$('#row-forms').show();
1154
								$('#row-forms').show();
1196
							}
1155
							}
1197
							tableForm.fnDraw();
1156
							tableForm.fnDraw();
1198
						} else {
1157
						} else {
1199
							$.fn.showError(response['message']);
1158
							$.fn.showError(response['message'] || ERROR_UNKNOWN);
1200
						}
1159
						}
1201
					}).fail(function( jqXHR, textStatus, errorThrown) {
1160
					}).fail(function( jqXHR, textStatus, errorThrown) {
1202
						$.fn.showError(textStatus);
1161
						$.fn.showError(textStatus);
1203
					});
1162
					});
1204
						return false;
1163
						return false;
Línea 1330... Línea 1289...
1330
                error.insertAfter(element);
1289
                error.insertAfter(element);
1331
            }
1290
            }
1332
        },
1291
        },
1333
        invalidHandler: function(form, validator) {
1292
        invalidHandler: function(form, validator) {
Línea 1334... Línea -...
1334
 
-
 
Línea 1335... Línea 1293...
1335
			//console.log(validator);
1293
 
1336
            
1294
            
1337
            if (!validator.numberOfInvalids())
1295
            if (!validator.numberOfInvalids())
1338
                return;
1296
                return;
1339
            $('html, body').animate({
1297
            $('html, body').animate({
1340
                scrollTop: $(validator.errorList[0].element).offset().top - 100
1298
                scrollTop: $(validator.errorList[0].element).offset().top - 100
1341
            }, 1000);
1299
            }, 1000);
1342
        },
-
 
1343
		submitHandler: function(form) {
-
 
1344
		    // do other things for a valid form
-
 
1345
		    //form.submit();
-
 
1346
		    
-
 
1347
		    /*console.log('submitHandler');
-
 
1348
		    console.log('question-section = ' + $('#form-question #question-section').val()); 
-
 
1349
		    console.log('question-text = ' + $('#form-question #question-text').val());
-
 
1350
		    console.log('question-value = ' + $('#form-question #question-value').val());
-
 
1351
		    console.log('question-type = ' + $('#form-question #question-type').val());
-
 
1352
		    console.log('question-max-length = ' + $('#form-question #question-max-length').val());
-
 
1353
		    console.log('question-multiline = ' + $('#form-question #question-multiline').val());
-
 
Línea 1354... Línea 1300...
1354
		    console.log('question-range = ' + $('#form-question #question-range').val());*/
1300
        },
1355
 
1301
		submitHandler: function(form) {
1356
		    
-
 
1357
 
1302
		    
-
 
1303
		
1358
		    if($('#form-question #question-slug').val()) {
1304
		    if($('#form-question #question-slug').val()) {
1359
		    	console.log('editQuestion');
1305
		    
1360
			    
1306
			
1361
		    	objFormGenerator.editQuestion(
1307
		    	objFormGenerator.editQuestion(
1362
		    		$('#form-question #question-section').val(), 
1308
		    		$('#form-question #question-section').val(), 
Línea 1367... Línea 1313...
1367
			    	$('#form-question #question-max-length').val(),
1313
			    	$('#form-question #question-max-length').val(),
1368
	    			$('#form-question #question-multiline').val(),
1314
	    			$('#form-question #question-multiline').val(),
1369
	    			$('#form-question #question-range').val()
1315
	    			$('#form-question #question-range').val()
1370
			  	);	
1316
			  	);	
1371
		    } else {
1317
		    } else {
1372
		    	console.log('addQuestion');
-
 
Línea 1373... Línea 1318...
1373
			    
1318
			    
1374
		    	objFormGenerator.addQuestion(
1319
		    	objFormGenerator.addQuestion(
1375
			    	$('#form-question #question-section').val(), 
1320
			    	$('#form-question #question-section').val(), 
1376
			    	$('#form-question #question-text').val(), 
1321
			    	$('#form-question #question-text').val(), 
Línea 1427... Línea 1372...
1427
            $('html, body').animate({
1372
            $('html, body').animate({
1428
                scrollTop: $(validator.errorList[0].element).offset().top - 100
1373
                scrollTop: $(validator.errorList[0].element).offset().top - 100
1429
            }, 1000);
1374
            }, 1000);
1430
        },
1375
        },
1431
		submitHandler: function(form) {
1376
		submitHandler: function(form) {
1432
		    // do other things for a valid form
-
 
1433
		    //form.submit();
-
 
Línea 1434... Línea 1377...
1434
		    
1377
		    
1435
 
1378
 
1436
		    if($('#form-option #option-slug').val()) {
1379
		    if($('#form-option #option-slug').val()) {
Línea 1450... Línea 1393...
1450
			    	$('#form-option #option-correct').val(),
1393
			    	$('#form-option #option-correct').val(),
1451
			    	$('#form-option #option-value').val()
1394
			    	$('#form-option #option-value').val()
1452
		    	);	
1395
		    	);	
1453
		    }
1396
		    }
Línea 1454... Línea -...
1454
 
-
 
1455
 
-
 
1456
		    
-
 
1457
		    
1397
 
1458
			$('#modal-option').modal('hide');
1398
			$('#modal-option').modal('hide');
1459
			return false;
1399
			return false;
1460
		  }
1400
		  }
Línea 1489... Línea 1429...
1489
	    for(i = 0; i < objFormGenerator.sections.length; i++) {
1429
	    for(i = 0; i < objFormGenerator.sections.length; i++) {
1490
	        section = objFormGenerator.sections[i];
1430
	        section = objFormGenerator.sections[i];
Línea 1491... Línea 1431...
1491
	    	
1431
	    	
Línea 1492... Línea -...
1492
	    	if(slug == section.slug) {
-
 
1493
 
-
 
1494
		    	//console.log('btn-edit-section');
-
 
1495
		    	//console.log(section);
1432
	    	if(slug == section.slug) {
1496
 
1433
 
1497
				validatorFormSection.resetForm();
1434
				validatorFormSection.resetForm();
Línea 1498... Línea 1435...
1498
	    		$('#form-section #section-slug').val(section.slug);
1435
	    		$('#form-section #section-slug').val(section.slug);
Línea 1724... Línea 1661...
1724
	    		}
1661
	    		}
1725
	    	}
1662
	    	}
1726
	    }
1663
	    }
Línea 1727... Línea 1664...
1727
 
1664
 
1728
		if(showForm) {
1665
		if(showForm) {
1729
    		$('#modal-option h4[class="modal-title"]').html('New Option');
1666
    		$('#modal-option h4[class="modal-title"]').html('LABEL_ADD LABEL_OPTION');
1730
    		$('#modal-option').modal('show');
1667
    		$('#modal-option').modal('show');
Línea 1731... Línea 1668...
1731
		}
1668
		}
Línea 2042... Línea 1979...
2042
    </div>
1979
    </div>
2043
    <!-- End Row Edit -->
1980
    <!-- End Row Edit -->
2044
    <!-- Modals -->
1981
    <!-- Modals -->
2045
    <!-- Section Modal -->
1982
    <!-- Section Modal -->
2046
    <div  id="modal-section" class="modal" tabindex="-1" role="dialog">
1983
    <div  id="modal-section" class="modal" tabindex="-1" role="dialog">
2047
        <div class="modal-dialog" role="document">
1984
        <div class="modal-dialog modal-lg" role="document">
2048
            <form action="#" name="form-section" id="form-section">
1985
            <form action="#" name="form-section" id="form-section">
2049
                <input type="hidden" name="section-slug" id="section-slug" value="" />
1986
                <input type="hidden" name="section-slug" id="section-slug" value="" />
2050
                <div class="modal-content">
1987
                <div class="modal-content">
2051
                    <div class="modal-header">
1988
                    <div class="modal-header">
2052
					<h4 class="modal-title">LABEL_ADD LABEL_SECTION</h4>
1989
                        <h4 class="modal-title">LABEL_ADD LABEL_SECTION</h4>
2053
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
1990
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
2054
                            <span aria-hidden="true">&times;</span>
1991
                            <span aria-hidden="true">&times;</span>
2055
                        </button>
1992
                        </button>
2056
                    </div>
1993
                    </div>
2057
                    <div class="modal-body">
1994
                    <div class="modal-body">
2058
                        <div class="form-group">
1995
                        <div class="form-group">
Línea 2078... Línea 2015...
2078
        </div>
2015
        </div>
2079
    </div>
2016
    </div>
2080
    <!-- End Modal Section -->
2017
    <!-- End Modal Section -->
2081
    <!-- Question Modal -->
2018
    <!-- Question Modal -->
2082
    <div  id="modal-question" class="modal" tabindex="-1" role="dialog">
2019
    <div  id="modal-question" class="modal" tabindex="-1" role="dialog">
2083
        <div class="modal-dialog" role="document">
2020
        <div class="modal-dialog modal-lg" role="document">
2084
            <form action="#" name="form-question" id="form-question">
2021
            <form action="#" name="form-question" id="form-question">
2085
                <input type="hidden" name="question-section" id="question-section" />
2022
                <input type="hidden" name="question-section" id="question-section" />
2086
                <input type="hidden" name="question-slug" id="question-slug" />
2023
                <input type="hidden" name="question-slug" id="question-slug" />
2087
                <div class="modal-content">
2024
                <div class="modal-content">
2088
                    <div class="modal-header">
2025
                    <div class="modal-header">
Línea 2140... Línea 2077...
2140
        </div>
2077
        </div>
2141
    </div>
2078
    </div>
2142
    <!-- End Modal Question -->
2079
    <!-- End Modal Question -->
2143
    <!-- MOdal Options -->
2080
    <!-- MOdal Options -->
2144
    <div  id="modal-option" class="modal" tabindex="-1" role="dialog">
2081
    <div  id="modal-option" class="modal" tabindex="-1" role="dialog">
2145
        <div class="modal-dialog" role="document">
2082
        <div class="modal-dialog modal-lg" role="document">
2146
            <form action="#" name="form-option" id="form-option">
2083
            <form action="#" name="form-option" id="form-option">
2147
                <input type="hidden" name="option-section" id="option-section" value="" />
2084
                <input type="hidden" name="option-section" id="option-section" value="" />
2148
                <input type="hidden" name="option-question" id="option-question" value="" />
2085
                <input type="hidden" name="option-question" id="option-question" value="" />
2149
                <input type="hidden" name="option-slug" id="option-slug" value="" />
2086
                <input type="hidden" name="option-slug" id="option-slug" value="" />
2150
                <div class="modal-content">
2087
                <div class="modal-content">