Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16718 Rev 16719
Línea 337... Línea 337...
337
      )}
337
      )}
338
      <div className="form-group">
338
      <div className="form-group">
339
        <label htmlFor="question">Duración</label>
339
        <label htmlFor="question">Duración</label>
340
        <Datetime
340
        <Datetime
341
          dateFormat="DD/MM/YYYY"
341
          dateFormat="DD/MM/YYYY"
342
          timeFormat="HH:mm"
-
 
343
          onChange={handleChange}
342
          onChange={handleChange}
344
          isValidDate={(current) =>
343
          isValidDate={(current) =>
345
            current.isBefore(calculateMaxDate()) &&
344
            current.isBefore(calculateMaxDate()) &&
346
            current.isAfter(calculateMinDate())
345
            current.isAfter(calculateMinDate())
347
          } // Se valida que la fecha esté entre la fecha mínima y la fecha máxima
346
          } // Se valida que la fecha esté entre la fecha mínima y la fecha máxima
348
          timeConstraints={{
-
 
349
            hours: { max: 23 },
-
 
350
            minutes: { max: 59 }
-
 
351
          }}
-
 
352
          value={selectedDate}
347
          value={selectedDate}
353
        />
348
        />
354
      </div>
349
      </div>
355
    </>
350
    </>
356
  )
351
  )