Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 6795 Rev 6848
Línea 34... Línea 34...
34
            }
34
            }
35
        </button>
35
        </button>
36
    );
36
    );
37
}
37
}
Línea 38... Línea 38...
38
 
38
 
Línea 39... Línea 39...
39
const Table = ({ data, headers, onDelete, allowEdit, allowDelete }) => {
39
const Table = ({ data, headers, onDelete, allowEdit, allowDelete, onEdit }) => {
40
 
40
 
41
    const initialSortKey = Object.values(headers)[0]
41
    const initialSortKey = Object.values(headers)[0]
Línea 94... Línea 94...
94
                                    if (element[0] !== "id") {
94
                                    if (element[0] !== "id") {
Línea 95... Línea 95...
95
 
95
 
96
                                        if (element[0] === "details") {
96
                                        if (element[0] === "details") {
97
                                            return (
97
                                            return (
98
                                                <td>
98
                                                <td>
99
                                                    <ul style={{listStyle: 'none'}}>
99
                                                    <ul style={{ listStyle: 'none' }}>
100
                                                        <li>Estatus: {element[1]["status"]}</li>
100
                                                        <li>Estatus: {element[1]["status"]}</li>
101
                                                        <li>Tipo de empleo: {element[1]["employment_type"]}</li>
101
                                                        <li>Tipo de empleo: {element[1]["employment_type"]}</li>
102
                                                        <li>Aplicantes: {element[1]["users_who_applied"]}</li>
102
                                                        <li>Aplicantes: {element[1]["users_who_applied"]}</li>
103
                                                    </ul>
103
                                                    </ul>
Línea 112... Línea 112...
112
                                                        (allowEdit === "1")
112
                                                        (allowEdit === "1")
113
                                                        &&
113
                                                        &&
114
                                                        <Link
114
                                                        <Link
115
                                                            to="/jobs/edit"
115
                                                            to="/jobs/edit"
116
                                                            style={{ textDecoration: 'none' }}
116
                                                            style={{ textDecoration: 'none' }}
-
 
117
                                                            onClick={() => onEdit(element[1]['link_edit'])}
117
                                                        >
118
                                                        >
118
                                                            <button
119
                                                            <button
119
                                                                className="btn btn-primary btn-edit"
120
                                                                className="btn btn-primary btn-edit"
120
                                                            >
121
                                                            >
121
                                                                <i className="fa fa-pencil" />
122
                                                                <i className="fa fa-pencil" />