Skip to content

Commit

Permalink
Merge pull request #1972 from MindLeaps/1971/ungraded
Browse files Browse the repository at this point in the history
1971: Add 'Ungraded' for blank grades
  • Loading branch information
tomca32 committed Jul 27, 2024
2 parents 738491a + 5fcd753 commit 07c0f90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/student_lessons/show.turbo_stream.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="p-2">
<%= g.hidden_field :skill_id, value: g.object.skill_id %>
<%= g.label :grade_descriptor_id, g.object.skill.skill_name, class: 'field-label' %>
<%= g.collection_select :grade_descriptor_id, g.object.skill.grade_descriptors, :id, -> (o) { "#{o.mark} - #{o.grade_description}" }, { include_blank: true }, class: 'mt-1 block w-full rounded-md border-purple-500 shadow-sm focus:border-green-600 focus:ring-green-600 sm:text-sm' %>
<%= g.collection_select :grade_descriptor_id, g.object.skill.grade_descriptors, :id, -> (o) { "#{o.mark} - #{o.grade_description}" }, { include_blank: t(:ungraded) }, class: 'mt-1 block w-full rounded-md border-purple-500 shadow-sm focus:border-green-600 focus:ring-green-600 sm:text-sm' %>
</div>
<% end %>
<div class="p-2">
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ en:
average_grade: Average Grade
graded_of_skills: Graded / Skills
grade_count: Grade Count
ungraded: Ungraded
lesson: Lesson
lessons: Lessons
new_lesson: New Lesson
Expand Down

0 comments on commit 07c0f90

Please sign in to comment.