From af956e284d5af9d2b0dc9f45b08965f1641625a7 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 31 Mar 2020 18:40:21 -0300 Subject: [PATCH] listado de licencias --- app/views/sites/_form.haml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/app/views/sites/_form.haml b/app/views/sites/_form.haml index eedcd7cd..4bb98cfe 100644 --- a/app/views/sites/_form.haml +++ b/app/views/sites/_form.haml @@ -60,25 +60,26 @@ 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 - = 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 - = licencia.name - = sanitize_markdown licencia.description, - tags: %w[p a strong em ul ol li h1 h2 h3 h4 h5 h6] + .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, 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' + = link_to t('.licencia.url'), licencia.url, + target: '_blank', class: 'btn' %hr/