Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 342 Rev 344
Línea 15... Línea 15...
15
                        {question.type == 'multiple' &&
15
                        {question.type == 'multiple' &&
Línea 16... Línea 16...
16
 
16
 
17
                            <input
17
                            <input
18
                                type="checkbox"
18
                                type="checkbox"
19
                                name={`${opt.slug_option}[]`}
19
                                name={`${opt.slug_option}[]`}
-
 
20
                                value={opt.slug_option}
-
 
21
                                onChange={() => handleAnswer(question.slug_section, question.slug_question, opt.text)}
20
                                value={opt.slug_option} />
22
                            />
21
                        }
23
                        }
22
                        {question.type != 'multiple' &&
24
                        {question.type != 'multiple' &&
23
                            <input
25
                            <input
24
                                type="radio"
26
                                type="radio"
25
                                name={`${opt.slug_question}`}
27
                                name={`${opt.slug_question}`}
26
                                value={opt.slug_option}
28
                                value={opt.slug_option}
27
                                onChange={() => handleAnswer(question.slug_section, question.slug_question, opt.slug_option)}
29
                                onChange={() => handleAnswer(question.slug_section, question.slug_question, opt.text)}
28
                            />
30
                            />
29
                        }
31
                        }
30
                        <div
32
                        <div
31
                            dangerouslySetInnerHTML={{ __html: opt.text }}
33
                            dangerouslySetInnerHTML={{ __html: opt.text }}