Adds buttons to the first page.
Moves first page into a new one
This commit is contained in:
parent
e9d3526123
commit
5754908fee
3 changed files with 24 additions and 3 deletions
|
@ -26,10 +26,15 @@ class Projects::ClustersController < Projects::ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
# TODO fix this
|
||||||
|
def new_kubernetes_form
|
||||||
@cluster = project.build_cluster
|
@cluster = project.build_cluster
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def new
|
||||||
|
# First page!
|
||||||
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@cluster = Ci::CreateClusterService
|
@cluster = Ci::CreateClusterService
|
||||||
.new(project, current_user, create_params)
|
.new(project, current_user, create_params)
|
||||||
|
|
|
@ -5,5 +5,12 @@
|
||||||
.col-sm-4
|
.col-sm-4
|
||||||
= render 'sidebar'
|
= render 'sidebar'
|
||||||
.col-sm-8
|
.col-sm-8
|
||||||
= render 'header'
|
%h4= s_('ClusterIntegration|Choose how to set up cluster integration')
|
||||||
= render 'form'
|
|
||||||
|
%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'
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
- breadcrumb_title "Cluster"
|
||||||
|
- page_title _("New Cluster")
|
||||||
|
|
||||||
|
.row.prepend-top-default
|
||||||
|
.col-sm-4
|
||||||
|
= render 'sidebar'
|
||||||
|
.col-sm-8
|
||||||
|
= render 'header'
|
||||||
|
= render 'form'
|
Loading…
Reference in a new issue