Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14369 Rev 14370
Línea 80... Línea 80...
80
		section: sectionSelected.slug_section,
80
		section: sectionSelected.slug_section,
81
		question: questionSelected.slug_question,
81
		question: questionSelected.slug_question,
82
		option: optionSelected.slug_option
82
		option: optionSelected.slug_option
83
	}
83
	}
Línea 84... Línea 84...
84
 
84
 
85
	const [text,setText] = useState('')
85
	const [text,setText] = useState(' ')
Línea 86... Línea 86...
86
	const [description,setDescription] = useState('')
86
	const [description,setDescription] = useState(' ')
87
 
87
 
88
	// Section methods
88
	// Section methods
89
	const showSectionModal = (section = INITIAL_SECTION, type = 'add') => {
89
	const showSectionModal = (section = INITIAL_SECTION, type = 'add') => {
Línea 401... Línea 401...
401
					setValue('description', data.data.description)
401
					setValue('description', data.data.description)
402
					setValue('text', data.data.description)
402
					setValue('text', data.data.description)
403
					setDescription(data.data.description)
403
					setDescription(data.data.description)
404
					setText(data.data.text)
404
					setText(data.data.text)
405
				})
405
				})
406
		}else{
-
 
407
			setDescription('')
-
 
408
			setText('')
-
 
409
		}
406
		}
410
	}, [actionLink])
407
	}, [actionLink])
Línea 411... Línea 408...
411
 
408
 
412
	return (
409
	return (
Línea 418... Línea 415...
418
							<label>Nombre</label>
415
							<label>Nombre</label>
419
							<input type="text" name="name" className='form-control' ref={register({ required: true, maxLength: 50 })} />
416
							<input type="text" name="name" className='form-control' ref={register({ required: true, maxLength: 50 })} />
420
						</div>
417
						</div>
421
						<div className="form-group">
418
						<div className="form-group">
422
							<label htmlFor="form-description">Descripción</label>
419
							<label htmlFor="form-description">Descripción</label>
423
							{(description) && 
420
							{/* {(description) &&  */}
424
							<DescriptionInput
421
							<DescriptionInput
425
								defaultValue={description}
422
								defaultValue={description}
426
								name='description'
423
								name='description'
427
								onChange={setDescription}
424
								onChange={setDescription}
428
							/>}
425
							/>
-
 
426
							{/* } */}
Línea 429... Línea 427...
429
							
427
							
430
						</div>
428
						</div>
431
						<div className="form-group">
429
						<div className="form-group">
432
							<label htmlFor="form-description">Texto</label>
430
							<label htmlFor="form-description">Texto</label>