Skip to content

Commit

Permalink
Format translations
Browse files Browse the repository at this point in the history
  • Loading branch information
danirod committed Aug 25, 2024
1 parent f14dc43 commit 9e7783c
Show file tree
Hide file tree
Showing 10 changed files with 337 additions and 478 deletions.
8 changes: 5 additions & 3 deletions config/initializers/simple_form_bootstrap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@
b.wrapper :form_check_wrapper, tag: 'div', class: 'form-check' do |bb|
bb.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
bb.use :label, class: 'form-check-label'
bb.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
bb.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
end
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
b.wrapper :form_hint_wrapper, tag: 'p', class: 'mt-0 mb-3 ms-4 form-text text-muted' do |bb|
bb.use :hint, wrap_with: { tag: 'small' }
end
end

Expand Down Expand Up @@ -178,8 +180,8 @@
bb.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
bb.use :label, class: 'form-check-label'
bb.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
bb.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
end
wr.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
end
end

Expand Down
Loading

0 comments on commit 9e7783c

Please sign in to comment.