Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11051 Rev 11059
Línea 62... Línea 62...
62
				page: pages.current
62
				page: pages.current
63
			}
63
			}
64
		})
64
		})
65
	}, [search, dataLength, pages.current, currentVacancy])
65
	}, [search, dataLength, pages.current, currentVacancy])
Línea 66... Línea -...
66
 
-
 
67
	useEffect(() => {
-
 
68
		add_link.replace('UUID_PLACEHOLDER', currentVacancy)
-
 
69
	}, [currentVacancy])
-
 
70
 
66
 
71
	return (
67
	return (
72
		<ContentTitle title='Preselección'>
68
		<ContentTitle title='Preselección'>
73
			<section className="content">
69
			<section className="content">
74
				<div className="container-fluid">
70
				<div className="container-fluid">
Línea 94... Línea 90...
94
										</div>
90
										</div>
95
									</div>
91
									</div>
96
									<div className="row justify-content-end" style={{ gap: '10px' }}>
92
									<div className="row justify-content-end" style={{ gap: '10px' }}>
97
										{
93
										{
98
											permisions.allowAdd
94
											permisions.allowAdd
99
                                            &&
95
											&&
100
                                            <label
96
											<label
101
                                            	className='d-flex align-items-center'
97
												className='d-flex align-items-center'
102
                                            	onClick={() => setIsShowAddModal(true)}
98
												onClick={() => setIsShowAddModal(true)}
103
                                            	style={{ cursor: 'pointer' }}
99
												style={{ cursor: 'pointer' }}
104
                                            >
100
											>
105
                                            	<i className="fa fa-plus mr-2" />
101
												<i className="fa fa-plus mr-2" />
106
                                                Agregar
102
												Agregar
107
                                            </label>
103
											</label>
108
										}
104
										}
109
										<label
105
										<label
110
											className='d-flex align-items-center'
106
											className='d-flex align-items-center'
111
											onClick={() => getData({
107
											onClick={() => getData({
112
												url: table_link,
108
												url: table_link,
Línea 117... Línea 113...
117
												}
113
												}
118
											})}
114
											})}
119
											style={{ cursor: 'pointer' }}
115
											style={{ cursor: 'pointer' }}
120
										>
116
										>
121
											<i className='fa fa-refresh mr-2' />
117
											<i className='fa fa-refresh mr-2' />
122
                                            Actualizar
118
											Actualizar
123
										</label>
119
										</label>
124
									</div>
120
									</div>
125
									<div className="row justify-content-between align-items-center">
121
									<div className="row justify-content-between align-items-center">
126
										<LengthFilter onChange={(e) => setDataLength(e.target.value)} />
122
										<LengthFilter onChange={(e) => setDataLength(e.target.value)} />
127
										<SearchInput onChange={(e) => setSearch(e.target.value)} />
123
										<SearchInput onChange={(e) => setSearch(e.target.value)} />
Línea 143... Línea 139...
143
														}
139
														}
144
													</td>
140
													</td>
145
													<td className='d-flex' style={{ gap: '10px' }}>
141
													<td className='d-flex' style={{ gap: '10px' }}>
146
														{
142
														{
147
															permisions.allowEdit
143
															permisions.allowEdit
148
                                                            &&
144
															&&
149
                                                            <i
145
															<i
150
                                                            	className='fa fa-pencil'
146
																className='fa fa-pencil'
151
                                                            	style={{ cursor: 'pointer' }}
147
																style={{ cursor: 'pointer' }}
152
                                                            	onClick={() => {
148
																onClick={() => {
153
                                                            		setActionLink(item.actions.link_edit)
149
																	setActionLink(item.actions.link_edit)
154
                                                            	}}
150
																}}
155
                                                            />
151
															/>
156
														}
152
														}
157
														{
153
														{
158
															permisions.allowDelete
154
															permisions.allowDelete
159
                                                            &&
155
															&&
160
                                                            <i
156
															<i
161
                                                            	className='fa fa-trash'
157
																className='fa fa-trash'
162
                                                            	onClick={() => {
158
																onClick={() => {
163
                                                            		setShowDeleteModal(true)
159
																	setShowDeleteModal(true)
164
                                                            		setActionLink(item.actions.link_delete)
160
																	setActionLink(item.actions.link_delete)
165
                                                            	}}
161
																}}
166
                                                            	style={{ cursor: 'pointer' }}
162
																style={{ cursor: 'pointer' }}
167
                                                            />
163
															/>
168
														}
164
														}
169
													</td>
165
													</td>
170
												</tr>
166
												</tr>
171
											))
167
											))
172
										}
168
										}
Línea 188... Línea 184...
188
					</div >
184
					</div >
189
				</div >
185
				</div >
190
			</section >
186
			</section >
191
			<AddModal
187
			<AddModal
192
				email_link={email_link}
188
				email_link={email_link}
193
				add_link={add_link}
189
				add_link={add_link.replace('UUID_PLACEHOLDER', currentVacancy)}
194
				closeModal={() => setIsShowAddModal(false)}
190
				closeModal={() => setIsShowAddModal(false)}
195
				isOpen={isShowAddModal}
191
				isOpen={isShowAddModal}
196
			/>
192
			/>
197
			<DeleteModal
193
			<DeleteModal
198
				url={actionLink}
194
				url={actionLink}