Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 9782 Rev 9791
Línea 1... Línea 1...
1
import React, { useState } from 'react'
1
import React, { useState } from 'react'
2
import { useForm } from 'react-hook-form'
2
import { useForm } from 'react-hook-form'
3
import { SearchInput } from '../components/TableComponents'
-
 
4
import Datetime from 'react-datetime'
3
import Datetime from 'react-datetime'
-
 
4
import SearchLocationInput from '../../../shared/SearchLocationInput'
5
import "react-datetime/css/react-datetime.css"
5
import "react-datetime/css/react-datetime.css"
Línea 6... Línea 6...
6
 
6
 
Línea 7... Línea 7...
7
const FormView = ({ actionLink, googleApiKey }) => {
7
const FormView = ({ actionLink, googleApiKey }) => {
Línea 67... Línea 67...
67
                }
67
                }
68
              </select>
68
              </select>
69
            </div>
69
            </div>
70
            <div className="form-group">
70
            <div className="form-group">
71
              <label>Ubicación</label>
71
              <label>Ubicación</label>
72
              <SearchInput
72
              <SearchLocationInput
73
                value={locationLabel}
73
                value={locationLabel}
74
                setValue={setLocationLabel}
74
                setValue={setLocationLabel}
75
                googleApiKey={googleApiKey}
75
                googleApiKey={googleApiKey}
76
                updateData={setLocation}
76
                updateData={setLocation}
77
              />
77
              />
Línea 86... Línea 86...
86
                }
86
                }
87
              </select>
87
              </select>
88
            </div>
88
            </div>
89
            <div className="form-group">
89
            <div className="form-group">
90
              <label>Último día de aplicación</label>
90
              <label>Último día de aplicación</label>
91
              <select name="industry_id" className="form-control" ref={register({ required: true })}>
-
 
92
                <Datetime
91
              <Datetime
93
                  dateFormat="DD-MM-YYYY"
92
                dateFormat="DD-MM-YYYY"
94
                  timeFormat={false}
93
                timeFormat={false}
95
                  onChange={(e) =>
94
                onChange={(e) =>
96
                    setYear(new Intl.DateTimeFormat({ year: 'numeric', month: 'numeric', day: 'numeric' }).format(e.toDate()))
95
                  setYear(new Intl.DateTimeFormat({ year: 'numeric', month: 'numeric', day: 'numeric' }).format(e.toDate()))
97
                  }
96
                }
98
                  inputProps={{ className: 'form-control' }}
97
                inputProps={{ className: 'form-control' }}
99
                  closeOnSelect
98
                closeOnSelect
100
                />
99
              />
101
              </select>
-
 
102
            </div>
100
            </div>
103
          </form>
101
          </form>
104
        </div>
102
        </div>
105
      </div>
103
      </div>
106
    </section>
104
    </section>