Julian Herrero
4344165bce
change translatable form helper for cktext_area
2018-09-24 19:40:51 +02:00
Julian Herrero
e6762d6bca
handle non-underscored locale names for cktext_area
2018-09-21 20:50:23 +02:00
Marko Lovic
c7fcdd9b0e
Use standard locale names for Globalize
...
It turns out it is not necessary to downcase and underscore
locale names to use the globalize-accessor gem. The gem
will automatically underscore the locale name when defining and
calling the accessor methods.
2018-09-11 18:48:14 +02:00
Marko Lovic
6fe7dc22bc
Fix translatable field labels to not include locale
...
Label for field :title should be "Title", not "Title en"
2018-09-11 18:48:09 +02:00
Marko Lovic
ca5f8719a8
Fix helper to merge style option correctly
2018-09-11 18:48:05 +02:00
Marko Lovic
1fb1437886
Fix merging_translatable_field_options helper
2018-09-11 18:48:01 +02:00
Marko Lovic
5ad3bf03cd
Nest TranslatableFormBuilder in helper module
...
To avoid having multiple top-level classes per file
2018-09-11 18:47:57 +02:00
Marko Lovic
e26500179a
Add missing blank line between methods
2018-09-11 18:47:52 +02:00
Marko Lovic
38e6c394e7
Change string manipulation to use interpolation for readability
2018-09-11 18:47:48 +02:00
Marko Lovic
b9f3ea2a33
Change variable name to reflect possibility of being array
2018-09-11 18:47:43 +02:00
Marko Lovic
7b0aa1e104
Extract merge_translatable_field_options helper method
2018-09-11 18:47:34 +02:00
Marko Lovic
61e3b3b406
Incorporate label into translatabel field
...
Suggested by @javierm so that we can take advantage of certain browser
features that rely on a <label> tag being associated with an <input> tag.
2018-09-11 18:47:28 +02:00
Marko Lovic
2cb3e4b111
Extract translatable field logic to FormBuilder
2018-09-11 18:46:50 +02:00