listado de licencias

This commit is contained in:
f 2020-03-31 18:40:21 -03:00
parent b0ae8e66e7
commit af956e284d
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -60,23 +60,24 @@
target: '_blank', class: 'btn'
%hr/
.form-group
.form-group.licenses
%h2= t('.licencia.title')
%p.lead= t('.help.licencia')
- Licencia.all.each do |licencia|
.row
- Licencia.all.find_each do |licencia|
.row.license
.col
%h3
.media.mt-1
= image_tag licencia.icons, alt: licencia.name, class: 'mr-3 mt-4'
.media-body
.custom-control.custom-radio
= f.radio_button :licencia_id, licencia.id,
checked: licencia.id == site.licencia_id,
required: true
= f.label "licencia_id_#{licencia.id}" do
= image_tag licencia.icons, alt: licencia.name
required: true, class: 'custom-control-input'
= f.label "licencia_id_#{licencia.id}", class: 'custom-control-label' do
= licencia.name
= sanitize_markdown licencia.description,
tags: %w[p a strong em ul ol li h1 h2 h3 h4 h5 h6]
.btn-group{ role: 'group', 'aria-label': t('.licencia.actions') }
= link_to t('.licencia.url'), licencia.url,
target: '_blank', class: 'btn'