Skip to content

Commit

Permalink
Localize section views
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciofierrom committed Jun 19, 2024
1 parent f39d14b commit 415b8ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/sections/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>

<%= form.label :name %>
<%= form.text_field :name, minlength: 5, maxlength: 25, placeholder: "Name" %>
<%= form.text_field :name, minlength: 5, maxlength: 25, placeholder: Section.human_attribute_name("name") %>

<%= form.label :playback_speed %>
<%= form.text_field :playback_speed, min: 0.5, max: 2, type: :number, step: 0.5 %>
Expand All @@ -29,6 +29,6 @@

<div class="action-buttons">
<%= form.submit %>
<%= link_to "Cancel", lesson_path(@lesson) %>
<%= link_to t(:cancel), lesson_path(@lesson) %>
</div>
<% end %>

0 comments on commit 415b8ef

Please sign in to comment.