Open cokernel opened 11 years ago
Sound reasonable. I have the tooltip text ready for the vast majority of fields.
@libmanuk, we configure the tooltip text in config/locales/en.yml. This is written in YAML. Just as a preview, here's part of the configuration for repository fields:
repository:
abstract: This is the abstract.
The configuration of this tooltip can span multiple lines.
email: This is the email.
I can walk you through the process of submitting a pull request with your proposed tooltip text.
Right now, tooltips display properly for all form controls but the ones modified with jquery-chosen. This fails for the modified controls because chosen plugin hides the original dropdown control (which has the tooltip attached) and does not attach a tooltip to the control it creates.
Here are the strategies I see for dealing with this:
config/initializers/tooltip_component.rb
references#input_html_options
, and an analogous#label_html_options
method is provided by SimpleForm::Components::Labels. I think this strategy might require some mild monkeypatching of SimpleForm to prevent the data fields from being dropped from the labels.