Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 340 Rev 342
Línea 21... Línea 21...
21
                        <textarea
21
                        <textarea
22
                            className="form-control"
22
                            className="form-control"
23
                            rows="5"
23
                            rows="5"
24
                            maxLength={question.maxlength}
24
                            maxLength={question.maxlength}
25
                            name={question.slug_question}
25
                            name={question.slug_question}
26
                            onChange={e => handleAnswer(
26
                            onChange={e =>
27
                                question.slug_section,
-
 
28
                                question.slug_question,
27
                                handleAnswer(question.slug_section, question.slug_question, e.target.value)
29
                                e.target.value)}
28
                            }
30
                        ></textarea>
29
                        />
31
                    ) : (
30
                    ) : (
32
                        <input
31
                        <input
33
                            type="text"
32
                            type="text"
34
                            className="form-control"
33
                            className="form-control"
35
                            maxLength={question.maxlength}
34
                            maxLength={question.maxlength}
36
                            name={question.slug_question}
35
                            name={question.slug_question}
37
                            onChange={e => handleAnswer(
36
                            onChange={e =>
38
                                question.slug_section,
37
                                handleAnswer(question.slug_section, question.slug_question, e.target.value)
39
                                question.slug_question,
38
                            }
40
                                e.target.value)} />
39
                        />
41
                    )}
40
                    )}
42
                </div>
41
                </div>
43
            }
42
            }
44
            {question.type == 'rating-range' &&
43
            {question.type == 'rating-range' &&
45
                <div className="form-group">
44
                <div className="form-group">
Línea 48... Línea 47...
48
                            <div className="checkbox"
47
                            <div className="checkbox"
49
                                key={i}>
48
                                key={i}>
50
                                <input
49
                                <input
51
                                    type="radio"
50
                                    type="radio"
52
                                    name={question.slug_question}
51
                                    name={question.slug_question}
53
                                    onChange={e => handleAnswer(
52
                                    value={i + 1}
54
                                        question.slug_section,
53
                                    onChange={() =>
55
                                        question.slug_question,
54
                                        handleAnswer(question.slug_section, question.slug_question, i + 1)
56
                                        e.target.value)}
55
                                    }
57
                                    value={i + 1} />
56
                                />
58
                                <div className="option">
57
                                <div className="option">
59
                                    {i + 1}
58
                                    {i + 1}
60
                                </div>
59
                                </div>
61
                            </div>
60
                            </div>
62
                        )
61
                        )