Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSam Beckham <sbeckham@gitlab.com>2018-06-29 11:26:56 +0300
committerPhil Hughes <me@iamphill.com>2018-06-29 11:26:56 +0300
commit7a6da82a83c4e183da42c2639d58fc6893735d1f (patch)
tree0185e052128018c67de70c645ba5f15bb350448a /app
parent786cbfa174779f2ac8bf558eb55f5bb825c918e7 (diff)
Resolve "Remove "environment scope" field on cluster creation form for core/starter plans"
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/clusters/user/_form.html.haml7
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