Revision 7f25f394
Added by Leos Stejskal about 3 years ago
- added
- modified
- copied
- renamed
- deleted
- app
- controllers
- registries
- views
- hosts
- registration_commands
- _form.erb
- create.html.erb
- new.html.erb
- unattended
- config
- test
- webpack
- assets
- javascripts
- react_app
- components
- routes
- RegistrationCommands
- RegistrationCommandsPage
- RegistrationCommandsPage.scss
- RegistrationCommandsPageActions.js
- RegistrationCommandsPageHelpers.js
- RegistrationCommandsPageSelectors.js
- __tests__
- __snapshots__
- components
- fixtures.js
- helpers.test.js
- integration.test.js
- components
- index.js
- constants.js
- index.js
- RegistrationCommandsPage
- __test__
- routes.js (diff)
- RegistrationCommands
- react_app
- javascripts
- stories
- assets
Fixes #31240 - New Host Registration Form (#8419)
Completely in React, with router & PF4 components
Divided into two tabs: General fields & Advanced Fields
Slots for extending form fields (general / advanced)
Form can be submitted only if there are no invalid fields
Related plugin extensions:
Changes:Katello/katello#9249
theforeman/foreman_remote_execution#574
changing ORG/LOC will fetch new data and reset form fields (HostGroup, OS & Smart Proxy)
Reset of fields from plugins is handled by plugins.
If selected, following fields inherit the value from selected host group: Operating System, Activation Keys & Life Cycle Environment
Selecting HG resets OS field
When selected, show info about assigned host_init_config template.
If template is not found, show error and block form
organization -> location -> operatingsystem -> hostgroup
Install packages after the host registration
Can be set to unlimited, otherwise value validated as: >= 1 && <= 999 999