5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 02:41:41 +00:00

dar menos opciones al crear el sitio #80

This commit is contained in:
f 2020-02-11 14:41:57 -03:00
parent cc4d49b398
commit 8667215a2a
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
4 changed files with 19 additions and 11 deletions

View file

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

View file

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

View file

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

View file

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