use numeric keyboard for otp code inputs

This commit is contained in:
Alex Turchyn
2026-07-29 01:05:53 +03:00
committed by Pete Matsyburka
parent b8ab7190d2
commit 34d0e00910
6 changed files with 6 additions and 6 deletions
@@ -29,7 +29,7 @@
<%= f.hidden_field 'submitter[name]', value: params[:name] || @submitter&.name %>
<%= f.hidden_field 'submitter[email]', value: params[:email] || @submitter&.email %>
<%= f.hidden_field 'submitter[phone]', value: params[:phone] || @submitter&.phone %>
<%= f.text_field :one_time_code, required: true, class: 'base-input text-center', placeholder: 'XXX-XXX' %>
<%= f.text_field :one_time_code, required: true, inputmode: 'numeric', class: 'base-input text-center', placeholder: 'XXXXXX' %>
<div class="flex justify-between items-center mt-1">
<span>
<% if flash[:alert] %>