Merge pull request #1066 from consul/international-phone
Adds label and placeholder for international numbers verification
This commit is contained in:
@@ -28,9 +28,10 @@
|
|||||||
<%= render "shared/errors", resource: @sms %>
|
<%= render "shared/errors", resource: @sms %>
|
||||||
|
|
||||||
<div class="small-12 medium-6">
|
<div class="small-12 medium-6">
|
||||||
<%= f.label t("verification.sms.new.phone") %>
|
<%= f.label :phone, t("verification.sms.new.phone"), class: "inline-block" %>
|
||||||
|
<span class="inline-block"><%= t("verification.sms.new.phone_format_html") %></span>
|
||||||
<p class="note"><%= t("verification.sms.new.phone_note") %></p>
|
<p class="note"><%= t("verification.sms.new.phone_note") %></p>
|
||||||
<%= f.text_field :phone, label: false %>
|
<%= f.text_field :phone, label: false, placeholder: t("verification.sms.new.phone_placeholder") %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= f.submit t("verification.sms.new.submit_button"), class: "button success" %>
|
<%= f.submit t("verification.sms.new.submit_button"), class: "button success" %>
|
||||||
|
|||||||
@@ -83,7 +83,9 @@ en:
|
|||||||
title: Security code confirmation
|
title: Security code confirmation
|
||||||
new:
|
new:
|
||||||
phone: Enter your mobile phone number to receive the code
|
phone: Enter your mobile phone number to receive the code
|
||||||
|
phone_format_html: "<strong><em>(Example: 612345678 or +34612345678)</em></strong>"
|
||||||
phone_note: We only user your phone for send to you a code, we never contact to you.
|
phone_note: We only user your phone for send to you a code, we never contact to you.
|
||||||
|
phone_placeholder: "Example: 612345678 or +34612345678"
|
||||||
submit_button: Send
|
submit_button: Send
|
||||||
title: Send confirmation code
|
title: Send confirmation code
|
||||||
update:
|
update:
|
||||||
|
|||||||
@@ -83,7 +83,9 @@ es:
|
|||||||
title: SMS de confirmación
|
title: SMS de confirmación
|
||||||
new:
|
new:
|
||||||
phone: Introduce tu teléfono móvil para recibir el código
|
phone: Introduce tu teléfono móvil para recibir el código
|
||||||
|
phone_format_html: "<strong><em>(Ejemplo: 612345678 ó +34612345678)</em></strong>"
|
||||||
phone_note: Sólo usaremos tu teléfono para enviarte un código, nunca te contactaremos.
|
phone_note: Sólo usaremos tu teléfono para enviarte un código, nunca te contactaremos.
|
||||||
|
phone_placeholder: "Ejemplo: 612345678 ó +34612345678"
|
||||||
submit_button: Enviar
|
submit_button: Enviar
|
||||||
title: SMS de confirmación
|
title: SMS de confirmación
|
||||||
update:
|
update:
|
||||||
|
|||||||
Reference in New Issue
Block a user