Improves layout, adds link to checkbox's label

This commit is contained in:
Alberto Garcia Cabeza
2015-09-05 00:34:18 +02:00
parent 22f579f376
commit 83b44fd53a
5 changed files with 18 additions and 7 deletions

View File

@@ -25,7 +25,12 @@
<div class="small-12 column">
<% if @debate.new_record? %>
<%= f.check_box :terms_of_service, label: t("form.accept_terms") %>
<%= f.label :terms_of_service do %>
<%= f.check_box :terms_of_service, label: false %>
<%= t("form.accept_terms",
policy: link_to(t("form.policy"), "/privacy", target: "blank"), conditions: link_to(t("form.conditions"), "/conditions", target: "blank")).html_safe
%>
<% end %>
<% end %>
</div>
@@ -38,3 +43,5 @@
</div>
</div>
<% end %>