%= form_with url: rodauth.sms_setup_path, method: :post, data: { turbo: false } do |form| %>
<% if rodauth.two_factor_modifications_require_password? %>
<%= form.label "password", rodauth.password_label, class: "form-label" %>
<%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_param)}", aria: ({ invalid: true, describedby: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
<%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "invalid-feedback", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>
<% end %>
<%= form.submit rodauth.sms_setup_button, class: "btn btn-primary" %>
<% end %>