dar menos opciones al crear el sitio #80
This commit is contained in:
parent
cc4d49b398
commit
8667215a2a
4 changed files with 19 additions and 11 deletions
|
@ -86,14 +86,20 @@
|
|||
|
||||
%hr/
|
||||
|
||||
.form-group
|
||||
%h2= t('.deploys.title')
|
||||
%p.lead= t('.help.deploys')
|
||||
|
||||
- unless site.persisted?
|
||||
= f.fields_for :deploys do |deploy|
|
||||
= render "deploys/#{deploy.object.type.underscore}",
|
||||
deploy: deploy, site: site
|
||||
%hr/
|
||||
- next unless deploy.object.kind_of? DeployLocal
|
||||
= deploy.hidden_field :type
|
||||
|
||||
- else
|
||||
.form-group
|
||||
%h2= t('.deploys.title')
|
||||
%p.lead= t('.help.deploys')
|
||||
|
||||
= f.fields_for :deploys do |deploy|
|
||||
= render "deploys/#{deploy.object.type.underscore}",
|
||||
deploy: deploy, site: site
|
||||
%hr/
|
||||
|
||||
.form-group
|
||||
= f.submit submit, class: 'btn btn-lg btn-block'
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path),
|
||||
t('.title', site: @site.name)]
|
||||
.row
|
||||
.col
|
||||
.row.justify-content-center
|
||||
.col-md-8
|
||||
%h1= t('.title', site: @site.name)
|
||||
|
||||
= render 'form', site: @site, submit: t('.submit')
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path), t('.title')]
|
||||
|
||||
.row
|
||||
.col
|
||||
.row.justify-content-center
|
||||
.col-md-8
|
||||
%h1= t('.title')
|
||||
%p.lead= t('.help')
|
||||
|
||||
= render 'form', site: @site, submit: t('.submit')
|
||||
|
|
|
@ -284,6 +284,7 @@ es:
|
|||
new:
|
||||
title: 'Crear un sitio'
|
||||
submit: 'Crear sitio'
|
||||
help: 'Podrás editar estas opciones más adelante en la configuración del sitio.'
|
||||
edit:
|
||||
title: 'Editar %{site}'
|
||||
submit: 'Guardar cambios'
|
||||
|
|
Loading…
Reference in a new issue