Adds buttons to the first page.

Moves first page into a new one
This commit is contained in:
Filipa Lacerda 2017-10-27 16:48:02 +01:00
parent e9d3526123
commit 5754908fee
No known key found for this signature in database
GPG key ID: 9CA3FDE4D1E2F1C8
3 changed files with 24 additions and 3 deletions

View file

@ -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)

View file

@ -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'

View file

@ -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'