-
Notifications
You must be signed in to change notification settings - Fork 357
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
Show additional fields for dynamic fields #1199
Show additional fields for dynamic fields #1199
Conversation
d97ff33
to
e9c25fc
Compare
299e990
to
c3f43b3
Compare
Made changes to show additional fields for dynamic fields. Additional field sunder Options box are displayed as well as new box with label "Overridable Options" appears for dynamic fields. More details on these fields are in BZ comment#28(https://bugzilla.redhat.com/show_bug.cgi?id=1431692#c28) https://bugzilla.redhat.com/show_bug.cgi?id=1431692
c3f43b3
to
eafd24e
Compare
Checked commit h-kataria@eafd24e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@eclarizio After a few rounds I think we got the fields showing correctly now. Please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, one small comment about a potential refactoring that can be done in a future PR.
👍
@@ -28,4 +28,91 @@ | |||
= check_box_tag('field_auto_refresh', '1', | |||
@edit[:field_auto_refresh], | |||
'data-miq_observe_checkbox' => {:url => url}.to_json) | |||
.form-group |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one stands out to me, but a lot of these .form-group
s are duplicated now, right? Should we maybe be looking at separating them into their own partials in the future so that we don't accidentally forget to change both places?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eclarizio i agree, and I have that on my mind to refactor this, so in future we don't have to maintain these fields in 2 places.
Show additional fields for dynamic fields (cherry picked from commit ed444a8) https://bugzilla.redhat.com/show_bug.cgi?id=1447391
Fine backport details:
|
@h-kataria @dclarizio can this be |
@simaishi I'll leave that up to @h-kataria as there's quite a bit of code here. |
I'm good with the back-port if @h-kataria is. |
@simaishi i am good with back-porting. |
Euwe bakcport (to manageiq repo) details:
|
Made changes to show additional fields for dynamic fields. Additional field sunder Options box are displayed as well as new box with label "Overridable Options" appears for dynamic fields. More details on these fields are in BZ comment#28(https://bugzilla.redhat.com/show_bug.cgi?id=1431692#c28)
https://bugzilla.redhat.com/show_bug.cgi?id=1431692
before:
after:
@gmcculloug please review/test