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

Changed label "Location" to "Type", made field read-only after selection #1938

Merged

Conversation

h-kataria
Copy link
Contributor

@h-kataria h-kataria commented Aug 16, 2017

Changed code to make Type as read only field once user selects the type of Add new method screen. Type field will be read only field on Edit Method screen.

https://www.pivotaltracker.com/story/show/149747321

@dclarizio please review.

before:
add_method_before

edit_method_before

method_summary_before

after:
add_method_after1

add_method_after

edit_method_after

method_summary

Changed code to make Type as read only field once user selects the type of Add new method screen. Type field will be read only field on Edit Method screen.

https://www.pivotaltracker.com/story/show/149747321
@dclarizio
Copy link

@h-kataria since we're now locking the Type, we should put that up top all by itself, then show the rest of the form once the user selects it. That will make it more obvious that it can't be changed once selected.

@h-kataria
Copy link
Contributor Author

@dclarizio please review addressed feedback, made it work like Catalog Item editor where we allow user to select Type first and then show the form.

@h-kataria
Copy link
Contributor Author

cc @syncrou @tinaafitz

@dclarizio
Copy link

@h-kataria might as well keep the Type on top of the form after is it chosen, for consistency.

Changed to allow user to select Type first, display rest of the form after user makes type selection.

https://www.pivotaltracker.com/story/show/149747321
@h-kataria h-kataria force-pushed the tie_down_type_field_in_method_editor branch from f844af5 to d10a4a4 Compare August 17, 2017 17:43
@h-kataria
Copy link
Contributor Author

@dclarizio moved Type field to the top of form/summary screen to be consistent.

@miq-bot
Copy link
Member

miq-bot commented Aug 17, 2017

Checked commits h-kataria/manageiq-ui-classic@44b09a9~...d10a4a4 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
3 files checked, 2 offenses detected

app/views/miq_ae_class/_method_form.html.haml

  • ⚠️ - Line 74 - Avoid more than 3 levels of block nesting.
  • ⚠️ - Line 7 - Do not use unless with else. Rewrite these with the positive case first.

@dclarizio dclarizio merged commit 97f19ac into ManageIQ:master Aug 17, 2017
@dclarizio dclarizio added this to the Sprint 67 Ending Aug 21, 2017 milestone Aug 17, 2017
@h-kataria h-kataria deleted the tie_down_type_field_in_method_editor branch October 3, 2017 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants