<% content_for :title, rodauth.sms_auth_page_title %> <%= form_with url: rodauth.sms_auth_path, method: :post, data: { turbo: false } do |form| %>
<%= form.label "sms-code", rodauth.sms_code_label, class: "form-label" %>
<%= form.text_field rodauth.sms_code_param, value: "", id: "sms-code", autocomplete: "one-time-code", inputmode: "numeric", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.sms_code_param)}", aria: ({ invalid: true, describedby: "sms-code_error_message" } if rodauth.field_error(rodauth.sms_code_param)) %> <%= content_tag(:span, rodauth.field_error(rodauth.sms_code_param), class: "invalid-feedback", id: "sms-code_error_message") if rodauth.field_error(rodauth.sms_code_param) %>
<%= form.submit rodauth.sms_auth_button, class: "btn btn-primary" %>
<% end %>