grilla de diseños closes #139

This commit is contained in:
f 2020-03-31 18:30:09 -03:00
parent e5aaed9524
commit b0ae8e66e7
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
4 changed files with 22 additions and 10 deletions

View file

@ -262,3 +262,13 @@ svg {
height: 1rem; height: 1rem;
} }
} }
.custom-control-label {
font-weight: bold;
}
.designs {
.design {
margin-top: 1rem;
}
}

View file

@ -36,18 +36,20 @@
.form-group .form-group
%h2= t('.design.title') %h2= t('.design.title')
%p.lead= t('.help.design') %p.lead= t('.help.design')
.row .row.designs
-# Demasiado complejo para un f.collection_radio_buttons -# Demasiado complejo para un f.collection_radio_buttons
- Design.all.each do |design| - Design.all.find_each do |design|
.col-md-4 .design.col-md-4.d-flex.flex-column
%h3 .custom-control.custom-radio
= f.radio_button :design_id, design.id, = f.radio_button :design_id, design.id,
checked: design.id == site.design_id, checked: design.id == site.design_id,
disabled: design.disabled, disabled: design.disabled,
required: true required: true, class: 'custom-control-input'
= f.label "design_id_#{design.id}", design.name = f.label "design_id_#{design.id}", design.name,
= sanitize_markdown design.description, class: 'custom-control-label'
tags: %w[p a strong em] .flex-fill
= sanitize_markdown design.description,
tags: %w[p a strong em]
.btn-group{ role: 'group', 'aria-label': t('.design.actions') } .btn-group{ role: 'group', 'aria-label': t('.design.actions') }
- if design.url - if design.url

View file

@ -317,7 +317,7 @@ en:
title: 'Design' title: 'Design'
actions: 'Information about this design' actions: 'Information about this design'
url: 'Demo' url: 'Demo'
licencia: 'Read the license' licencia: 'License'
licencia: licencia:
title: 'License for the site and everything published on it' title: 'License for the site and everything published on it'
url: 'Read the license' url: 'Read the license'

View file

@ -325,7 +325,7 @@ es:
title: 'Diseño' title: 'Diseño'
actions: 'Información sobre este diseño' actions: 'Información sobre este diseño'
url: 'Demostración' url: 'Demostración'
license: 'Leer la licencia' license: 'Licencia'
licencia: licencia:
title: 'Licencia del sitio y todo lo publicado' title: 'Licencia del sitio y todo lo publicado'
url: 'Leer la licencia' url: 'Leer la licencia'