Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11398 Rev 11400
Línea 113... Línea 113...
113
								</Card.Header>
113
								</Card.Header>
114
								<Card.Body>
114
								<Card.Body>
115
									<div className="table-responsive">
115
									<div className="table-responsive">
116
										<Table data={items} headers={headers} setData={setItems}>
116
										<Table data={items} headers={headers} setData={setItems}>
117
											{
117
											{
118
												items.map((item, index) => (
118
												items.length
-
 
119
                                                &&
-
 
120
                                                items.map((item, index) => (
119
													<tr key={index}>
121
                                                	<tr key={index}>
120
														<td>{item.title}</td>
122
                                                		<td>{item.title}</td>
121
														<td>{item.description}</td>
123
                                                		<td>{item.description}</td>
122
														<td>{item.date}</td>
124
                                                		<td>{item.date}</td>
123
														<td className='d-flex align-items-center'>
125
                                                		<td className='d-flex align-items-center'>
124
															<progress value={item.progress} max='100' />
126
                                                			<progress value={item.progress} max='100' />
125
															<span className='ml-2'>{item.progress}</span>
127
                                                			<span className='ml-2'>{item.progress}</span>
126
														</td>
128
                                                		</td>
127
														<td>{item.cost}</td>
129
                                                		<td>{item.cost}</td>
128
														<td>
130
                                                		<td>
129
															{
131
                                                			{
130
																item.status === 'a'
132
                                                				item.status === 'a'
131
																	? 'Activo'
133
                                                					? 'Activo'
132
																	: 'Inactivo'
134
                                                					: 'Inactivo'
133
															}
135
                                                			}
134
														</td>
136
                                                		</td>
135
														<td className='d-flex' style={{ gap: '10px' }}>
137
                                                		<td className='d-flex' style={{ gap: '10px' }}>
136
															{
138
                                                			{
137
																permisions.allowEdit
139
                                                				permisions.allowEdit
138
                                                                &&
140
                                                                &&
139
                                                                <i
141
                                                                <i
140
                                                                	className='fa fa-pencil'
142
                                                                	className='fa fa-pencil'
141
                                                                	onClick={() => {
143
                                                                	onClick={() => {
142
                                                                		setActionLink(item.actions.link_edit)
144
                                                                		setActionLink(item.actions.link_edit)
143
                                                                		setModalToShow('edit')
145
                                                                		setModalToShow('edit')
144
                                                                	}}
146
                                                                	}}
145
                                                                	style={{ cursor: 'pointer' }}
147
                                                                	style={{ cursor: 'pointer' }}
146
                                                                />
148
                                                                />
147
															}
149
                                                			}
148
															{
150
                                                			{
149
																permisions.allowDelete
151
                                                				permisions.allowDelete
150
                                                                &&
152
                                                                &&
151
                                                                <i
153
                                                                <i
152
                                                                	className='fa fa-trash'
154
                                                                	className='fa fa-trash'
153
                                                                	onClick={() => {
155
                                                                	onClick={() => {
154
                                                                		setActionLink(item.actions.link_delete)
156
                                                                		setActionLink(item.actions.link_delete)
155
                                                                		setModalToShow('delete')
157
                                                                		setModalToShow('delete')
156
                                                                	}}
158
                                                                	}}
157
                                                                	style={{ cursor: 'pointer' }}
159
                                                                	style={{ cursor: 'pointer' }}
158
                                                                />
160
                                                                />
159
															}
161
                                                			}
160
														</td>
162
                                                		</td>
161
													</tr>
163
                                                	</tr>
162
												))
164
                                                ))
163
											}
165
											}
164
										</Table>
166
										</Table>
165
									</div>
167
									</div>
166
									<div className='row justify-content-between align-items-center'>
168
									<div className='row justify-content-between align-items-center'>
167
										<p className='mb-0'>
169
										<p className='mb-0'>