Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip helper functionality in admin interface on fields #39

Open
sonofabear opened this issue Nov 2, 2015 · 1 comment
Open

Tooltip helper functionality in admin interface on fields #39

sonofabear opened this issue Nov 2, 2015 · 1 comment

Comments

@sonofabear
Copy link

Why? Some fields require a bit of explanation as to what data we're looking for, or how this field might affect how the component looks/functions on the front end. I think it would be good to have an option when adding a field to the ruby code to have a way to enter optional helper text that would then trigger a "?" hover over on the admin interface. This would allow us to give the user a "tip", using this new "tool".

@jasontwong
Copy link
Contributor

There is a way to add field hints to a field through active admin:

              f.input :featured_image, type: :file, hint: f.object.featured_image.present? \
                ? image_tag(f.object.featured_image.url(:thumb))
                : content_tag(:span, "no featured image yet")

I'm using it to show a preview of the uploaded image. Would we still need this additional functionality if we added a hint to the fields? I guess I could see the components themselves having a tip or mini readme of some sort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants