Adds title on input checkboxes
This commit is contained in:
@@ -739,7 +739,7 @@ form {
|
||||
min-height: $line-height*13;
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
.checkbox, .radio {
|
||||
display: inline-block;
|
||||
font-weight: normal;
|
||||
line-height: $line-height;
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
<div>
|
||||
<%= f.label :public_activity do %>
|
||||
<%= f.check_box :public_activity, label: false %>
|
||||
<%= f.check_box :public_activity, title: t('account.show.public_activity_label'), label: false %>
|
||||
<span class="checkbox"><%= t("account.show.public_activity_label") %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
@@ -42,21 +42,21 @@
|
||||
|
||||
<div>
|
||||
<%= f.label :email_on_comment do %>
|
||||
<%= f.check_box :email_on_comment, label: false %>
|
||||
<%= f.check_box :email_on_comment, title: t('account.show.email_on_comment_label'), label: false %>
|
||||
<span class="checkbox"><%= t("account.show.email_on_comment_label") %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<%= f.label :email_on_comment_reply do %>
|
||||
<%= f.check_box :email_on_comment_reply, label: false %>
|
||||
<%= f.check_box :email_on_comment_reply, title: t('account.show.email_on_comment_reply_label'), label: false %>
|
||||
<span class="checkbox"><%= t("account.show.email_on_comment_reply_label") %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<%= f.label :email_newsletter_subscribed do %>
|
||||
<%= f.check_box :newsletter, label: false %>
|
||||
<%= f.check_box :newsletter, title: t('account.show.subscription_to_website_newsletter_label'), label: false %>
|
||||
<span class="checkbox"><%= t("account.show.subscription_to_website_newsletter_label") %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<div class="is-featured small-12 medium-6 column">
|
||||
<%= f.label :featured do %>
|
||||
<%= f.check_box :featured, label: false %>
|
||||
<%= f.check_box :featured, title: t('admin.tags.mark_as_featured'), label: false %>
|
||||
<span class="checkbox"><%= t("admin.tags.mark_as_featured") %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<span class="float-left">
|
||||
<%= f.label "featured_#{tag.id}" do %>
|
||||
<%= f.check_box :featured, label: false, id: "tag_featured_#{tag.id}", class: "inline-block" %>
|
||||
<%= f.check_box :featured, title: t('admin.tags.mark_as_featured'), label: false, id: "tag_featured_#{tag.id}", class: "inline-block" %>
|
||||
<span class="checkbox inline-block"><%= t("admin.tags.mark_as_featured") %></span>
|
||||
<% end %>
|
||||
</span>
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
|
||||
<% if can? :comment_as_moderator, commentable %>
|
||||
<div class="float-right">
|
||||
<%= f.check_box :as_moderator, id: "comment-as-moderator-#{css_id}", label: false %>
|
||||
<%= f.check_box :as_moderator, title: t('comments.form.comment_as_moderator'), id: "comment-as-moderator-#{css_id}", label: false %>
|
||||
<%= label_tag "comment-as-moderator-#{css_id}", t("comments.form.comment_as_moderator"), class: "checkbox" %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if can? :comment_as_administrator, commentable %>
|
||||
<div class="float-right">
|
||||
<%= f.check_box :as_administrator, id: "comment-as-administrator-#{css_id}",label: false %>
|
||||
<%= f.check_box :as_administrator, title: t('comments.form.comment_as_admin'), id: "comment-as-administrator-#{css_id}",label: false %>
|
||||
<%= label_tag "comment-as-administrator-#{css_id}", t("comments.form.comment_as_admin"), class: "checkbox" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<div class="small-12 column">
|
||||
<% if @debate.new_record? %>
|
||||
<%= f.label :terms_of_service do %>
|
||||
<%= f.check_box :terms_of_service, label: false %>
|
||||
<%= f.check_box :terms_of_service, title: t('form.accept_terms_title'), label: false %>
|
||||
<span class="checkbox">
|
||||
<%= t("form.accept_terms",
|
||||
policy: link_to(t("form.policy"), "/privacy", target: "blank"),
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<% if devise_mapping.rememberable? -%>
|
||||
<div class="small-12 columns">
|
||||
<%= f.label :remember_me do %>
|
||||
<%= f.check_box :remember_me, label: false, tabindex: "4" %>
|
||||
<%= f.check_box :remember_me, title: t('devise_views.sessions.new.remember_me'), label: false, tabindex: "4" %>
|
||||
<span class="checkbox"><%= t("devise_views.sessions.new.remember_me") %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
|
||||
<%= f.label :terms_of_service do %>
|
||||
<%= f.check_box :terms_of_service, label: false %>
|
||||
<%= f.check_box :terms_of_service, title: t('devise_views.users.registrations.new.terms_title'), label: false %>
|
||||
<span class="checkbox">
|
||||
<%= t("devise_views.users.registrations.new.terms",
|
||||
terms: link_to(t("devise_views.users.registrations.new.terms_link"), "/conditions", target: "_blank")).html_safe %></span>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<div class="small-12 column">
|
||||
<% if @proposal.new_record? %>
|
||||
<%= f.label :terms_of_service do %>
|
||||
<%= f.check_box :terms_of_service, label: false %>
|
||||
<%= f.check_box :terms_of_service, title: t('form.accept_terms_title'), label: false %>
|
||||
<span class="checkbox">
|
||||
<%= t("form.accept_terms",
|
||||
policy: link_to(t("form.policy"), "/privacy", target: "blank"),
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<div class="small-12 column">
|
||||
<% if @spending_proposal.new_record? %>
|
||||
<%= f.label :terms_of_service do %>
|
||||
<%= f.check_box :terms_of_service, label: false %>
|
||||
<%= f.check_box :terms_of_service, title: t('form.accept_terms_title'), label: false %>
|
||||
<span class="checkbox">
|
||||
<%= t("form.accept_terms",
|
||||
policy: link_to(t("form.policy"), "/privacy", target: "blank"),
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<%= f.simple_captcha input_html: {required: false} %>
|
||||
|
||||
<%= f.label :terms_of_service do %>
|
||||
<%= f.check_box :terms_of_service, label: false %>
|
||||
<%= f.check_box :terms_of_service, title: t('devise_views.users.registrations.new.terms_title'), label: false %>
|
||||
<span class="checkbox">
|
||||
<%= t("devise_views.users.registrations.new.terms",
|
||||
terms: link_to(t("devise_views.users.registrations.new.terms_link"), "/conditions", target: "_blank")).html_safe %></span>
|
||||
|
||||
@@ -8,21 +8,21 @@
|
||||
<fieldset class="fieldset">
|
||||
<legend><%= t('valuation.spending_proposals.edit.feasibility') %></legend>
|
||||
<div class="small-4 column">
|
||||
<span class="checkbox">
|
||||
<span class="radio">
|
||||
<%= f.radio_button :feasible, :nil, label: false, checked: @spending_proposal.feasible.nil? %>
|
||||
<%= f.label :feasible_nil, t('valuation.spending_proposals.edit.undefined_feasible') %>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="small-4 column">
|
||||
<span class="checkbox">
|
||||
<span class="radio">
|
||||
<%= f.radio_button :feasible, true, value: true, label: false %>
|
||||
<%= f.label :feasible_true, t('valuation.spending_proposals.edit.feasible') %>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="small-4 column">
|
||||
<span class="checkbox">
|
||||
<span class="radio">
|
||||
<%= f.radio_button :feasible, false, value: false, label: false %>
|
||||
<%= f.label :feasible_false, t('valuation.spending_proposals.edit.not_feasible') %>
|
||||
</span>
|
||||
@@ -67,7 +67,7 @@
|
||||
<div class="row">
|
||||
<div class="small-12 medium-8 column">
|
||||
<%= f.label :valuation_finished do %>
|
||||
<%= f.check_box :valuation_finished, label: false %>
|
||||
<%= f.check_box :valuation_finished, title: t('valuation.spending_proposals.edit.valuation_finished'), label: false %>
|
||||
<span class="checkbox"><%= t("valuation.spending_proposals.edit.valuation_finished") %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
<div class="small-12">
|
||||
<%= f.label :terms_of_service do %>
|
||||
<%= f.check_box :terms_of_service, label: false %>
|
||||
<%= f.check_box :terms_of_service, title: t('verification.residence.new.accept_terms_text_title'), label: false %>
|
||||
<span class="checkbox">
|
||||
<%= t("verification.residence.new.accept_terms_text",
|
||||
terms_url: link_to(t("verification.residence.new.terms"), "/census_terms",
|
||||
|
||||
@@ -117,6 +117,7 @@ en:
|
||||
submit: Register
|
||||
terms: By registering you accept the %{terms}
|
||||
terms_link: terms and conditions of use
|
||||
terms_title: By registering you accept the terms and conditions of use
|
||||
title: Register
|
||||
username_is_available: "Username available"
|
||||
username_is_not_available: "Username already in use"
|
||||
|
||||
@@ -117,6 +117,7 @@ es:
|
||||
submit: Registrarse
|
||||
terms: Al registrarte aceptas las %{terms}
|
||||
terms_link: condiciones de uso
|
||||
terms_title: Al registrarte aceptas las condiciones de uso
|
||||
title: Registrarse
|
||||
username_is_available: "Nombre de usuario disponible"
|
||||
username_is_not_available: "Nombre de usuario ya existente"
|
||||
|
||||
@@ -141,6 +141,7 @@ en:
|
||||
user_not_found: User not found
|
||||
form:
|
||||
accept_terms: I agree to the %{policy} and the %{conditions}
|
||||
accept_terms_title: I agree to the Privacy Policy and the Terms and conditions of use
|
||||
conditions: Terms and conditions of use
|
||||
debate: Debate
|
||||
error: error
|
||||
|
||||
@@ -141,6 +141,7 @@ es:
|
||||
user_not_found: No se encontró el usuario
|
||||
form:
|
||||
accept_terms: Acepto la %{policy} y las %{conditions}
|
||||
accept_terms_title: Acepto la Política de privacidad y las Condiciones de uso
|
||||
conditions: Condiciones de uso
|
||||
debate: el debate
|
||||
error: error
|
||||
|
||||
@@ -51,6 +51,7 @@ en:
|
||||
success: Residence verified
|
||||
new:
|
||||
accept_terms_text: I accept %{terms_url} of the Census
|
||||
accept_terms_text_title: I accept the terms and conditions of access of the Census
|
||||
date_of_birth: Date of birth
|
||||
document_number: Document number
|
||||
document_type:
|
||||
|
||||
@@ -51,6 +51,7 @@ es:
|
||||
success: Residencia verificada
|
||||
new:
|
||||
accept_terms_text: Acepto %{terms_url} al Padrón
|
||||
accept_terms_text_title: Acepto los términos de acceso al Padrón
|
||||
date_of_birth: Fecha de nacimiento
|
||||
document_number: Número de documento
|
||||
document_type:
|
||||
|
||||
Reference in New Issue
Block a user