summaryrefslogtreecommitdiff
path: root/app/views/clusters/clusters/cloud_providers/_cloud_provider_selector.html.haml
diff options
context:
space:
mode:
authorEnrique Alcántara <ealcantara@gitlab.com>2019-09-09 20:27:51 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-09-09 20:27:51 +0000
commit90e3a4919fd977c1615a5270fd49146140159f6c (patch)
treea6a304f25a361037a94d4dcb3468344feeda5d78 /app/views/clusters/clusters/cloud_providers/_cloud_provider_selector.html.haml
parent56342d8895da85f71900ec7be171d7a2daea5ee0 (diff)
downloadgitlab-ce-90e3a4919fd977c1615a5270fd49146140159f6c.tar.gz
Create new feature flagged UI for cloud providers
- Create HAML UI select a cloud provider to create a cluster. - Add query param to :new cluster view to display a specific cluster provider form depending on the value of the provider query param. - Update unit tests and e2e tests to reflect these changes
Diffstat (limited to 'app/views/clusters/clusters/cloud_providers/_cloud_provider_selector.html.haml')
-rw-r--r--app/views/clusters/clusters/cloud_providers/_cloud_provider_selector.html.haml11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/clusters/clusters/cloud_providers/_cloud_provider_selector.html.haml b/app/views/clusters/clusters/cloud_providers/_cloud_provider_selector.html.haml
new file mode 100644
index 00000000000..24506205243
--- /dev/null
+++ b/app/views/clusters/clusters/cloud_providers/_cloud_provider_selector.html.haml
@@ -0,0 +1,11 @@
+- gke_label = s_('ClusterIntegration|Google GKE')
+- eks_label = s_('ClusterIntegration|Amazon EKS')
+- create_cluster_label = s_('ClusterIntegration|Create cluster on')
+.d-flex.flex-column
+ %h5
+ = create_cluster_label
+ .d-flex
+ = render partial: 'clusters/clusters/cloud_providers/cloud_provider_button',
+ locals: { provider: 'gke', label: gke_label, logo_path: '' }
+ = render partial: 'clusters/clusters/cloud_providers/cloud_provider_button',
+ locals: { provider: 'eks', label: eks_label, logo_path: '' }