Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15499 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15499 Rev 15522
Línea 77... Línea 77...
77
								if (element[0] === 'id') return
77
								if (element[0] === 'id') return
Línea 78... Línea 78...
78
 
78
 
79
								if (element[0] === 'status') {
79
								if (element[0] === 'status') {
80
									return (
80
									return (
81
										<td className="text-center">
-
 
82
											{element[1] === 'a'
81
										<td className="text-center">
83
												? <i className='fa fa-check' style={{ color: '#5cb85c' }} />
-
 
84
												: <i className='fa fa-close' style={{ color: 'red' }} />
-
 
85
											}
82
											<i className={`fa ${element[1] === 'a' ? 'fa-check' : 'fa-close'}`} style={{ color: element[1] === 'a' ? '#5cb85c' : 'red' }} />
86
										</td>
83
										</td>
87
									)
84
									)
Línea 88... Línea 85...
88
								}
85
								}
89
 
86
 
-
 
87
								if (element[0] === 'actions') {
90
								if (element[0] === 'actions') {
88
									return (
91
									return (
89
										<td>
92
										<td style={{ display: 'flex', gap: '5px' }}>
90
											<div className="d-inline-flex align-items-center" style={{gap: '.5rem'}}>
93
											{Boolean(Number(allowEdit)) &&
91
												{Boolean(Number(allowEdit)) &&
94
												<button
92
												<button
95
													className="btn btn-primary btn-edit"
93
													className="btn btn-primary btn-edit"
96
													onClick={() => onEdit(item)}
94
													onClick={() => onEdit(item)}
97
												>
95
												>
98
													<i className="fa fa-pencil" />
96
													<i className="fa fa-pencil" />
99
													Editar
97
													Editar
100
												</button>
98
												</button>
101
											}
99
												}
102
											{Boolean(Number(allowDelete)) &&
100
												{Boolean(Number(allowDelete)) &&
103
												<button
101
												<button
104
													className="btn btn-danger btn-delete"
102
													className="btn btn-danger btn-delete"
105
													onClick={() => onDelete(item)}
103
													onClick={() => onDelete(item)}
106
												>
104
												>
107
													<i className="fa fa-trash" />
105
													<i className="fa fa-trash" />
108
													Borrar
106
													Borrar
-
 
107
												</button>
109
												</button>
108
												}
110
											}
109
											</div>
111
										</td>
110
										</td>
Línea 112... Línea 111...
112
									)
111
									)
113
								}
112
								}
114
 
113
 
115
								return (
114
								return (
116
									<td key={element[1]} className="text-vertical-middle sorting_1 dtr-control">
115
									<td key={element[1]} className="text-vertical-middle sorting_1 dtr-control">
117
										{element[1]}
-
 
118
									</td>
116
										{element[1]}
119
								)
-
 
120
 
117
									</td>
121
							})
118
								)
122
							}
119
							})}
123
						</tr>
120
						</tr>
124
					)
121
					)