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;
}
}
.custom-control-label {
font-weight: bold;
}
.designs {
.design {
margin-top: 1rem;
}
}

View file

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

View file

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

View file

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