diff options
author | Sam Beckham <sbeckham@gitlab.com> | 2018-06-29 11:26:56 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-29 11:26:56 +0300 |
commit | 7a6da82a83c4e183da42c2639d58fc6893735d1f (patch) | |
tree | 0185e052128018c67de70c645ba5f15bb350448a /app/views | |
parent | 786cbfa174779f2ac8bf558eb55f5bb825c918e7 (diff) |
Resolve "Remove "environment scope" field on cluster creation form for core/starter plans"
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/clusters/user/_form.html.haml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/projects/clusters/user/_form.html.haml b/app/views/projects/clusters/user/_form.html.haml index db57da99ec7..d45ae6ec91f 100644 --- a/app/views/projects/clusters/user/_form.html.haml +++ b/app/views/projects/clusters/user/_form.html.haml @@ -3,9 +3,10 @@ .form-group = field.label :name, s_('ClusterIntegration|Kubernetes cluster name'), class: 'label-light' = field.text_field :name, class: 'form-control', placeholder: s_('ClusterIntegration|Kubernetes cluster name') - .form-group - = field.label :environment_scope, s_('ClusterIntegration|Environment scope'), class: 'label-light' - = field.text_field :environment_scope, class: 'form-control', readonly: !has_multiple_clusters?(@project), placeholder: s_('ClusterIntegration|Environment scope') + - if has_multiple_clusters?(@project) + .form-group + = field.label :environment_scope, s_('ClusterIntegration|Environment scope'), class: 'label-light' + = field.text_field :environment_scope, class: 'form-control', placeholder: s_('ClusterIntegration|Environment scope') = field.fields_for :platform_kubernetes, @cluster.platform_kubernetes do |platform_kubernetes_field| .form-group |