Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4136 Rev 4137
Línea 1053... Línea 1053...
1053
          <input
1053
          <input
1054
            type="text"
1054
            type="text"
1055
            name="title"
1055
            name="title"
1056
            className="form-control"
1056
            className="form-control"
1057
            maxLength={128}
1057
            maxLength={128}
1058
            {...register({ required: "Por favor ingrese un título" })}
1058
            ref={register({ required: "Por favor ingrese un título" })}
1059
          />
1059
          />
1060
          {errors.title && <FormErrorFeedback> {errors.title.message}</FormErrorFeedback>}
1060
          {errors.title && <FormErrorFeedback> {errors.title.message}</FormErrorFeedback>}
1061
        </div>
1061
        </div>
1062
        <div className="form-group">
1062
        <div className="form-group">
1063
          <label htmlFor="first_name">Descripción</label>
1063
          <label htmlFor="first_name">Descripción</label>
1064
          <input
1064
          <input
1065
            type="text"
1065
            type="text"
1066
            name="description"
1066
            name="description"
1067
            className="form-control"
1067
            className="form-control"
1068
            {...register({ required: "Por favor ingrese una descripción" })}
1068
            ref={register({ required: "Por favor ingrese una descripción" })}
1069
          />
1069
          />
1070
          {errors.title && <FormErrorFeedback> {errors.description.message}</FormErrorFeedback>}
1070
          {errors.title && <FormErrorFeedback> {errors.description.message}</FormErrorFeedback>}
1071
        </div>
1071
        </div>
1072
        <div className="form-group">
1072
        <div className="form-group">
1073
          <label htmlFor="timezone">Tipo de conferencia</label>
1073
          <label htmlFor="timezone">Tipo de conferencia</label>
1074
          <select
1074
          <select
1075
            name="type"
1075
            name="type"
1076
            className="form-control"
1076
            className="form-control"
1077
            onChange={({ target }) => handleChange(target.value)}
1077
            onChange={({ target }) => handleChange(target.value)}
1078
            {...register}
1078
            ref={register}
1079
          >
1079
          >
1080
            <option value='i'>
1080
            <option value='i'>
1081
              Inmediata
1081
              Inmediata
1082
            </option>
1082
            </option>
1083
            <option value='s'>
1083
            <option value='s'>
Línea 1101... Línea 1101...
1101
        <div className="form-group">
1101
        <div className="form-group">
1102
          <label htmlFor="timezone">Zona horaria</label>
1102
          <label htmlFor="timezone">Zona horaria</label>
1103
          <select
1103
          <select
1104
            className="form-control"
1104
            className="form-control"
1105
            name="timezone"
1105
            name="timezone"
1106
            {...register({ required: "Por favor elige una Zona horaria" })}
1106
            ref={register({ required: "Por favor elige una Zona horaria" })}
1107
          >
1107
          >
1108
            <option value="" hidden>
1108
            <option value="" hidden>
1109
              Zona horaria
1109
              Zona horaria
1110
            </option>
1110
            </option>
1111
            {Object.entries(timezones).map(([key, value]) => (
1111
            {Object.entries(timezones).map(([key, value]) => (
Línea 1119... Línea 1119...
1119
        <div className="form-group">
1119
        <div className="form-group">
1120
          <label htmlFor="timezone">Duración</label>
1120
          <label htmlFor="timezone">Duración</label>
1121
          <select
1121
          <select
1122
            className="form-control"
1122
            className="form-control"
1123
            name="duration"
1123
            name="duration"
1124
            {...register({ required: "Por favor elige una Zona horaria" })}
1124
            ref={register}
1125
          >
1125
          >
1126
            <option value={5}>5-min</option>
1126
            <option value={5}>5-min</option>
1127
            <option value={10}>10-min</option>
1127
            <option value={10}>10-min</option>
1128
            <option value={15}>15-min</option>
1128
            <option value={15}>15-min</option>
1129
            <option value={20}>20-min</option>
1129
            <option value={20}>20-min</option>
Línea 1139... Línea 1139...
1139
          <label htmlFor="first_name">Contraseña de ingreso</label>
1139
          <label htmlFor="first_name">Contraseña de ingreso</label>
1140
          <input
1140
          <input
1141
            type="password"
1141
            type="password"
1142
            name="password"
1142
            name="password"
1143
            className="form-control"
1143
            className="form-control"
1144
            maxLength={6}
1144
            ref={register({
1145
            {...register({ required: "Por favor ingrese una contraseña" })}
1145
              required: "Por favor ingrese una contraseña",
-
 
1146
              minLength: { value: 6, message: "La contraseña debe tener al menos 6 digitos" }
-
 
1147
            })}
1146
          />
1148
          />
1147
          {errors.title && <FormErrorFeedback> {errors.password.message}</FormErrorFeedback>}
1149
          {errors.title && <FormErrorFeedback> {errors.password.message}</FormErrorFeedback>}
1148
        </div>
1150
        </div>
1149
        <button
1151
        <button
1150
          className="btn btn-primary"
1152
          className="btn btn-primary"