Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adicionar formulário de aplicação #20

Open
j0a0m4 opened this issue Jan 29, 2021 · 0 comments
Open

Adicionar formulário de aplicação #20

j0a0m4 opened this issue Jan 29, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@j0a0m4
Copy link
Collaborator

j0a0m4 commented Jan 29, 2021

ApplicationForm

Criar componente ApplicationForm responsável para receber as informações de uma aplicação da vacina.

📌 Atenção: Esse componente, ou algum componente pai que gerencie o estado, será responsável por enviar o payload para API.

Campo Label Type
name Nome da vacina string
company Laboratório string
batch Partida string
expirationDate Vencimento date
petWeight Peso do Pet float

Exemplo do schema:

{
  "vaccine": {
    "name": "Raiva",
    "company": "Nobivac",
    "batch": "2021/01",
    "expirationDate": "2021-08-22"
  },
  "petWeight": 4.5
}

Snippet JavaScript Date:

// Get actual datetime
const createdAt = new Date();

// Get actual date
const expirationDate = new Date().toISOString().substring(0, 10);

Imagens:
Aplicacao

@j0a0m4 j0a0m4 added the enhancement New feature or request label Jan 29, 2021
@DanielMarquesz DanielMarquesz self-assigned this Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants