5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-06 00:35:46 +00:00

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