Skip to content

Commit

Permalink
Fixed some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexy78 committed Nov 28, 2024
1 parent c7f5226 commit 8fde9ed
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/models/calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class Calculator < ApplicationRecord
validates :en_name, :uk_name, presence: true
validates :en_name, :uk_name, length: { minimum: 3, maximum: 50 }
validates :slug, presence: true, uniqueness: true
validates :english_additional_notes, length: { maximum: 150 }
validates :ukranian_additional_notes, length: { maximum: 150 }
validates :english_additional_notes, length: { maximum: 500 }
validates :ukranian_additional_notes, length: { maximum: 500 }

def self.ransackable_attributes(auth_object = nil)
["created_at", "id", "name", "preferable", "slug", "updated_at", "uuid"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= tinymce_assets %>
<div data-controller="tinymce">
<div class="pt-4">
<%= f.label :ukranian_additional_notes, "Ukrainian Additional Notes" %>
<%= f.label :ukranian_additional_notes, t("account.calculators.new.ukranian_additional_notes") %>
<%= f.text_area :ukranian_additional_notes, data: { tinymce_target: "input" }, class: "tinymce", rows: 20, cols: 60 %>
</div>

Expand Down
2 changes: 2 additions & 0 deletions config/locales/en/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ en:
update_calculator_button: "Update calculator"
new:
create_calculator_button: "Create calculator"
ukranian_additional_notes: "Додаткові нотатки українською"
english_additional_notes: "Додаткові нотатки англійською"
feature_flags:
submit_button: "Save"
new_calculator_design:
Expand Down
2 changes: 2 additions & 0 deletions config/locales/uk/uk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ uk:
prohibited_to_update: " перешкоджають оновленню калькулятора"
prohibited_to_save: " перешкоджають збереженню калькулятора"
error: "помилки"
ukranian_additional_notes: "Ukrainian Additional Notes"
english_additional_notes: "English Additional Notes"
site_settings:
edit:
meta-title: "Налаштування сайту"
Expand Down

0 comments on commit 8fde9ed

Please sign in to comment.