Commit 5754908f authored by Filipa Lacerda's avatar Filipa Lacerda

Adds buttons to the first page.

Moves first page into a new one
parent e9d35261
......@@ -26,10 +26,15 @@ class Projects::ClustersController < Projects::ApplicationController
end
end
def new
# TODO fix this
def new_kubernetes_form
@cluster = project.build_cluster
end
def new
# First page!
end
def create
@cluster = Ci::CreateClusterService
.new(project, current_user, create_params)
......
......@@ -5,5 +5,12 @@
.col-sm-4
= render 'sidebar'
.col-sm-8
= render 'header'
= render 'form'
%h4= s_('ClusterIntegration|Choose how to set up cluster integration')
%p= s_('ClusterIntegration| Create a new cluster on Google Engine right from GitLab')
-# TODO FIX PATH
= link_to s_('ClusterIntegration|Create on GKE'), providers_gcp_login_project_clusters_path(@project), class: 'btn append-bottom-20'
-# TODO FIX PATH
%p= s_('ClusterIntegration| Enter the details for an existing Kubernetes cluster')
= link_to s_('ClusterIntegration|Add an existing cluster'), project_settings_integrations_path(@project), class: 'btn append-bottom-20'
- breadcrumb_title "Cluster"
- page_title _("New Cluster")
.row.prepend-top-default
.col-sm-4
= render 'sidebar'
.col-sm-8
= render 'header'
= render 'form'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment