Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 342 Rev 431
Línea 19... Línea 19...
19
                <div className="form-group">
19
                <div className="form-group">
20
                    {question.multiline == 1 ? (
20
                    {question.multiline == 1 ? (
21
                        <textarea
21
                        <textarea
22
                            className="form-control"
22
                            className="form-control"
23
                            rows="5"
23
                            rows="5"
-
 
24
                            value={question.answer ? question.answer: ''}
24
                            maxLength={question.maxlength}
25
                            maxLength={question.maxlength}
25
                            name={question.slug_question}
26
                            name={question.slug_question}
26
                            onChange={e =>
27
                            onChange={e =>
27
                                handleAnswer(question.slug_section, question.slug_question, e.target.value)
28
                                handleAnswer(question.slug_section, question.slug_question, e.target.value)
28
                            }
29
                            }
29
                        />
30
                        />
30
                    ) : (
31
                    ) : (
31
                        <input
32
                        <input
32
                            type="text"
33
                            type="text"
33
                            className="form-control"
34
                            className="form-control"
-
 
35
                            value={question.answer ? question.answer: ''}
34
                            maxLength={question.maxlength}
36
                            maxLength={question.maxlength}
35
                            name={question.slug_question}
37
                            name={question.slug_question}
36
                            onChange={e =>
38
                            onChange={e =>
37
                                handleAnswer(question.slug_section, question.slug_question, e.target.value)
39
                                handleAnswer(question.slug_section, question.slug_question, e.target.value)
38
                            }
40
                            }
Línea 46... Línea 48...
46
                        return (
48
                        return (
47
                            <div className="checkbox"
49
                            <div className="checkbox"
48
                                key={i}>
50
                                key={i}>
49
                                <input
51
                                <input
50
                                    type="radio"
52
                                    type="radio"
-
 
53
                                    checked={ question.answer && question.answer == i + 1}
51
                                    name={question.slug_question}
54
                                    name={question.slug_question}
52
                                    value={i + 1}
55
                                    value={i + 1}
53
                                    onChange={() =>
56
                                    onChange={() =>
54
                                        handleAnswer(question.slug_section, question.slug_question, i + 1)
57
                                        handleAnswer(question.slug_section, question.slug_question, i + 1)
55
                                    }
58
                                    }