dwyl/autoform

Input types

Open

#4 opened on Sep 28, 2018

View on GitHub
 (1 comment) (1 reaction) (0 assignees)Elixir (2 forks)auto 404
help wantedquestion

Repository metrics

Stars
 (21 stars)
PR merge metrics
 (PR metrics pending)

Description

We currently have a number of input types working:

Based on Ecto Types:

  • :string - text input
  • :integer, :float, :decimal - number input
  • :boolean - checkbox
  • :date - generates three select inputs - year, month, day
  • :time - generates two select inputs - hour, minute
  • :utc_datetime, naive_datetime - combines :date and :time inputs

Based on field name:

  • :email - email input
  • :password - password input
  • :url - url input
  • :search - search input

Any other name/types will generate a text input.

Are there any other basic types we want to cover? Are any of these incorrect/do any have a better input type?

Contributor guide