diff --git a/app/views/devise/registrations/new.haml b/app/views/devise/registrations/new.haml index de8879da..896fe45c 100644 --- a/app/views/devise/registrations/new.haml +++ b/app/views/devise/registrations/new.haml @@ -2,7 +2,7 @@ - 'black-bg' .row.align-items-center.justify-content-center.full-height - .col-md-5.align-self-center + .col-md-6.align-self-center %h2= t('.sign_up') %p= t('.help') @@ -47,13 +47,13 @@ - id = "usuarie_#{field}" - name = "usuarie[#{field}]" - content = t(".#{field}.label") + - href = t(".#{field}.href", default: '') + - help_content = t(".#{field}.help") = render 'bootstrap/custom_checkbox', id: id, name: name, content: content, required: required, value: "1" do - - href = t(".#{field}.href", default: '') - - help = t(".#{field}.help") - if href.present? - = link_to help, href, target: '_blank', rel: 'noopener' + = link_to help_content, href, target: '_blank', rel: 'noopener' - else - = help + = help_content .actions = f.submit t('.sign_up'),