-
Notifications
You must be signed in to change notification settings - Fork 48
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
Criando quadro de aulas #154
Conversation
Corrigindo erro genérico ao criar quadro de aulas
|
@edersoares, realizei o teste tando na versão 1.4 do i-Diário quanto na 1.5 e o PR corrigi o problema! @williamsla, show de bola meu caro, parabéns pela contribuição! |
<% else %> | ||
<%= f.input :unity, label: t('lessons_boards.index.unity'), placeholder: t('lessons_boards.index.unity'), readonly: true, input_html: { value: f.object.classroom.unity.name }, required: true %> | ||
<%= f.input :unity, label: t('lessons_boards.index.unity'), placeholder: t('lessons_boards.index.unity'), readonly: true, input_html: { value: f.object.classrooms_grade.classroom.unity.name }, required: true %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esse ponto faz sentido pra mim
@@ -8,9 +8,9 @@ | |||
<div class="col col-sm-3"> | |||
<% if action_name == "new" %> | |||
<%= f.input :unity, as: :select2, elements: unities, hide_empty_element: true, label: t('lessons_boards.index.unity'), | |||
placeholder: t('lessons_boards.index.unity'), readonly: !can_change_unity?, input_html: { value: !can_change_unity? ? unities.first.id : '' }, required: true %> | |||
placeholder: t('lessons_boards.index.unity'), readonly: false, input_html: { value: unities.first.id }, required: true %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esse impacta na usabilidade da tela, não? @AnaPerola @Dmadaschi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@edersoares a variável can_change_unity
não foi definida no código-fonte do projeto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@edersoares @williamsla Esse ajuste já está passando pelos processos internos da Portabilis. Realmente a can_change_unity
não foi definida aqui nesse projeto.
Olá pessoal, Agradeço a contribuição @williamsla, irei apenas encerrar esse PR pois já inserimos esse ajuste e está disponível aqui 🚀 |
Corrigindo erro genérico ao criar quadro de aulas
Descrição
Ao tentar criar um novo quadro de aulas estava aparecendo a mensagem de erro genérico
Contexto e motivação
Corrigindo a forma de acessar o objeto
classrroms_grade
Tipos de alterações
Checklist: