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

Add tooltip to store cart tax iso country field #1556

Merged
merged 1 commit into from
Oct 27, 2016

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Oct 24, 2016

This adds a tooltip using the new field_hint method.

However, field_hint does not currently work with fields_for, which is
why this PR removes the fields_for call and instead uses a full form object
for just the store.

Advantages: We now limit the GeneralSettingsController to only change things for the store.
Disadvantages: See advantages - if anyone patched their GeneralSettingsController,
this would be an issue.

This adds a tooltip using the new `field_hint` method.

However, `field_hint` does not currently work with `fields_for`, which is
why this PR removes the `fields_for` call and instead uses a full form object
for just the store.

Advantages: We now limit the `GeneralSettingsController` to only change things for the store.
Disadvantages: See advantages - if anyone patched their `GeneralSettingsController`,
this would be an issue.
@mamhoff mamhoff changed the title Add tooltip to store cart tax iso country field tAdd tooltip to store cart tax iso country field Oct 24, 2016
@mamhoff mamhoff changed the title tAdd tooltip to store cart tax iso country field Add tooltip to store cart tax iso country field Oct 24, 2016
Copy link
Contributor

@cbrunsdon cbrunsdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with this. Thats some pretty ugly HTML on this page though. might be a good candidate to bootstrap-up sooner rather than later.

@jhawthorn
Copy link
Contributor

I make further changes in #1282, which I will rebase to include this

@jhawthorn jhawthorn merged commit 8724a86 into solidusio:master Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants