Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4130 Rev 4133
Línea 1047... Línea 1047...
1047
          <label htmlFor="first_name">Título</label>
1047
          <label htmlFor="first_name">Título</label>
1048
          <input
1048
          <input
1049
            type="text"
1049
            type="text"
1050
            name="title"
1050
            name="title"
1051
            className="form-control"
1051
            className="form-control"
-
 
1052
            maxLength={128}
1052
            {...register({ required: "Por favor un título" })}
1053
            {...register({ required: "Por favor ingrese un título" })}
1053
          />
1054
          />
1054
          {errors.title && <FormErrorFeedback> {errors.title.message}</FormErrorFeedback>}
1055
          {errors.title && <FormErrorFeedback> {errors.title.message}</FormErrorFeedback>}
1055
        </div>
1056
        </div>
1056
        <div className="form-group">
1057
        <div className="form-group">
-
 
1058
          <label htmlFor="first_name">Descripción</label>
-
 
1059
          <input
-
 
1060
            type="text"
-
 
1061
            name="description"
-
 
1062
            className="form-control"
-
 
1063
            {...register({ required: "Por favor ingrese una descripción" })}
-
 
1064
          />
-
 
1065
          {errors.title && <FormErrorFeedback> {errors.description.message}</FormErrorFeedback>}
-
 
1066
        </div>
-
 
1067
        <div className="form-group">
1057
          <label htmlFor="timezone">Zona horaria</label>
1068
          <label htmlFor="timezone">Zona horaria</label>
1058
          <select
1069
          <select
1059
            className="form-control"
1070
            className="form-control"
1060
            name="timezone"
1071
            name="timezone"
1061
            {...register({ required: "Por favor elige una Zona horaria" })}
1072
            {...register({ required: "Por favor elige una Zona horaria" })}
Línea 1069... Línea 1080...
1069
              </option>
1080
              </option>
1070
            ))}
1081
            ))}
1071
          </select>
1082
          </select>
1072
          {errors.timezone && <FormErrorFeedback>{errors.timezone.message}</FormErrorFeedback>}
1083
          {errors.timezone && <FormErrorFeedback>{errors.timezone.message}</FormErrorFeedback>}
1073
        </div>
1084
        </div>
1074
        <div className="d-flex flex-wrap pb-3" style={{ gap: '1rem' }}>
1085
        <div className="form-group">
-
 
1086
          <label htmlFor="timezone">Duración</label>
-
 
1087
          <select
-
 
1088
            className="form-control"
-
 
1089
            name="duration"
-
 
1090
            {...register({ required: "Por favor elige una Zona horaria" })}
-
 
1091
          >
-
 
1092
            <option value={5}>5-min</option>
-
 
1093
            <option value={10}>10-min</option>
-
 
1094
            <option value={15}>15-min</option>
-
 
1095
            <option value={20}>20-min</option>
-
 
1096
            <option value={25}>25-min</option>
-
 
1097
            <option value={30}>30-min</option>
-
 
1098
            <option value={35}>35-min</option>
-
 
1099
            <option value={40}>40-min</option>
-
 
1100
            <option value={45}>45-min</option>
-
 
1101
          </select>
-
 
1102
          {errors.timezone && <FormErrorFeedback>{errors.timezone.message}</FormErrorFeedback>}
-
 
1103
        </div>
1075
          <div className="cp-field">
1104
        <div className="form-group">
1076
            <label htmlFor="timezone">Tipo de conferencia</label>
1105
          <label htmlFor="timezone">Tipo de conferencia</label>
1077
            <select
1106
          <select
1078
              name="type"
1107
            name="type"
-
 
1108
            className="form-control"
1079
              onChange={({ target }) => handleChange(target.value)}
1109
            onChange={({ target }) => handleChange(target.value)}
1080
              {...register}
1110
            {...register}
1081
            >
1111
          >
1082
              <option value="1">
1112
            <option value='i'>
1083
                Inmediata
1113
              Inmediata
1084
              </option>
1114
            </option>
1085
              <option value="2">
1115
            <option value='s'>
1086
                Programada
1116
              Programada
1087
              </option>
1117
            </option>
1088
            </select>
1118
          </select>
-
 
1119
        </div>
-
 
1120
        {
-
 
1121
          coferenceType === 's' &&
-
 
1122
          <div className="form-group">
-
 
1123
            <label htmlFor="timezone">Horario</label>
-
 
1124
            <Datetime
-
 
1125
              dateFormat="DD-MM-YYYY"
-
 
1126
              onChange={(e) => handleDateTime(e.toDate())}
-
 
1127
              inputProps={{ className: 'form-control' }}
-
 
1128
              initialValue={Date.parse(date)}
-
 
1129
              closeOnSelect
-
 
1130
            />
1089
          </div>
1131
          </div>
1090
          {
1132
        }
1091
            coferenceType === '2' &&
-
 
1092
            <div className="cp-field">
1133
        <div className="form-group">
1093
              <label htmlFor="timezone">Tipo de conferencia</label>
1134
          <label htmlFor="first_name">Contraseña de ingreso</label>
1094
              <Datetime
1135
          <input
1095
                dateFormat="DD-MM-YYYY"
1136
            type="password"
1096
                onChange={(e) => {
1137
            name="password"
1097
                  handleDateTime(e.toDate());
-
 
1098
                  setTime(new Intl.DateTimeFormat('en', { hour: '2-digit', minute: '2-digit', second: '2-digit' }).format(e.toDate()))
-
 
1099
                }}
-
 
1100
                inputProps={{ className: 'form-control' }}
1138
            className="form-control"
1101
                initialValue={Date.parse(date)}
1139
            {...register({ required: "Por favor ingrese una contraseña" })}
1102
                closeOnSelect
-
 
1103
              />
1140
          />
1104
            </div>
1141
          {errors.title && <FormErrorFeedback> {errors.password.message}</FormErrorFeedback>}
1105
          }
-
 
1106
        </div>
1142
        </div>
1107
        <button className="btn btn-primary">
1143
        <button className="btn btn-primary">
1108
          Crear
1144
          Crear
1109
        </button>
1145
        </button>
1110
      </form>
1146
      </form>
1111
    </StyleModal>
1147
    </StyleModal >
1112
  )
1148
  )
1113
}
1149
}
Línea 1114... Línea 1150...
1114
 
1150
 
1115
export default React.memo(PersonalChat);
1151
export default React.memo(PersonalChat);