Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 367 Rev 368
Línea 25... Línea 25...
25
                formValid = false;
25
                formValid = false;
26
            }
26
            }
27
        });
27
        });
28
        console.log(messages);
28
        console.log(messages);
29
        setErrors(messages);
29
        setErrors(messages);
-
 
30
        console.log(errors);
30
        return formValid;
31
        return formValid;
31
    }
32
    }
Línea 32... Línea 33...
32
 
33
 
33
    /**
34
    /**
Línea 72... Línea 73...
72
                            })}
73
                            })}
73
                        </div>
74
                        </div>
74
                        <div className="row">
75
                        <div className="row">
75
                            {errors.length > 0 &&
76
                            {errors.length > 0 &&
76
                                <div className="col-md-12 np-padding">
77
                                <div className="col-md-12 np-padding">
77
                                    {errors.forEach((error, index) => {
78
                                    {errors.map((error, index) => {
78
                                        <div class="alert alert-danger" role="alert" key={index}>
79
                                        <div class="alert alert-danger" role="alert" key={index}>
79
                                            {error}
80
                                            {error}
80
                                        </div>
81
                                        </div>
81
                                    })}
82
                                    })}
82
                                </div>
83
                                </div>
83
                            }
84
                            }
84
                            <div className="col-md-12 np-padding">
85
                            <div className="col-md-12 np-padding">
85
                                <ul class="wizard">
86
                                <ul class="wizard">
86
                                    {section.position != 0 &&
87
                                    <li class="previous">
87
                                        <li class="previous">
88
                                        {section.position != 0 &&
88
                                            <button
89
                                            <button
89
                                                type="button"
90
                                                type="button"
90
                                                className="btn btn-secondary"
91
                                                className="btn btn-secondary"
91
                                                onClick={() => handlePrevious()}
92
                                                onClick={() => handlePrevious()}
92
                                            >
93
                                            >
93
                                                {backendVars.LBL_SELF_EVALUATION_TEST_FORM_PREVIOUS}
94
                                                {backendVars.LBL_SELF_EVALUATION_TEST_FORM_PREVIOUS}
94
                                            </button>
95
                                            </button>
95
                                        </li>
96
                                        }
96
                                    }
97
                                    </li>
97
                                    {section.position != total - 1 &&
98
                                    <li class="next">
98
                                        <li class="next">
99
                                        {section.position != total - 1 &&
99
                                            <button
100
                                            <button
100
                                                type="button"
101
                                                type="button"
101
                                                onClick={() => handleNext()}
102
                                                onClick={() => handleNext()}
102
                                                className="btn btn-secondary">
103
                                                className="btn btn-secondary">
103
                                                {backendVars.LBL_SELF_EVALUATION_TEST_FORM_NEXT}
104
                                                {backendVars.LBL_SELF_EVALUATION_TEST_FORM_NEXT}
104
                                            </button>
105
                                            </button>
105
                                        </li>
106
                                        }
106
                                    }
107
                                    </li>
107
                                </ul>
108
                                </ul>
108
                            </div>
109
                            </div>
109
                        </div>
110
                        </div>
110
                    </div>
111
                    </div>
111
                </div>
112
                </div>