Added 'Max Hosts' field in the Add/Edit Organization view

* max hosts field is enabled is user is superuser, otherwise it is disabled and default is 0
 * OrganizationForm tests added for max hosts input
 * minMaxValue added in validators to validate user input for max hosts

Signed-off-by: catjones9 <catjones@redhat.com>
This commit is contained in:
catjones9
2019-06-10 16:54:05 -04:00
parent 5874becb00
commit 91b8aa90ff
7 changed files with 160 additions and 61 deletions

View File

@@ -78,7 +78,7 @@ class OrganizationDetail extends Component {
/>
<Detail
label={i18n._(t`Max Hosts`)}
value={''+max_hosts}
value={`${max_hosts}`}
/>
<Detail
label={i18n._(t`Ansible Environment`)}