Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 356 Rev 357
Línea 6... Línea 6...
6
const Test = (props) => {
6
const Test = (props) => {
Línea 7... Línea 7...
7
 
7
 
8
    // get props
8
    // get props
Línea 9... Línea -...
9
    const { backendVars, test, loading, setTest, action } = props;
-
 
10
 
9
    const { backendVars, test, loading, setTest, action } = props;
11
 
10
 
12
    /**
11
    /**
13
     * Send form data
12
     * Send form data
14
     */
13
     */
Línea 67... Línea 66...
67
 
66
 
68
        return formValid;
67
        return formValid;
Línea -... Línea 68...
-
 
68
    }
-
 
69
 
-
 
70
 
-
 
71
    const handleCancel = () =>{
-
 
72
        bootbox.confirm({
-
 
73
            title: "Test",
-
 
74
            message: "Test",
-
 
75
            buttons: {
-
 
76
                cancel: {
-
 
77
                    label: '<i class="fa fa-times"></i> Test'
-
 
78
                },
-
 
79
                confirm: {
-
 
80
                    label: '<i class="fa fa-check"></i> test'
-
 
81
                }
-
 
82
            },
-
 
83
            callback: function(result) {
-
 
84
                if (result) {
-
 
85
                  console.log('1')
-
 
86
                }
-
 
87
            }
-
 
88
        });
69
    }
89
    }
70
 
90
 
71
 
91
 
72
    return (
92
    return (
73
        <div>
93
        <div>
Línea 100... Línea 120...
100
                            })}
120
                            })}
101
                        </div>
121
                        </div>
102
                    </div>
122
                    </div>
103
                    <div className="col-md-12 col-sm-12 col-xs-12">
123
                    <div className="col-md-12 col-sm-12 col-xs-12">
104
                        <div className="company-title">
124
                        <div className="company-title">
105
                            <button type="button" className="btn btn-danger" onClick={() => setTest(null)}>{backendVars.LBL_CANCEL}</button>
125
                            <button type="button" className="btn btn-danger" onClick={() => handleCancel()}>{backendVars.LBL_CANCEL}</button>
106
                            <button type="buttton" className="btn btn-success" onClick={() => handleSubmit()}>{backendVars.LBL_SAVE}</button>
126
                            <button type="buttton" className="btn btn-success" onClick={() => handleSubmit()}>{backendVars.LBL_SAVE}</button>
107
                        </div>
127
                        </div>
108
                    </div>
128
                    </div>
109
                </div>
129
                </div>
110
            )}
130
            )}