Sha256: 5fecb79c05af953d63e4c21bae0be110f2a6e2e3c206701b32a639887ce5d6ee
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
= form.fields_for field.translations_field do |localized_field| - I18n.available_locales.each do |locale| - val = form.object.send("#{field.name}_translations").try(:[], locale.to_s) %div = localized_field.label locale = localized_field.send field_type, locale, html_attributes.reverse_merge({ :value => field.value.try(:[], locale.to_s) })
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_hstore_translate-0.1.0 | app/views/rails_admin/main/form_types/_form_simple.html.haml |