Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11156 Rev 11160
Línea 4... Línea 4...
4
import axios from 'axios'
4
import axios from 'axios'
5
import SearchLocationInput from '../../../shared/SearchLocationInput'
5
import SearchLocationInput from '../../../shared/SearchLocationInput'
6
import DescriptionInput from '../../../shared/DescriptionInput'
6
import DescriptionInput from '../../../shared/DescriptionInput'
7
import { useHistory, useParams } from 'react-router-dom'
7
import { useHistory, useParams } from 'react-router-dom'
8
import 'react-datetime/css/react-datetime.css'
8
import 'react-datetime/css/react-datetime.css'
9
import { validate } from 'uuid'
-
 
10
import { addNotification } from '../../../redux/notification/notification.actions'
9
import { addNotification } from '../../../redux/notification/notification.actions'
11
import { useDispatch } from 'react-redux'
10
import { useDispatch } from 'react-redux'
Línea 12... Línea 11...
12
 
11
 
Línea 78... Línea 77...
78
				dispatch(addNotification({
77
				dispatch(addNotification({
79
					style: 'success',
78
					style: 'success',
80
					msg: `Registro ${action === 'edit' ? 'actualizado' : 'guardado'}`
79
					msg: `Registro ${action === 'edit' ? 'actualizado' : 'guardado'}`
81
				}))
80
				}))
82
			})
81
			})
83
			.catch((err) => dispatch(addNotification({
82
			.catch(() => dispatch(addNotification({
84
				style: 'error',
83
				style: 'error',
85
				msg: 'Ha ocurrido un error'
84
				msg: 'Ha ocurrido un error'
86
			})))
85
			})))
Línea 87... Línea 86...
87
 
86
 
Línea 137... Línea 136...
137
						<div className="form-group">
136
						<div className="form-group">
138
							<label>Cargo a evaluar</label>
137
							<label>Cargo a evaluar</label>
139
							<select name="job_description_id" className="form-control" ref={register({ required: true })}>
138
							<select name="job_description_id" className="form-control" ref={register({ required: true })}>
140
								{
139
								{
141
									jobsDescriptions.map(({ label, value }) => (
140
									jobsDescriptions.map(({ label, value }) => (
142
										<option value={value}>{label}</option>
141
										<option key={value} value={value}>{label}</option>
143
									))
142
									))
144
								}
143
								}
145
							</select>
144
							</select>
146
						</div>
145
						</div>
147
						<div className="form-group">
146
						<div className="form-group">
148
							<label>Categoría de Empleo</label>
147
							<label>Categoría de Empleo</label>
149
							<select name="job_category_id" className="form-control" ref={register({ required: true })}>
148
							<select name="job_category_id" className="form-control" ref={register({ required: true })}>
150
								{
149
								{
151
									jobsCategory.map(({ label, value }) => (
150
									jobsCategory.map(({ label, value }) => (
152
										<option value={value}>{label}</option>
151
										<option key={value} value={value}>{label}</option>
153
									))
152
									))
154
								}
153
								}
155
							</select>
154
							</select>
156
						</div>
155
						</div>
157
						<div className="form-group">
156
						<div className="form-group">
Línea 167... Línea 166...
167
						<div className="form-group">
166
						<div className="form-group">
168
							<label>Industria</label>
167
							<label>Industria</label>
169
							<select name="industry_id" className="form-control" ref={register({ required: true })}>
168
							<select name="industry_id" className="form-control" ref={register({ required: true })}>
170
								{
169
								{
171
									industry.map(({ label, value }) => (
170
									industry.map(({ label, value }) => (
172
										<option value={value}>{label}</option>
171
										<option key={value} value={value}>{label}</option>
173
									))
172
									))
174
								}
173
								}
175
							</select>
174
							</select>
176
						</div>
175
						</div>
177
						<div className="form-group">
176
						<div className="form-group">