= form_for site, html: { class: form_class(site) } do |f| - unless site.persisted? .form-group#design_id - if invalid? site, :design_id = render 'bootstrap/alert' do = t('activerecord.errors.models.site.attributes.design_id.layout_incompatible.help', layouts: site.incompatible_layouts.to_sentence) .row.designs.d-none.d-lg-flex - @designs = Design.all.order(priority: :desc) .col-md-3.designlist %h5.pb-3 Selector de Plantillas - @designs.each do |design| .design.col.d-flex.flex-column.custom-control-design{"data-controller" => "designs"} %div{"data-designs-target" => "radio", "data-action" => "click->designs#selection"} = f.radio_button :design_id, design.id, checked: design.id == site.design_id, disabled: design.disabled, required: true, class: 'radio-toolbar' = f.label "design_id_#{design.id}", " - #{design.name}", class: 'custom-control-design-label' .flex-fill.des-description = sanitize_markdown design.description, tags: %w[p a strong em] .col-md-6.designlist %h5.text-center.pb-3 Previsualizar Plantilla .embed-responsive.embed-responsive-1by1 %iframe.embed-responsive-item{allowfullscreen: "", src: "/placeholder.png"} .col-md-3 %h5.pb-3 Características %div{"data-designs-target" => "infocar"} %p.design 1. Es gratis %p.design 2. Sofware libre - Licencia GPL %p.design 3. Compatible con la web distribuida %br %button.btn.btn-primary.btn-lg.btn-block{type: "button"} Ver código fuente .row.pt-5 .col-lg-10.offset-2 .row .col-8 %h3.text-primary= t('.custom.title') %p= t('.custom.help') .col-4.pt-3 %button.btn.btn-primary= t('.custom.contact') .row.py-4 .col-lg-10.offset-2 .row .col-8 %h3.text-primary= t('.donation.title') %p= t('.donation.help') .col-4.pt-3 %button.btn.btn-primary= t('.donation.link')