%= tag.section data: { controller: "settings--email--password", "settings--email--password-validation-failed-value": @validation_errors.present? } do %>
Use the following button to generate a new email password:
<%= f.label :current_password, 'Current account password', class: 'font-bold' %>
<%= f.password_field :current_password, class: "w-full", required: true, data: { 'settings--email--password-target': "currentPasswordField" } %>
<% if @validation_errors.present? && @validation_errors[:current_password].present? %><%= @validation_errors[:current_password].first %>
<% end %><%= f.submit "Create new email password", class: "btn-md btn-blue w-full md:w-auto" %>