mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 14:13:38 +00:00
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/
|
%hr/
|
||||||
|
|
||||||
.form-group
|
- unless site.persisted?
|
||||||
%h2= t('.deploys.title')
|
|
||||||
%p.lead= t('.help.deploys')
|
|
||||||
|
|
||||||
= f.fields_for :deploys do |deploy|
|
= f.fields_for :deploys do |deploy|
|
||||||
= render "deploys/#{deploy.object.type.underscore}",
|
- next unless deploy.object.kind_of? DeployLocal
|
||||||
deploy: deploy, site: site
|
= deploy.hidden_field :type
|
||||||
%hr/
|
|
||||||
|
- 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
|
.form-group
|
||||||
= f.submit submit, class: 'btn btn-lg btn-block'
|
= f.submit submit, class: 'btn btn-lg btn-block'
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
= render 'layouts/breadcrumb',
|
= render 'layouts/breadcrumb',
|
||||||
crumbs: [link_to(t('sites.index.title'), sites_path),
|
crumbs: [link_to(t('sites.index.title'), sites_path),
|
||||||
t('.title', site: @site.name)]
|
t('.title', site: @site.name)]
|
||||||
.row
|
.row.justify-content-center
|
||||||
.col
|
.col-md-8
|
||||||
%h1= t('.title', site: @site.name)
|
%h1= t('.title', site: @site.name)
|
||||||
|
|
||||||
= render 'form', site: @site, submit: t('.submit')
|
= render 'form', site: @site, submit: t('.submit')
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
= render 'layouts/breadcrumb',
|
= render 'layouts/breadcrumb',
|
||||||
crumbs: [link_to(t('sites.index.title'), sites_path), t('.title')]
|
crumbs: [link_to(t('sites.index.title'), sites_path), t('.title')]
|
||||||
|
|
||||||
.row
|
.row.justify-content-center
|
||||||
.col
|
.col-md-8
|
||||||
%h1= t('.title')
|
%h1= t('.title')
|
||||||
|
%p.lead= t('.help')
|
||||||
|
|
||||||
= render 'form', site: @site, submit: t('.submit')
|
= render 'form', site: @site, submit: t('.submit')
|
||||||
|
|
|
@ -284,6 +284,7 @@ es:
|
||||||
new:
|
new:
|
||||||
title: 'Crear un sitio'
|
title: 'Crear un sitio'
|
||||||
submit: 'Crear sitio'
|
submit: 'Crear sitio'
|
||||||
|
help: 'Podrás editar estas opciones más adelante en la configuración del sitio.'
|
||||||
edit:
|
edit:
|
||||||
title: 'Editar %{site}'
|
title: 'Editar %{site}'
|
||||||
submit: 'Guardar cambios'
|
submit: 'Guardar cambios'
|
||||||
|
|
Loading…
Reference in a new issue