Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15103 Rev 15104
Línea 214... Línea 214...
214
						<div className="form-group">
214
						<div className="form-group">
215
							<label>Último día de aplicación</label>
215
							<label>Último día de aplicación</label>
216
							<Datetime
216
							<Datetime
217
								dateFormat="DD-MM-YYYY"
217
								dateFormat="DD-MM-YYYY"
218
								timeFormat={false}
218
								timeFormat={false}
219
								onChange={(e) => {
-
 
220
									if (new Date > new Date(e.toDate())) {
219
								onChange={(e) => setYear(e.toDate())}
221
										setYear(new Date(new Intl.DateTimeFormat('en-EN', year).format()))
-
 
222
										return dispatch(addNotification({
-
 
223
											style: 'danger',
-
 
224
											msg: 'La fecha no puede ser anterior a la fecha actual'
-
 
225
										}))
-
 
226
									}
-
 
227
									setYear(new Intl.DateTimeFormat({ year: 'numeric', month: 'numeric', day: 'numeric' }).format(e.toDate()))
-
 
228
								}}
-
 
229
								inputProps={{ className: 'form-control' }}
220
								inputProps={{ className: 'form-control' }}
230
								initialValue={
221
								initialValue={new Date(year)}
231
									new Date(new Intl.DateTimeFormat('en-EN', action === 'edit' ? Date.parse(year) : year).format())
-
 
232
								}
-
 
233
								closeOnSelect
222
								closeOnSelect
234
							/>
223
							/>
235
							{inputErrors.year && <p>{inputErrors.year}</p>}
224
							{inputErrors.year && <p>{inputErrors.year}</p>}
236
						</div>
225
						</div>
237
						<div className="form-group">
226
						<div className="form-group">