Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11943 Rev 11947
Línea 93... Línea 93...
93
		if (action === 'edit') {
93
		if (action === 'edit') {
94
			axios.get(actionLink)
94
			axios.get(actionLink)
95
				.then(({ data }) => {
95
				.then(({ data }) => {
96
					const respData = data.data
96
					const respData = data.data
97
					if (data.success) {
97
					if (data.success) {
-
 
98
 
98
						setLocationLabel(respData.formatted_address)
99
						setLocationLabel(respData.formatted_address)
99
						setYear(respData.last_date)
100
						setYear(respData.last_date)
100
						respData.status === 'a' ? setIsActive(true) : setIsActive(false)
101
						respData.status === 'a' ? setIsActive(true) : setIsActive(false)
Línea 101... Línea 102...
101
 
102
 
Línea 109... Línea 110...
109
 
110
 
110
						Object.entries(respData.job_description.description_options).map(([value, label]) => {
111
						Object.entries(respData.job_description.description_options).map(([value, label]) => {
111
							setJobsDescriptions(prev => [...prev, { value: value, label: label }])
112
							setJobsDescriptions(prev => [...prev, { value: value, label: label }])
Línea 112... Línea -...
112
						})
-
 
113
 
113
						})
114
						register('description')
114
 
Línea 115... Línea 115...
115
						setValue('name', respData.name)
115
						setValue('name', respData.name)
116
						setValue('description', respData.description)
116
						setValue('description', respData.description)
Línea 192... Línea 192...
192
						<div className="form-group">
192
						<div className="form-group">
193
							<label>Descripción</label>
193
							<label>Descripción</label>
194
							<DescriptionInput
194
							<DescriptionInput
195
								onChange={setValue}
195
								onChange={setValue}
196
								name="description"
196
								name="description"
197
								defaultValue={parse(watch('description', ''))}
197
								defaultValue={watch('description') ? parse(watch('description')) : ''}
198
							/>
198
							/>
199
						</div>
199
						</div>
200
						<div className="form-group">
200
						<div className="form-group">
201
							<label>Estatus</label>
201
							<label>Estatus</label>
202
							<div
202
							<div