diff options
Diffstat (limited to 'app/views/clusters/user/_form.html.haml')
-rw-r--r-- | app/views/clusters/user/_form.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/clusters/user/_form.html.haml b/app/views/clusters/user/_form.html.haml index 54a6e685bb0..05462d27b99 100644 --- a/app/views/clusters/user/_form.html.haml +++ b/app/views/clusters/user/_form.html.haml @@ -1,9 +1,10 @@ -= form_for @user_cluster, url: create_user_namespace_project_clusters_path(@project.namespace, @project), as: :cluster do |field| += form_for @user_cluster, url: create_user_clusters_path, as: :cluster do |field| = form_errors(@user_cluster) + = hidden_clusterable_fields .form-group = field.label :name, s_('ClusterIntegration|Kubernetes cluster name'), class: 'label-bold' = field.text_field :name, class: 'form-control', placeholder: s_('ClusterIntegration|Kubernetes cluster name') - - if has_multiple_clusters?(@project) + - if has_multiple_clusters? .form-group = field.label :environment_scope, s_('ClusterIntegration|Environment scope'), class: 'label-bold' = field.text_field :environment_scope, class: 'form-control', placeholder: s_('ClusterIntegration|Environment scope') |