Skip to content

Commit

Permalink
Criando quadro de aulas
Browse files Browse the repository at this point in the history
Corrigindo erro genérico ao criar quadro de aulas
  • Loading branch information
williamsla authored Feb 1, 2024
1 parent cc0ad82 commit 1c332eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/lessons_boards/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
<% 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 %>
<% end %>
</div>

Expand Down

0 comments on commit 1c332eb

Please sign in to comment.