The first thing every Rails developer tries when working on this task; is to find the app/views
directory, but the ManageIQ team decided to split out the code base into smaller gems and components.
They created a new gem (Rails Engine) called 'manageiq-ui-classic', in which it contains everything related to the UI.
If you open the Gemfile
, you will find line #172 :
manageiq_plugin "manageiq-ui-classic"
The mangeiq_plugin
is defined in line #14, in which
it adds the gems from the ManageIQ organization's GitHub account, when called.
So let's get into the steps of finishing this task.
- Fork the
manageiq_ui_classic
gem, and now you can find the views underapp/views
- Open the view
app/views/catalog/_st_form.html.haml
- In line #11, you can find the constant that has the values
- That constant is defined in the main Rails app, so you can modify it there, and make sure to restart the server cause it will result in a runtime error
Thats it!