Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14184 Rev 14188
Línea 132... Línea 132...
132
										{
132
										{
133
											items.length
133
											items.length
134
                                            &&
134
                                            &&
135
                                            items.map((item, index) => (
135
                                            items.map((item, index) => (
136
                                            	<tr key={index}>
136
                                            	<tr key={index}>
137
                                            		<td className='text-vertical-middle'>{item.last_date}</td>
137
                                            		<td className='text-vertical-middle'>{item.name}</td>
138
                                            		<td className='text-vertical-middle'>
138
                                            		<td className='text-vertical-middle'>
139
                                            			{item.form}
139
                                            			{item.status === 'a'
140
                                            			<br />
-
 
141
                                            			{
-
 
142
                                            				item.actions.link_report_both
-
 
143
                                            					?
-
 
144
                                            					<div>
-
 
145
                                            						<a
-
 
146
                                            							className="btn btn-info btn-sm"
-
 
147
                                            							href={item.actions.link_report_both}
-
 
148
                                            							target="_blank" rel="noreferrer" >
-
 
149
                                            							<i className="fa fa-file-o" />
-
 
150
                                                                        PDF de evaluacion conjunta
-
 
151
                                            						</a>
-
 
152
                                            					</div>
140
                                            				? 'Activo'
153
                                            					:
-
 
154
                                            					<button
141
                                            				: 'Inactivo'
155
                                            						className="btn btn-info btn-sm"
-
 
156
                                            						onClick={() => {
-
 
157
                                            							setActionLink(item.actions.link_both)
-
 
158
                                            							history.push('evaluations/both')
-
 
159
                                            						}}
-
 
160
                                            					>
-
 
161
                                            						<i className="fa fa-external-link" />
-
 
162
                                                                    Evaluacion en conjunto
-
 
163
                                            					</button>
-
 
164
                                            			}
142
                                            			}
165
 
-
 
166
                                            		</td>
-
 
167
                                            		<td className='text-vertical-middle'>
-
 
168
                                            			{item.supervisor}
-
 
169
                                            			{
-
 
170
                                            				item.actions.link_report_superviser
-
 
171
                                            					?
-
 
172
                                            					<div>
-
 
173
                                            						<a
-
 
174
                                            							className="btn btn-info btn-sm"
-
 
175
                                            							href={item.actions.link_report_superviser}
-
 
176
                                            							target="_blank" rel="noreferrer" >
-
 
177
                                            							<i className="fa fa-file-o" />
-
 
178
                                                                        PDF de evaluacion del supervisor
-
 
179
                                            						</a>
-
 
180
                                            					</div>
-
 
181
                                            					:
-
 
182
                                            					<button
-
 
183
                                            						className="btn btn-info btn-sm"
-
 
184
                                            						onClick={() => {
-
 
185
                                            							setActionLink(item.actions.link_superviser)
-
 
186
                                            							history.push('evaluations/superviser')
-
 
187
                                            						}}
-
 
188
                                            					>
-
 
189
                                            						<i className="fa fa-external-link" />
-
 
190
                                                                    Evaluacion del supervisor
-
 
191
                                            					</button>
-
 
192
                                            			}
-
 
193
                                            		</td>
-
 
194
                                            		<td className='text-vertical-middle'>
-
 
195
                                            			{`${item.first_name} ${item.last_name}`}
-
 
196
                                            			{
-
 
197
                                            				item.actions.link_report_self
-
 
198
                                            					?
-
 
199
                                            					<div>
-
 
200
                                            						<a
-
 
201
                                            							className="btn btn-info btn-sm"
-
 
202
                                            							href={item.actions.link_report_self}
-
 
203
                                            							target="_blank" rel="noreferrer" >
-
 
204
                                            							<i className="fa fa-file-o" />
-
 
205
                                                                        PDF de autoevaluación
-
 
206
                                            						</a>
-
 
207
                                            					</div>
-
 
208
                                            					:
-
 
209
                                            					<button
-
 
210
                                            						className="btn btn-info btn-sm"
-
 
211
                                            						onClick={() => {
-
 
212
                                            							setActionLink(item.actions.link_self)
-
 
213
                                            							history.push('evaluations/self')
-
 
214
                                            						}}
-
 
215
                                            					>
-
 
216
                                            						<i className="fa fa-external-link" />
-
 
217
                                                                    Autoevaluación
-
 
218
                                            					</button>
-
 
219
                                            			}
-
 
220
 
-
 
221
                                            		</td>
143
                                            		</td>
222
                                            		<td>
144
                                            		<td>
223
                                            			<div className="d-flex align-items-center" style={{ gap: '5px' }}>
145
                                            			<div className="d-flex align-items-center" style={{ gap: '5px' }}>
224
                                            				{
146
                                            				{
-
 
147
                                            					permisions.allowEdit
-
 
148
                                                                &&
-
 
149
                                                                <i
-
 
150
                                                                	className='fa fa-pencil'
-
 
151
                                                                	style={{ cursor: 'pointer' }}
-
 
152
                                                                />
-
 
153
                                            				}
-
 
154
                                            				{
225
                                            					permisions.allowDelete
155
                                            					permisions.allowDelete
226
                                                                &&
156
                                                                &&
227
                                                                <i
157
                                                                <i
228
                                                                	className='fa fa-trash'
158
                                                                	className='fa fa-trash'
229
                                                                	onClick={() => {
159
                                                                	onClick={() => {